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.hhK#ubhdesc_sig_space)}(h h]h }(hhhhhNhNubah}(h]h ]wah"]h$]h&]uh1hhhhhhhhK#ubh 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 hhhhhhhK#ubhdesc_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.hhhhhhhK#ubeh}(h]h ]h"]h$]h&]j,j- add_permalinkuh1hsphinx_line_type declaratorhhhhhhhK#ubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhhhK#hhhhubh 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&]uh1jhhhhhhhK#ubeh}(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.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj)}(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 hMubj/)}(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 hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj 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 hMubeh}(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.hhM3ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[hhhjmhM3ubj)}(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[hhhjmhM3ubj/)}(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[hhhjmhM3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjmhM3ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhM3hjThhubj)}(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&]uh1jhjThhhjmhM3ubeh}(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.hhMCubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhjqhMCubj)}(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_hhhjqhMCubj/)}(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_hhhjqhMCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhjqhMCubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhMChjXhhubj)}(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&]uh1jhjXhhhjqhMCubeh}(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.hhMVubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjzhMVubj)}(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 hjhhhhjzhMVubj/)}(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.hjhhhhjzhMVubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjzhMVubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMVhjahhubj)}(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&]uh1jhjahhhjzhMVubeh}(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.hhMjubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhjGhMjubj)}(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 hj5hhhjGhMjubj/)}(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.hj5hhhjGhMjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjGhMjubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMjhj.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.hhhjGhMjubeh}(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.hhMsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMsubj)}(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 hjhhhjhMsubj/)}(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.hjhhhjhMsubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMshjhhubj)}(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&]uh1jhjhhhjhMsubeh}(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.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj)}(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 hMubj/)}(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 hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(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 hMubeh}(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.hhM8ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs3hhhj3hM8ubj)}(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 hjs3hhhj3hM8ubj/)}(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.hjs3hhhj3hM8ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjo3hhhj3hM8ubah}(h]jj3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM8hjl3hhubj)}(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&]uh1jhjl3hhhj3hM8ubeh}(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.hhMIubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhj5hMIubj)}(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 hj5hhhj5hMIubj/)}(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.hj5hhhj5hMIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhj5hMIubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMIhj5hhubj)}(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&]uh1jhj5hhhj5hMIubeh}(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.hhMXubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj7hhhj8hMXubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMXhj7hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7hhhj8hMXubeh}(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.hhMZhhhhubh 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.hhMcubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjh9hhhj9hMcubah}(h]jc9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hMchje9hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhje9hhhj9hMcubeh}(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.hhMehhhhubj<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.hhMnubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhj;hMnubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMnhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj;hMnubeh}(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.hhMphhhhubj<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.hhMyubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj`<hhhj<hMyubah}(h]j[<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMyhj]<hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]<hhhj<hMyubeh}(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.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}(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.hhM%ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjXRhhhjwRhM%ubah}(h]jSRah ](jjeh"]h$]h&]jj)jhuh1hhjwRhM%hjURhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjURhhhjwRhM%ubeh}(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.hhM'hhhhubj<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.hhMMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjVhMMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhMMhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMMubeh}(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.hhMOhhhhubj<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.hhMXubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjHXhhhjgXhMXubah}(h]jCXah ](jjeh"]h$]h&]jj)jhuh1hhjgXhMXhjEXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjEXhhhjgXhMXubeh}(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.hhMZhhhhubj<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.hhMhubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjYhMhubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMhubeh}(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.hhMjhhhhubj<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.hhMxubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhj[hMxubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMxhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMxubeh}(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.hhMzhhhhubj<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.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjA]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&]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.hhM ubh)}(h h]h }(hjojhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\jhhhjnjhM ubj)}(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\jhhhjnjhM ubj/)}(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\jhhhjnjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXjhhhjnjhM ubah}(h]jSjah ](jjeh"]h$]h&]jj)jhuh1hhjnjhM hjUjhhubj)}(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&]uh1jhjUjhhhjnjhM ubeh}(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.hhM6ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjphM6ubj)}(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 hjohhhjphM6ubj/)}(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.hjohhhjphM6ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjphM6ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjphM6hjohhubj)}(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&]uh1jhjohhhjphM6ubeh}(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.hhMCubh)}(h h]h }(hj`qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNqhhhj_qhMCubj)}(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_qhMCubj/)}(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_qhMCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjJqhhhj_qhMCubah}(h]jEqah ](jjeh"]h$]h&]jj)jhuh1hhj_qhMChjGqhhubj)}(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_qhMCubeh}(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.hhMQubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjushhhjshMQubj)}(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 hjushhhjshMQubj/)}(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.hjushhhjshMQubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqshhhjshMQubah}(h]jlsah ](jjeh"]h$]h&]jj)jhuh1hhjshMQhjnshhubj)}(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&]uh1jhjnshhhjshMQubeh}(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.hjuhhhjuhMbubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjuhMbubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhMbhjuhhubj)}(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&]uh1jhjuhhhjuhMbubeh}(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.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(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.chK`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK`ubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhK`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK`ubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhK`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK`ubj)}(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 hjhhhjhK`ubj/)}(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.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 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&]uh1jhjhhhjhK`ubeh}(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.chKoubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhKoubh)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhjfhKoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhKoubj)}(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 hjThhhjfhKoubj/)}(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.hjThhhjfhKoubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjPhhhjfhKoubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhKohjMhhubj)}(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&]uh1jhjMhhhjfhKoubeh}(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.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(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 hjhhhjhKubj/)}(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.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(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.chM^ ubh)}(h h]h }(hj͍hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj̍hM^ 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̍hM^ 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̍hM^ ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj̍hM^ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̍hM^ 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.chMP hj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̍hM^ 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.chMT 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.chMQ 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&]uh1jhjhMQ hjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMQ 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.chMR 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̏hMR hj͏ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj̏hMR 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.chMS hjubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMS hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMS 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.chMT hj#ubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMT hj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMT 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.chMV 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.chMV 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.chMZ 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.chM\ 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.chMo 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.chMs 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.chMp 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&]uh1jhjhMp hjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMp 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.chMq 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ʒhMq hj˒ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjʒhMq 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.chMr hjubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMr hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMr 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.chMs hj!ubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMs hj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMs 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.chMu 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.chMu 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.chMz 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.chMr ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMr 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 hjhhhjhMr 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.hjhhhjhMr ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMr ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMr 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.chM] hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMr 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.chMa 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&]uh1jhjhM^ hjubah}(h]h ]h"]h$]h&]uh1jChjԠubeh}(h]h ]h"]h$]h&]uh1j!hjhM^ 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.chM_ 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(hM_ hj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hM_ 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.chM` hjFubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahM` hjbubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjahM` 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.chMa hjubjD)}(hhh]j)}(h&Binary arguments for the format stringh]h&Binary arguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMa hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMa 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.chMc 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.chMc 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.chMh hjubjD)}(hhh]j)}(h"see vsnprintf comment for details.h]h"see vsnprintf comment for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMh hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMh 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.chMj 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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjҳhhhjhMubj)}(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ҳhhhjhMubj/)}(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ҳhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjγhhhjhMubah}(h]jɳah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj˳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˳hhhjhMubeh}(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.chM[ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhM[ubj)}(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 hjDhhhjVhM[ubj/)}(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.hjDhhhjVhM[ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhM[ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhM[hj=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=hhhjVhM[ubeh}(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.chK'ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hK'ubj)}(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;hK'ubj/)}(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;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#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;hK'ubeh}(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.chM@ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM@ubj)}(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 hjhhhjhM@ubj/)}(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.hjhhhjhM@ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM@ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM@hjhhubj)}(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&]uh1jhjhhhjhM@ubeh}(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.chMhj 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.chMhjubjD)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj<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.chMhjubjD)}(hhh]j)}(hcombination of the flags.h]hcombination of the flags.}(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&]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.chM>ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM>ubj)}(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 hjhhhjhM>ubj/)}(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.hjhhhjhM>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjhhubj)}(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&]uh1jhjhhhjhM>ubeh}(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.chMhjNubah}(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.chM hjubjo)}(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.chM-hjubj)}(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.chM0hjubj)}(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.chM7hjubj)}(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.chM8hjubeh}(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.chM hjhhubah}(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.chMJubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMJubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMJubj)}(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 hhhjhMJubj/)}(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 hhhjhMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjhhubj)}(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.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(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.chMIhjubj)}(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.chMFhjubjD)}(hhh]j)}(hThe string to be stripped.h]hThe string to be stripped.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMFhj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hMFhjubah}(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.chMHhjubj)}(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.chMHhjubeh}(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.chMZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMZubj)}(hstrimh]j)}(hstrimh]hstrim}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMZubj/)}(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.hjhhhjhMZubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMZubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMZhjhhubj)}(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.chMShjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMZubeh}(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.chMWhjtubj)}(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.chMThjubjD)}(hhh]j)}(hThe string to be stripped.h]hThe string to be stripped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMThjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMThjubah}(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.chMVhjtubj)}(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.chMVhjtubeh}(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.chMvubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhj\hMvubj)}(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\hMvubj/)}(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\hMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjGhhhj\hMvubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj\hMvhjDhhubj)}(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.chMmhjShhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj\hMvubeh}(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.chMqhjrubj)}(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.chMnhjubjD)}(hhh]j)}(h one stringh]h one string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMnhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMnhjubj")}(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.chMohjubjD)}(hhh]j)}(hanother stringh]hanother string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMohjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMohjubeh}(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.chMqhjrubj)}(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.chMqhjrubeh}(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.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&]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.hhMhj{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.hhMfubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj+hMfubj)}(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+hMfubj/)}(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+hMfubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj+hMfubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj+hMfhjhhubj)}(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+hMfubeh}(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=hM\ubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hM\ubj)}(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=hM\ubj/)}(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=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)}(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=hM\ubeh}(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.chM|ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj"hM|ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hM|ubj)}(hstrrchrh]j)}(hstrrchrh]hstrrchr}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj"hM|ubj/)}(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"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)}(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"hM|ubeh}(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.chMBubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhjXhMBubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhMBubj)}(hmemset32h]j)}(hmemset32h]hmemset32}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFhhhjXhMBubj/)}(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.hjFhhhjXhMBubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjBhhhjXhMBubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhMBhj?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?hhhjXhMBubeh}(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.chMXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMXubj)}(hmemset64h]j)}(hmemset64h]hmemset64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMXubj/)}(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.hjhhhjhMXubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMXhjhhubj)}(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&]uh1jhjhhhjhMXubeh}(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.chMmubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjbhMmubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhMmubj)}(hmemcpyh]j)}(hmemcpyh]hmemcpy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhjbhMmubj/)}(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.hjPhhhjbhMmubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjbhMmubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMmhjIhhubj)}(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&]uh1jhjIhhhjbhMmubeh}(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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hmemmoveh]j)}(hmemmoveh]hmemmove}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(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.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)}(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&hM ubj/)}(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&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)}(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&hM ubeh}(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.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)}(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)hM%ubj/)}(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)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&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)hM%ubeh}(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.chMFubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hMFubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hMFubj)}(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+hMFubj/)}(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+hMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj+hMFubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hMFhj+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+hMFubeh}(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.hhK3ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhj0hK3ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hK3ubj)}(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 hj0hhhj0hK3ubj/)}(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.hj0hhhj0hK3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhj0hK3ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hK3hj0hhubj)}(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&]uh1jhj0hhhj0hK3ubeh}(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.hhKqubah}(h]h ]h"]h$]h&]j,j-juh1hjjhja3hhhj3hKqubah}(h]j\3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hKqhj^3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^3hhhj3hKqubeh}(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.hhKshj{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;hMaubeh}(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.hhMvubh)}(h h]h }(hjH=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5=hhhjG=hMvubj)}(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=hMvubj/)}(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=hMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1=hhhjG=hMvubah}(h]j,=ah ](jjeh"]h$]h&]jj)jhuh1hhjG=hMvhj.=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=hMvubeh}(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.hhMubh)}(h h]h }(hjA?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/?hhhj@?hMubh)}(hcharh]hchar}(hjO?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/?hhhj@?hMubh)}(h h]h }(hj]?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/?hhhj@?hMubj)}(hjh]h*}(hjk?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?hhhj@?hMubj)}(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@?hMubj/)}(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@?hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+?hhhj@?hMubah}(h]j&?ah ](jjeh"]h$]h&]jj)jhuh1hhj@?hMhj(?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@?hMubeh}(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.chKPubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhjLhKPubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhKPubj)}(hkstrduph]j)}(hkstrduph]hkstrdup}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhjLhKPubj/)}(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.hjLhhhjLhKPubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjLhKPubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhKPhjLhhubj)}(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&]uh1jhjLhhhjLhKPubeh}(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.chKbubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhKbubh)}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNhhhjNhKbubh)}(h h]h }(hj OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhKbubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhKbubj)}(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 hjNhhhjNhKbubj/)}(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.hjNhhhjNhKbubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjNhKbubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhKbhjNhhubj)}(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&]uh1jhjNhhhjNhKbubeh}(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.chKuubh)}(h h]h }(hj,QhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhj+QhKuubj)}(hjh]h*}(hj:QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhj+QhKuubj)}(hkstrnduph]j)}(hkstrnduph]hkstrndup}(hjKQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQhhhj+QhKuubj/)}(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.chKubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjThKubj)}(hjh]h*}(hj!ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThKubj)}(hkmemduph]j)}(hkmemduph]hkmemdup}(hj2ThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.Tubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjThKubj/)}(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.hjThhhjThKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjThKubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjThKhjShhubj)}(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&]uh1jhjShhhjThKubeh}(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.chM ubh)}(h h]h }(hjp]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]]hhhjo]hM ubj)}(hjh]h*}(hj~]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]]hhhjo]hM ubj)}(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]hM ubj/)}(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]hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjY]hhhjo]hM ubah}(h]jT]ah ](jjeh"]h$]h&]jj)jhuh1hhjo]hM hjV]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]hM ubeh}(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.hhK7ubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjehK7ubj)}(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 hjehhhjehK7ubj/)}(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.hjehhhjehK7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhjehK7ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehK7hjehhubj)}(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&]uh1jhjehhhjehK7ubeh}(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)}(hhjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghKDubeh}(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.hhKRubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihKRubj)}(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 hjihhhjihKRubj/)}(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.hjihhhjihKRubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjihKRubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihKRhjihhubj)}(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&]uh1jhjihhhjihKRubeh}(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.hhK`ubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkhhhjkhK`ubj)}(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 hjkhhhjkhK`ubj/)}(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.hjkhhhjkhK`ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkhhhjkhK`ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjkhK`hjkhhubj)}(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&]uh1jhjkhhhjkhK`ubeh}(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.hhK~ubh)}(h h]h }(hj"xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhj!xhK~ubj)}(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!xhK~ubj/)}(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!xhK~ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj xhhhj!xhK~ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhj!xhK~hj 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!xhK~ubeh}(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.hhK'ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj5hK'ubj)}(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#hhhj5hK'ubj/)}(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#hhhj5hK'ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj5hK'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hK'hjhhubj)}(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&]uh1jhjhhhj5hK'ubeh}(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.hhK7ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj*hK7ubj)}(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*hK7ubj/)}(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*hK7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj*hK7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hK7hjhhubj)}(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*hK7ubeh}(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.hhKKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKKubj)}(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 hjhhhjhKKubj/)}(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.hjhhhjhKKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhjhKKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKKhjhhubj)}(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&]uh1jhjhhhjhKKubeh}(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.chK\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK\ubj)}(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 hjhhhjhK\ubj/)}(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.hjhhhjhK\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK\hjhhubj)}(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&]uh1jhjhhhjhK\ubeh}(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.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(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 hjhhhjhKubj/)}(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.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(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.chM!ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjhM!ubj)}(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 hjyhhhjhM!ubj/)}(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.hjyhhhjhM!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjhM!ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhM!hjrhhubj)}(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&]uh1jhjrhhhjhM!ubeh}(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.chMDubh)}(h h]h }(hjͥhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj̥hMDubj)}(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̥hMDubj/)}(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̥hMDubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj̥hMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̥hMDhjhhubj)}(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̥hMDubeh}(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.chMbubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhMbubj)}(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 hjDhhhjVhMbubj/)}(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.hjDhhhjVhMbubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhMbubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMbhj=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=hhhjVhMbubeh}(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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(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 hjhhhjhMubj/)}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(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.hhM7ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhM7ubj)}(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 hjDhhhjVhM7ubj/)}(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.hjDhhhjVhM7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhM7ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhM7hj=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=hhhjVhM7ubeh}(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.hhMpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMpubj)}(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 hjhhhjhMpubj/)}(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.hjhhhjhMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMphjhhubj)}(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&]uh1jhjhhhjhMpubeh}(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.hhM ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hM ubj)}(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;hM ubj/)}(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;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(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;hM ubeh}(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.chK7ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK7ubj)}(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 hjhhhjhK7ubj/)}(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.hjhhhjhK7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK7hjhhubj)}(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&]uh1jhjhhhjhK7ubeh}(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.chKjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKjubj)}(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 hjhhhjhKjubj/)}(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.hjhhhjhKjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKjhjhhubj)}(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&]uh1jhjhhhjhKjubeh}(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.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(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 hjhhhjhKubj/)}(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.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(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_prepareasbuh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(htextsearch_prepareh]j)}(hjh]htextsearch_prepare}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(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.chM9ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hM9ubj)}(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 hM9ubj/)}(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 hM9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hM9ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM9hj 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 hM9ubeh}(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.hhKiubh)}(h h]h }(hjh hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU hhhjg hKiubh)}(hinth]hint}(hjv hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU hhhjg hKiubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU hhhjg hKiubj)}(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 hKiubj/)}(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 hKiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQ hhhjg hKiubah}(h]jL ah ](jjeh"]h$]h&]jj)jhuh1hhjg hKihjN 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 hKiubeh}(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.hhK|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK|ubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhK|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK|ubj)}(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 hjhhhjhK|ubj/)}(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.hjhhhjhK|ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK|ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK|hjhhubj)}(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&]uh1jhjhhhjhK|ubeh}(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.hhKCubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKCubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKChjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKCubeh}(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.hhKEhjhhubj<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.hhKOubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKOhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKOubeh}(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.hhKQhjhhubj<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.hhK`ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hK`ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj1hK`hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hK`ubeh}(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.hhKbhjhhubj<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.hhKqubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKqubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKqhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKqubeh}(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.hhKshjhhubj<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.hhK}ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjrhK}ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjrhK}hjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhK}ubeh}(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.hhKhjhhubj<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.hhM ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj(hM ubj)}(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(hM ubj/)}(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(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;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(hM ubeh}(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.hhM2ubh)}(h h]h }(hj',hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj&,hM2ubj)}(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&,hM2ubj/)}(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&,hM2ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj&,hM2ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj&,hM2hj+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&,hM2ubeh}(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.hhMGubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhj8.hMGubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj8.hMGhj.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.hhhj8.hMGubeh}(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.hhMIhjhhubj<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.hhMTubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj/hhhj/hMTubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj/hMThj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMTubeh}(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.hhMVhjhhubj<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)}(hj0hD]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.hhMbubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhj1hMbubah}(h]j{1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMbhj}1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}1hhhj1hMbubeh}(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.hhMdhjhhubj<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.hhMrubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjY3hhhjx3hMrubah}(h]jT3ah ](jjeh"]h$]h&]jj)jhuh1hhjx3hMrhjV3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjV3hhhjx3hMrubeh}(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.hhMthjhhubj<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.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj25hhhjQ5hMubah}(h]j-5ah ](jjeh"]h$]h&]jj)jhuh1hhjQ5hMhj/5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/5hhhjQ5hMubeh}(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.hhMhjhhubj<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)}(h<``_DEFINE_FLEX (type, name, member, count, initializer...)``h]j.)}(hj[7h]h8_DEFINE_FLEX (type, name, member, count, initializer...)}(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)}(h]helper macro for DEFINE_FLEX() family. Enables caller macro to pass (different) initializer. h]j)}(h\helper macro for DEFINE_FLEX() family. Enables caller macro to pass (different) initializer.h]h\helper macro for DEFINE_FLEX() family. Enables caller macro to pass (different) initializer.}(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. ``initializer...`` initializer expression (could be empty for no init).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)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhj>hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj=hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0>jj0>jjjuh1hhhhj<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)}(hj:>h]h Parameters}(hj<>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8>ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhj4>ubj)}(hhh](j")}(h``uint8_t c`` starting crc4 h](j()}(h ``uint8_t c``h]j.)}(hjY>h]h uint8_t c}(hj[>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjW>ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjS>ubjD)}(hhh]j)}(h starting crc4h]h starting crc4}(hjr>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn>hKhjo>ubah}(h]h ]h"]h$]h&]uh1jChjS>ubeh}(h]h ]h"]h$]h&]uh1j!hjn>hKhjP>ubj")}(h!``uint64_t x`` value to checksum h](j()}(h``uint64_t x``h]j.)}(hj>h]h uint64_t x}(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:139: ./lib/crc4.chKhj>ubjD)}(hhh]j)}(hvalue to checksumh]hvalue to checksum}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hKhjP>ubj")}(h1``int bits`` number of bits in **x** to checksum h](j()}(h ``int bits``h]j.)}(hj>h]hint bits}(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:139: ./lib/crc4.chKhj>ubjD)}(hhh]j)}(h#number of bits in **x** to checksumh](hnumber of bits in }(hj>hhhNhNubj)}(h**x**h]hx}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh to checksum}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hKhjP>ubeh}(h]h ]h"]h$]h&]uh1jhj4>ubj)}(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:139: ./lib/crc4.chKhj4>ubj)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hj.?hhhNhNubj)}(h**x**h]hx}(hj6?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.?ubh, using polynomial 0b10111.}(hj.?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhj4>ubj)}(hhThe **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](hThe }(hjO?hhhNhNubj)}(h**x**h]hx}(hjW?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO?ubh2 value is treated as left-aligned, and bits above }(hjO?hhhNhNubj)}(h**bits**h]hbits}(hji?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO?ubh% are ignored in the crc calculations.}(hjO?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhj4>ubeh}(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}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?modnameN classnameNjwjz)}j}]j)}jscrc7_besb c.crc7_beasbuh1hhj?hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhj?hK?ubj)}(hcrc7_beh]j)}(hj?h]hcrc7_be}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?hhhj?hK?ubj/)}(h&(u8 crc, const u8 *buffer, size_t len)h](j5)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?modnameN classnameNjwjz)}j}]j? c.crc7_beasbuh1hhj?ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hcrch]hcrc}(hj#@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hconst u8 *bufferh](j;)}(hjh]hconst}(hj<@hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8@ubh)}(h h]h }(hjI@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8@ubh)}(hhh]j)}(hu8h]hu8}(hjZ@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjW@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\@modnameN classnameNjwjz)}j}]j? c.crc7_beasbuh1hhj8@ubh)}(h h]h }(hjx@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8@ubj)}(hbufferh]hbuffer}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8@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? c.crc7_beasbuh1hhj@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?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#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK4hjAhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hK?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj<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)}(hj'Ah]h Parameters}(hj)AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Aubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK8hj!Aubj)}(hhh](j")}(h``u8 crc`` previous CRC7 value h](j()}(h ``u8 crc``h]j.)}(hjFAh]hu8 crc}(hjHAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDAubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK5hj@AubjD)}(hhh]j)}(hprevious CRC7 valueh]hprevious CRC7 value}(hj_AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[AhK5hj\Aubah}(h]h ]h"]h$]h&]uh1jChj@Aubeh}(h]h ]h"]h$]h&]uh1j!hj[AhK5hj=Aubj")}(h"``const u8 *buffer`` data pointer h](j()}(h``const u8 *buffer``h]j.)}(hjAh]hconst u8 *buffer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}Aubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK6hjyAubjD)}(hhh]j)}(h data pointerh]h data pointer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhK6hjAubah}(h]h ]h"]h$]h&]uh1jChjyAubeh}(h]h ]h"]h$]h&]uh1j!hjAhK6hj=Aubj")}(h-``size_t len`` number of bytes in the buffer h](j()}(h``size_t len``h]j.)}(hjAh]h size_t len}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK7hjAubjD)}(hhh]j)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhK7hjAubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hjAhK7hj=Aubeh}(h]h ]h"]h$]h&]uh1jhj!Aubj)}(h **Context**h]j)}(hjAh]hContext}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK9hj!Aubj)}(hanyh]hany}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK8hj!Aubj)}(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:142: ./lib/crc7.chK:hj!Aubj)}(hReturns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.h]hReturns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.}(hj0BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK9hj!Aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj<hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhj<hhhNhNubh)}(hhh](h)}(hAvoid crc8_populate_msb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]h)}(h@void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](h)}(hvoidh]hvoid}(hj_BhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[BhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKubh)}(h h]h }(hjnBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[BhhhjmBhKubj)}(hcrc8_populate_msbh]j)}(hcrc8_populate_msbh]hcrc8_populate_msb}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|Bubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[BhhhjmBhKubj/)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j5)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]j)}(hu8h]hu8}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]j)}jsjBsbc.crc8_populate_msbasbuh1hhjBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(htableh]htable}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubj)}(h[h]h[}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]jBc.crc8_populate_msbasbuh1hhjBubj)}(h]h]h]}(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubj5)}(h u8 polynomialh](h)}(hhh]j)}(hu8h]hu8}(hj&ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#Cubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(CmodnameN classnameNjwjz)}j}]jBc.crc8_populate_msbasbuh1hhjCubh)}(h h]h }(hjDChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h polynomialh]h polynomial}(hjRChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj[BhhhjmBhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWBhhhjmBhKubah}(h]jRBah ](jjeh"]h$]h&]jj)jhuh1hhjmBhKhjTBhhubj)}(hhh]j)}(h9fill crc table for given polynomial in reverse bit order.h]h9fill crc table for given polynomial in reverse bit order.}(hj|ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKhjyChhubah}(h]h ]h"]h$]h&]uh1jhjTBhhhjmBhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhj<hNhNubj)}(h**Parameters** ``u8 table[CRC8_TABLE_SIZE]`` table to be filled. ``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKhjCubj)}(hhh](j")}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j()}(h``u8 table[CRC8_TABLE_SIZE]``h]j.)}(hjCh]hu8 table[CRC8_TABLE_SIZE]}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKhjCubjD)}(hhh]j)}(htable to be filled.h]htable to be filled.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChKhjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChKhjCubj")}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j()}(h``u8 polynomial``h]j.)}(hjCh]h u8 polynomial}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKhjCubjD)}(hhh]j)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKhj Dubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj DhKhjCubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj<hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhj<hhhNhNubh)}(hhh](h)}(hAvoid crc8_populate_lsb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]h)}(h@void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](h)}(hvoidh]hvoid}(hjPDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLDhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chK3ubh)}(h h]h }(hj_DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLDhhhj^DhK3ubj)}(hcrc8_populate_lsbh]j)}(hcrc8_populate_lsbh]hcrc8_populate_lsb}(hjqDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLDhhhj^DhK3ubj/)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j5)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]j)}(hu8h]hu8}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsjsDsbc.crc8_populate_lsbasbuh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(htableh]htable}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubj)}(hjBh]h[}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]jDc.crc8_populate_lsbasbuh1hhjDubj)}(hj Ch]h]}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubj5)}(h u8 polynomialh](h)}(hhh]j)}(hu8h]hu8}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]jDc.crc8_populate_lsbasbuh1hhjEubh)}(h h]h }(hj3EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(h polynomialh]h polynomial}(hjAEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjLDhhhj^DhK3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjHDhhhj^DhK3ubah}(h]jCDah ](jjeh"]h$]h&]jj)jhuh1hhj^DhK3hjEDhhubj)}(hhh]j)}(h9fill crc table for given polynomial in regular bit order.h]h9fill crc table for given polynomial in regular bit order.}(hjkEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chK.hjhEhhubah}(h]h ]h"]h$]h&]uh1jhjEDhhhj^DhK3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhj<hNhNubj)}(h**Parameters** ``u8 table[CRC8_TABLE_SIZE]`` table to be filled. ``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chK2hjEubj)}(hhh](j")}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j()}(h``u8 table[CRC8_TABLE_SIZE]``h]j.)}(hjEh]hu8 table[CRC8_TABLE_SIZE]}(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:145: ./lib/crc8.chK0hjEubjD)}(hhh]j)}(htable to be filled.h]htable to be filled.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhK0hjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhK0hjEubj")}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j()}(h``u8 polynomial``h]j.)}(hjEh]h u8 polynomial}(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:145: ./lib/crc8.chK2hjEubjD)}(hhh]j)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chK1hjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhK2hjEubeh}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj<hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrc8 (C function)c.crc8hNtauh1hhj<hhhNhNubh)}(hhh](h)}(hQu8 crc8 (const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h]h)}(hPu8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](h)}(hhh]j)}(hu8h]hu8}(hjBFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?Fubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDFmodnameN classnameNjwjz)}j}]j)}jscrc8sbc.crc8asbuh1hhj;FhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKJubh)}(h h]h }(hjdFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;FhhhjcFhKJubj)}(hcrc8h]j)}(hj`Fh]hcrc8}(hjvFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj;FhhhjcFhKJubj/)}(hI(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](j5)}(hconst u8 table[CRC8_TABLE_SIZE]h](j;)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]j)}(hu8h]hu8}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j^Fc.crc8asbuh1hhjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(htableh]htable}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubj)}(hjBh]h[}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j^Fc.crc8asbuh1hhjFubj)}(hj Ch]h]}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hconst u8 *pdatah](j;)}(hjh]hconst}(hj/GhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+Gubh)}(h h]h }(hjDetermine whether some value is a power of two, where zero is }(hjThhhNhNubj)}(h*not*h]hnot}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh considered a power of two.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK(hjTubj)}(h **Return**h]j)}(hjUh]hReturn}(hj!UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK+hjTubj)}(h/true if **n** is a power of 2, otherwise false.h](htrue if }(hj5UhhhNhNubj)}(h**n**h]hn}(hj=UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Uubh" is a power of 2, otherwise false.}(hj5UhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK*hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__roundup_pow_of_two (C function)c.__roundup_pow_of_twohNtauh1hhjShhhNhNubh)}(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}(hjvUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrUhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK6ubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrUhhhjUhK6ubh)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrUhhhjUhK6ubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrUhhhjUhK6ubj)}(h__roundup_pow_of_twoh]j)}(h__roundup_pow_of_twoh]h__roundup_pow_of_two}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjrUhhhjUhK6ubj/)}(h(unsigned long n)h]j5)}(hunsigned long nh](h)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hj h]hn}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubah}(h]h ]h"]h$]h&]j,j-uh1j.hjrUhhhjUhK6ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjnUhhhjUhK6ubah}(h]jiUah ](jjeh"]h$]h&]jj)jhuh1hhjUhK6hjkUhhubj)}(hhh]j)}(h round up to nearest power of twoh]h round up to nearest power of two}(hj0VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK3hj-Vhhubah}(h]h ]h"]h$]h&]uh1jhjkUhhhjUhK6ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHVjjHVjjjuh1hhhhjShNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](j)}(h**Parameters**h]j)}(hjRVh]h Parameters}(hjTVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPVubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK7hjLVubj)}(hhh]j")}(h%``unsigned long n`` value to round uph](j()}(h``unsigned long n``h]j.)}(hjqVh]hunsigned long n}(hjsVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoVubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK9hjkVubjD)}(hhh]j)}(hvalue to round uph]hvalue to round up}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK4hjVubah}(h]h ]h"]h$]h&]uh1jChjkVubeh}(h]h ]h"]h$]h&]uh1j!hjVhK9hjhVubah}(h]h ]h"]h$]h&]uh1jhjLVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__rounddown_pow_of_two (C function)c.__rounddown_pow_of_twohNtauh1hhjShhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK@ubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjVhK@ubh)}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhjVhK@ubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjVhK@ubj)}(h__rounddown_pow_of_twoh]j)}(h__rounddown_pow_of_twoh]h__rounddown_pow_of_two}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhjVhK@ubj/)}(h(unsigned long n)h]j5)}(hunsigned long nh](h)}(hunsignedh]hunsigned}(hj$WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Wubh)}(h h]h }(hj2WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Wubh)}(hlongh]hlong}(hj@WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Wubh)}(h h]h }(hjNWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Wubj)}(hj h]hn}(hj\WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Wubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubah}(h]h ]h"]h$]h&]j,j-uh1j.hjVhhhjVhK@ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjVhK@ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhK@hjVhhubj)}(hhh]j)}(h"round down to nearest power of twoh]h"round down to nearest power of two}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK=hjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhK@ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjWjjWjjjuh1hhhhjShNhNubj)}(h9**Parameters** ``unsigned long n`` value to round downh](j)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKAhjWubj)}(hhh]j")}(h'``unsigned long n`` value to round downh](j()}(h``unsigned long n``h]j.)}(hjWh]hunsigned long n}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKChjWubjD)}(hhh]j)}(hvalue to round downh]hvalue to round down}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK>hjWubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjWhKChjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌconst_ilog2 (C macro) c.const_ilog2hNtauh1hhjShhhNhNubh)}(hhh](h)}(h const_ilog2h]h)}(h const_ilog2h]j)}(h const_ilog2h]j)}(hjXh]h const_ilog2}(hj$XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Xubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhj7XhKMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhj7XhKMhjXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjXhhhj7XhKMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjPXjjPXjjjuh1hhhhjShNhNubj)}(h``const_ilog2 (n)``h]j.)}(hjVXh]hconst_ilog2 (n)}(hjXXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTXubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKOhjShhubj<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}(hjpXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKGhjlXubah}(h]h ]h"]h$]h&]uh1j;8hj~XhKGhjShhubj)}(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)}(hjXh]h Parameters}(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.hhKKhjXubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hjXh]hn}(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:162: ./include/linux/log2.hhKHhjXubjD)}(hhh]j)}(h parameterh]h parameter}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhKHhjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhKHhjXubah}(h]h ]h"]h$]h&]uh1jhjXubj)}(h**Description**h]j)}(hjXh]h Description}(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.hhKJhjXubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKJhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌilog2 (C macro)c.ilog2hNtauh1hhjShhhNhNubh)}(hhh](h)}(hilog2h]h)}(hilog2h]j)}(hilog2h]j)}(hj$Yh]hilog2}(hj.YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*Yubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&YhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj"YhhhjAYhKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjAYhKhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhjAYhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjZYjjZYjjjuh1hhhhjShNhNubj)}(h ``ilog2 (n)``h]j.)}(hj`Yh]h ilog2 (n)}(hjbYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^Yubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjShhubj<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}(hjzYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjvYubah}(h]h ]h"]h$]h&]uh1j;8hjYhKhjShhubj)}(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)}(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:162: ./include/linux/log2.hhKhjYubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hjYh]hn}(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:162: ./include/linux/log2.hhKhjYubjD)}(hhh]j)}(h parameterh]h parameter}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubj)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjYubj)}(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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjYubj)}(hHselects the appropriately-sized optimised version depending on sizeof(n)h]hHselects the appropriately-sized optimised version depending on sizeof(n)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌroundup_pow_of_two (C macro)c.roundup_pow_of_twohNtauh1hhjShhhNhNubh)}(hhh](h)}(hroundup_pow_of_twoh]h)}(hroundup_pow_of_twoh]j)}(hroundup_pow_of_twoh]j)}(hj=Zh]hroundup_pow_of_two}(hjGZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?ZhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj;ZhhhjZZhKubah}(h]j6Zah ](jjeh"]h$]h&]jj)jhuh1hhjZZhKhj8Zhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj8ZhhhjZZhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjsZjjsZjjjuh1hhhhjShNhNubj)}(h``roundup_pow_of_two (n)``h]j.)}(hjyZh]hroundup_pow_of_two (n)}(hj{ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwZubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjShhubj<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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjZubah}(h]h ]h"]h$]h&]uh1j;8hjZhKhjShhubj)}(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)}(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.hhKhjZubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hjZh]hn}(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:162: ./include/linux/log2.hhKhjZubjD)}(hhh]j)}(h parameterh]h parameter}(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)}(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.hhKhjZubj)}(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.hhKhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrounddown_pow_of_two (C macro)c.rounddown_pow_of_twohNtauh1hhjShhhNhNubh)}(hhh](h)}(hrounddown_pow_of_twoh]h)}(hrounddown_pow_of_twoh]j)}(hrounddown_pow_of_twoh]j)}(hjG[h]hrounddown_pow_of_two}(hjQ[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjI[hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjE[hhhjd[hKubah}(h]j@[ah ](jjeh"]h$]h&]jj)jhuh1hhjd[hKhjB[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjB[hhhjd[hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj}[jj}[jjjuh1hhhhjShNhNubj)}(h``rounddown_pow_of_two (n)``h]j.)}(hj[h]hrounddown_pow_of_two (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.hhKhjShhubj<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.hhKhj[ubah}(h]h ]h"]h$]h&]uh1j;8hj[hKhjShhubj)}(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)}(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.hhKhj[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&]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:162: ./include/linux/log2.hhKhj[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.hhKhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌorder_base_2 (C macro)c.order_base_2hNtauh1hhjShhhNhNubh)}(hhh](h)}(h order_base_2h]h)}(h order_base_2h]j)}(h order_base_2h]j)}(hjQ\h]h order_base_2}(hj[\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjW\ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjS\hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjO\hhhjn\hKubah}(h]jJ\ah ](jjeh"]h$]h&]jj)jhuh1hhjn\hKhjL\hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjL\hhhjn\hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj\jj\jjjuh1hhhhjShNhNubj)}(h``order_base_2 (n)``h]j.)}(hj\h]horder_base_2 (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.hhKhjShhubj<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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj\ubah}(h]h ]h"]h$]h&]uh1j;8hj\hKhjShhubj)}(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.hhKhj\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&]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:162: ./include/linux/log2.hhKhj\ubj)}(hhh]j")}(hThe first few values calculated by this routine: ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h](j()}(h0The first few values calculated by this routine:h]h0The first few values calculated by this routine:}(hj9]hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj5]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.}(hjK]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjH]ubah}(h]h ]h"]h$]h&]uh1jChj5]ubeh}(h]h ]h"]h$]h&]uh1j!hjG]hKhj2]ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbits_per (C macro) c.bits_perhNtauh1hhjShhhNhNubh)}(hhh](h)}(hbits_perh]h)}(hbits_perh]j)}(hbits_perh]j)}(hj]h]hbits_per}(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]jjjuh1hhhhjShNhNubj)}(h``bits_per (n)``h]j.)}(hj]h]h bits_per (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.hhKhjShhubj<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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj]ubah}(h]h ]h"]h$]h&]uh1j;8hj]hKhjShhubj)}(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)}(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.hhKhj]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&]uh1jhj]ubj)}(h**Description**h]j)}(hjQ^h]h Description}(hjS^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj]ubj)}(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.}(hjg^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj]ubj)}(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.}(hjv^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubeh}(h]base-2-log-and-power-functionsah ]h"]base 2 log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hInteger log and power Functionsh]hInteger log and power Functions}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌintlog2 (C function) c.intlog2hNtauh1hhj^hhhNhNubh)}(hhh](h)}(h unsigned int intlog2 (u32 value)h]h)}(hunsigned int intlog2(u32 value)h](h)}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK!ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhhj^hK!ubh)}(hinth]hint}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^hhhj^hK!ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhhj^hK!ubj)}(hintlog2h]j)}(hintlog2h]hintlog2}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^hhhj^hK!ubj/)}(h (u32 value)h]j5)}(h u32 valueh](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^sb c.intlog2asbuh1hhj_ubh)}(h h]h }(hj:_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hvalueh]hvalue}(hjH_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^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?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}(hjr_hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjo_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hK!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_jj_jjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog2(value) = intlog2(value * 2^x) - x * 2^24 Some usecase examples: intlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 **Return** log2(value) * 2^24h](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:168: ./include/linux/int_log.hhKhj_ubj)}(hhh]j")}(h'``u32 value`` The value (must be != 0) h](j()}(h ``u32 value``h]j.)}(hj_h]h u32 value}(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:168: ./include/linux/int_log.hhKhj_ubjD)}(hhh]j)}(hThe value (must be != 0)h]hThe value (must be != 0)}(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**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:168: ./include/linux/int_log.hhKhj_ubj)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj_ubj<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}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj`ubah}(h]h ]h"]h$]h&]uh1j;8hj%`hKhj_ubj)}(hSome usecase examples:h]hSome usecase examples:}(hj,`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj_ubj<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}(hj?`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj;`ubj)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hjN`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj;`ubj)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hj]`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj;`ubeh}(h]h ]h"]h$]h&]uh1j;8hjM`hKhj_ubj)}(h **Return**h]j)}(hjt`h]hReturn}(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:168: ./include/linux/int_log.hhKhj_ubj)}(hlog2(value) * 2^24h]hlog2(value) * 2^24}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌintlog10 (C function) c.intlog10hNtauh1hhj^hhhNhNubh)}(hhh](h)}(h!unsigned int intlog10 (u32 value)h]h)}(h unsigned int intlog10(u32 value)h](h)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK6ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhj`hK6ubh)}(hinth]hint}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`hhhj`hK6ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhj`hK6ubj)}(hintlog10h]j)}(hintlog10h]hintlog10}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhj`hK6ubj/)}(h (u32 value)h]j5)}(h u32 valueh](h)}(hhh]j)}(hu32h]hu32}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jsj`sb c.intlog10asbuh1hhjaubh)}(h h]h }(hj5ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hvalueh]hvalue}(hjCahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj aubah}(h]h ]h"]h$]h&]j,j-uh1j.hj`hhhj`hK6ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj`hhhj`hK6ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hK6hj`hhubj)}(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}(hjmahhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK$hjjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hK6ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjajjajjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog10(value) = intlog10(value * 10^x) - x * 2^24 An usecase example: intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 look at intlog2 for similar examples **Return** log10(value) * 2^24h](j)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK(hjaubj)}(hhh]j")}(h'``u32 value`` The value (must be != 0) h](j()}(h ``u32 value``h]j.)}(hjah]h u32 value}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK&hjaubjD)}(hhh]j)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahK&hjaubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hjahK&hjaubah}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK(hjaubj)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK(hjaubj<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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK*hjbubah}(h]h ]h"]h$]h&]uh1j;8hj bhK*hjaubj)}(hAn usecase example:h]hAn usecase example:}(hj'bhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK,hjaubj<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}(hj>bhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK.hj:bubah}(h]h ]h"]h$]h&]uh1j;8hjLbhK.hj6bubj)}(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}(hjSbhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK0hj6bubeh}(h]h ]h"]h$]h&]uh1j;8hjLbhK.hjaubj)}(h$look at intlog2 for similar examplesh]h$look at intlog2 for similar examples}(hjhbhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK2hjaubj)}(h **Return**h]j)}(hjybh]hReturn}(hj{bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK4hjaubj)}(hlog10(value) * 2^24h]hlog10(value) * 2^24}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK4hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌint_pow (C function) c.int_powhNtauh1hhj^hhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsint_powsb c.int_powasbuh1hhjbhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhjbhKubj)}(hint_powh]j)}(hjbh]hint_pow}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbhhhjbhKubj/)}(h(u64 base, unsigned int exp)h](j5)}(hu64 baseh](h)}(hhh]j)}(hu64h]hu64}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]jb c.int_powasbuh1hhj cubh)}(h h]h }(hj1chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj cubj)}(hbaseh]hbase}(hj?chhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj cubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(hunsigned int exph](h)}(hunsignedh]hunsigned}(hjXchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTcubh)}(h h]h }(hjfchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTcubh)}(hinth]hint}(hjtchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTcubj)}(hexph]hexp}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhjbhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbhhhjbhKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhKhjbhhubj)}(hhh]j)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chK hjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhj^hNhNubj)}(h**Parameters** ``u64 base`` base which will be raised to the given power ``unsigned int exp`` power to be raised to **Description** Computes: pow(base, exp), i.e. **base** raised to the **exp** powerh](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:170: ./lib/math/int_pow.chKhjcubj)}(hhh](j")}(h:``u64 base`` base which will be raised to the given power h](j()}(h ``u64 base``h]j.)}(hjch]hu64 base}(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:170: ./lib/math/int_pow.chKhjcubjD)}(hhh]j)}(h,base which will be raised to the given powerh]h,base which will be raised to the given power}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hjdhKhjcubj")}(h+``unsigned int exp`` power to be raised to h](j()}(h``unsigned int exp``h]j.)}(hj4dh]hunsigned int exp}(hj6dhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2dubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhj.dubjD)}(hhh]j)}(hpower to be raised toh]hpower to be raised to}(hjMdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIdhKhjJdubah}(h]h ]h"]h$]h&]uh1jChj.dubeh}(h]h ]h"]h$]h&]uh1j!hjIdhKhjcubeh}(h]h ]h"]h$]h&]uh1jhjcubj)}(h**Description**h]j)}(hjodh]h Description}(hjqdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjcubj)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hjdhhhNhNubj)}(h**base**h]hbase}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh raised to the }(hjdhhhNhNubj)}(h**exp**h]hexp}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh power}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌint_sqrt (C function) c.int_sqrthNtauh1hhj^hhhNhNubh)}(hhh](h)}(h(unsigned long int_sqrt (unsigned long x)h]h)}(h'unsigned long int_sqrt(unsigned long x)h](h)}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjdhKubh)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhjdhKubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjdhKubj)}(hint_sqrth]j)}(hint_sqrth]hint_sqrt}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdhhhjdhKubj/)}(h(unsigned long x)h]j5)}(hunsigned long xh](h)}(hunsignedh]hunsigned}(hj1ehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-eubh)}(h h]h }(hj?ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-eubh)}(hlongh]hlong}(hjMehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-eubh)}(h h]h }(hj[ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-eubj)}(hj=h]hx}(hjiehhhNhNubah}(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.hjdhhhjdhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjdhKubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhKhjdhhubj)}(hhh]j)}(h computes the integer square rooth]h computes the integer square root}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhj^hNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))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:173: ./lib/math/int_sqrt.chKhjeubj)}(hhh]j")}(h;``unsigned long x`` integer of which to calculate the sqrt h](j()}(h``unsigned long x``h]j.)}(hjeh]hunsigned long x}(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:173: ./lib/math/int_sqrt.chKhjeubjD)}(hhh]j)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(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)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj fubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjeubj)}(hComputes: floor(sqrt(x))h]hComputes: floor(sqrt(x))}(hj$fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌint_sqrt64 (C function) c.int_sqrt64hNtauh1hhj^hhhNhNubh)}(hhh](h)}(hu32 int_sqrt64 (u64 x)h]h)}(hu32 int_sqrt64(u64 x)h](h)}(hhh]j)}(hu32h]hu32}(hjVfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXfmodnameN classnameNjwjz)}j}]j)}js int_sqrt64sb c.int_sqrt64asbuh1hhjOfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK1ubh)}(h h]h }(hjxfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOfhhhjwfhK1ubj)}(h int_sqrt64h]j)}(hjtfh]h int_sqrt64}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOfhhhjwfhK1ubj/)}(h(u64 x)h]j5)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]jrf c.int_sqrt64asbuh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hj=h]hx}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubah}(h]h ]h"]h$]h&]j,j-uh1j.hjOfhhhjwfhK1ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKfhhhjwfhK1ubah}(h]jFfah ](jjeh"]h$]h&]jj)jhuh1hhjwfhK1hjHfhhubj)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK-hjfhhubah}(h]h ]h"]h$]h&]uh1jhjHfhhhjwfhK1ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhj^hNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](j)}(h**Parameters**h]j)}(hjgh]h Parameters}(hj!ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK1hjgubj)}(hhh]j")}(h6``u64 x`` 64bit integer of which to calculate the sqrth](j()}(h ``u64 x``h]j.)}(hj>gh]hu64 x}(hj@ghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjreturns 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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK hjgubah}(h]h ]h"]h$]h&]uh1j;8hjhhK hjghhubj)}(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)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK$hjhubj)}(hhh](j")}(h*``n`` uint64_t dividend (will be updated) h](j()}(h``n``h]j.)}(hj;hh]hn}(hj=hhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9hubah}(h]h ]h"]h$]h&]uh1j'h`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK!hj5hubjD)}(hhh]j)}(h#uint64_t dividend (will be updated)h]h#uint64_t dividend (will be updated)}(hjThhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhhK!hjQhubah}(h]h ]h"]h$]h&]uh1jChj5hubeh}(h]h ]h"]h$]h&]uh1j!hjPhhK!hj2hubj")}(h``base`` uint32_t divisor h](j()}(h``base``h]j.)}(hjthh]hbase}(hjvhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrhubah}(h]h ]h"]h$]h&]uh1j'h`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK"hjnhubjD)}(hhh]j)}(huint32_t divisorh]huint32_t divisor}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhK"hjhubah}(h]h ]h"]h$]h&]uh1jChjnhubeh}(h]h ]h"]h$]h&]uh1j!hjhhK"hj2hubeh}(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&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK$hjhubj)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hjhhhhNhNubj.)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubh }(hjhhhhNhNubj.)}(h``n = n / base;``h]h n = n / base;}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubeh}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK$hjhubj)}(h **Return**h]j)}(hjhh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK(hjhubj)}(h(uint32_t)remainderh]h(uint32_t)remainder}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK(hjhubj)}(h**NOTE**h]j)}(hjih]hNOTE}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK*hjhubj)}(hJmacro parameter **n** is evaluated multiple times, beware of side effects!h](hmacro parameter }(hj3ihhhNhNubj)}(h**n**h]hn}(hj;ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3iubh5 is evaluated multiple times, beware of side effects!}(hj3ihhhNhNubeh}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK*hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_u64_rem (C function) c.div_u64_remhNtauh1hhjghhhNhNubh)}(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}(hjwihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjyimodnameN classnameNjwjz)}j}]j)}js div_u64_remsb c.div_u64_remasbuh1hhjpihhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpihhhjihKubj)}(h div_u64_remh]j)}(hjih]h div_u64_rem}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjpihhhjihKubj/)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j5)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]ji c.div_u64_remasbuh1hhjiubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hdividendh]hdividend}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]ji c.div_u64_remasbuh1hhj jubh)}(h h]h }(hj/jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj jubj)}(hdivisorh]hdivisor}(hj=jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(hu32 *remainderh](h)}(hhh]j)}(hu32h]hu32}(hjYjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[jmodnameN classnameNjwjz)}j}]ji c.div_u64_remasbuh1hhjRjubh)}(h h]h }(hjwjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRjubj)}(h remainderh]h remainder}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjpihhhjihKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlihhhjihKubah}(h]jgiah ](jjeh"]h$]h&]jj)jhuh1hhjihKhjiihhubj)}(hhh]j)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 64bit divide with 32bit divisor with remainder}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjhhubah}(h]h ]h"]h$]h&]uh1jhjiihhhjihKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjghNhNubj)}(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)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjubj)}(hhh](j")}(h)``u64 dividend`` unsigned 64bit dividend h](j()}(h``u64 dividend``h]j.)}(hjjh]h u64 dividend}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhKhjkubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjkhKhjjubj")}(h'``u32 divisor`` unsigned 32bit divisor h](j()}(h``u32 divisor``h]j.)}(hj6kh]h u32 divisor}(hj8khhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4kubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj0kubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjOkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKkhKhjLkubah}(h]h ]h"]h$]h&]uh1jChj0kubeh}(h]h ]h"]h$]h&]uh1j!hjKkhKhjjubj")}(h7``u32 *remainder`` pointer to unsigned 32bit remainder h](j()}(h``u32 *remainder``h]j.)}(hjokh]hu32 *remainder}(hjqkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmkubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjikubjD)}(hhh]j)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhKhjkubah}(h]h ]h"]h$]h&]uh1jChjikubeh}(h]h ]h"]h$]h&]uh1j!hjkhKhjjubeh}(h]h ]h"]h$]h&]uh1jhjjubj)}(h **Return**h]j)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjubj)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjkhhhNhNubj.)}(h``*remainder``h]h *remainder}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubh!, then returns dividend / divisor}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjubj)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_s64_rem (C function) c.div_s64_remhNtauh1hhjghhhNhNubh)}(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}(hj+lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(lubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-lmodnameN classnameNjwjz)}j}]j)}js div_s64_remsb c.div_s64_remasbuh1hhj$lhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK(ubh)}(h h]h }(hjMlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$lhhhjLlhK(ubj)}(h div_s64_remh]j)}(hjIlh]h div_s64_rem}(hj_lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[lubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$lhhhjLlhK(ubj/)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j5)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hj}lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]jGl c.div_s64_remasbuh1hhjvlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvlubj)}(hdividendh]hdividend}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrlubj5)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]jGl c.div_s64_remasbuh1hhjlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hdivisorh]hdivisor}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrlubj5)}(hs32 *remainderh](h)}(hhh]j)}(hs32h]hs32}(hj mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jGl c.div_s64_remasbuh1hhjmubh)}(h h]h }(hj+mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hj9mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h remainderh]h remainder}(hjFmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj$lhhhjLlhK(ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj lhhhjLlhK(ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjLlhK(hjlhhubj)}(hhh]j)}(h5signed 64bit divide with 32bit divisor with remainderh]h5signed 64bit divide with 32bit divisor with remainder}(hjpmhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK!hjmmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjLlhK(ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhjghNhNubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK%hjmubj)}(hhh](j")}(h'``s64 dividend`` signed 64bit dividend h](j()}(h``s64 dividend``h]j.)}(hjmh]h s64 dividend}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK"hjmubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhK"hjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhK"hjmubj")}(h%``s32 divisor`` signed 32bit divisor h](j()}(h``s32 divisor``h]j.)}(hjmh]h s32 divisor}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK#hjmubjD)}(hhh]j)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhK#hjnubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhK#hjmubj")}(h5``s32 *remainder`` pointer to signed 32bit remainder h](j()}(h``s32 *remainder``h]j.)}(hj#nh]hs32 *remainder}(hj%nhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!nubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK$hjnubjD)}(hhh]j)}(h!pointer to signed 32bit remainderh]h!pointer to signed 32bit remainder}(hjph]h u64 dividend}(hj@phhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKCubh)}(h h]h }(hjgqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>qhhhjfqhKCubj)}(h div64_u64h]j)}(hjcqh]h div64_u64}(hjyqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>qhhhjfqhKCubj/)}(h(u64 dividend, u64 divisor)h](j5)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]jaq c.div64_u64asbuh1hhjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hdividendh]hdividend}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(h u64 divisorh](h)}(hhh]j)}(hu64h]hu64}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]jaq c.div64_u64asbuh1hhjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hdivisorh]hdivisor}(hj rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj>qhhhjfqhKCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:qhhhjfqhKCubah}(h]j5qah ](jjeh"]h$]h&]jj)jhuh1hhjfqhKChj7qhhubj)}(hhh]j)}(h(unsigned 64bit divide with 64bit divisorh]h(unsigned 64bit divide with 64bit divisor}(hj5rhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK=hj2rhhubah}(h]h ]h"]h$]h&]uh1jhj7qhhhjfqhKCubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjMrjjMrjjjuh1hhhhjghNhNubj)}(h**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor **Return** dividend / divisorh](j)}(h**Parameters**h]j)}(hjWrh]h Parameters}(hjYrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUrubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKAhjQrubj)}(hhh](j")}(h)``u64 dividend`` unsigned 64bit dividend h](j()}(h``u64 dividend``h]j.)}(hjvrh]h u64 dividend}(hjxrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtrubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK>hjprubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhK>hjrubah}(h]h ]h"]h$]h&]uh1jChjprubeh}(h]h ]h"]h$]h&]uh1j!hjrhK>hjmrubj")}(h'``u64 divisor`` unsigned 64bit divisor h](j()}(h``u64 divisor``h]j.)}(hjrh]h u64 divisor}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK?hjrubjD)}(hhh]j)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhK?hjrubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjrhK?hjmrubeh}(h]h ]h"]h$]h&]uh1jhjQrubj)}(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.hhKAhjQrubj)}(hdividend / divisorh]hdividend / divisor}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKAhjQrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv64_s64 (C function) c.div64_s64hNtauh1hhjghhhNhNubh)}(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}(hj2shhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/subah}(yh]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4smodnameN classnameNjwjz)}j}]j)}js div64_s64sb c.div64_s64asbuh1hhj+shhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKOubh)}(h h]h }(hjTshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+shhhjSshKOubj)}(h div64_s64h]j)}(hjPsh]h div64_s64}(hjfshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+shhhjSshKOubj/)}(h(s64 dividend, s64 divisor)h](j5)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]jNs c.div64_s64asbuh1hhj}subh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}subj)}(hdividendh]hdividend}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}subeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjysubj5)}(h s64 divisorh](h)}(hhh]j)}(hs64h]hs64}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]jNs c.div64_s64asbuh1hhjsubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hdivisorh]hdivisor}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjysubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+shhhjSshKOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'shhhjSshKOubah}(h]j"sah ](jjeh"]h$]h&]jj)jhuh1hhjSshKOhj$shhubj)}(hhh]j)}(h&signed 64bit divide with 64bit divisorh]h&signed 64bit divide with 64bit divisor}(hj"thhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKIhjthhubah}(h]h ]h"]h$]h&]uh1jhj$shhhjSshKOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:tjj:tjjjuh1hhhhjghNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor **Return** dividend / divisorh](j)}(h**Parameters**h]j)}(hjDth]h Parameters}(hjFthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBtubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKMhj>tubj)}(hhh](j")}(h'``s64 dividend`` signed 64bit dividend h](j()}(h``s64 dividend``h]j.)}(hjcth]h s64 dividend}(hjethhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjatubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKJhj]tubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj|thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxthKJhjytubah}(h]h ]h"]h$]h&]uh1jChj]tubeh}(h]h ]h"]h$]h&]uh1j!hjxthKJhjZtubj")}(h%``s64 divisor`` signed 64bit divisor h](j()}(h``s64 divisor``h]j.)}(hjth]h s64 divisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKKhjtubjD)}(hhh]j)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthKKhjtubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjthKKhjZtubeh}(h]h ]h"]h$]h&]uh1jhj>tubj)}(h **Return**h]j)}(hjth]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKMhj>tubj)}(hdividend / divisorh]hdividend / divisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKMhj>tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_u64 (C function) c.div_u64hNtauh1hhjghhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj!umodnameN classnameNjwjz)}j}]j)}jsdiv_u64sb c.div_u64asbuh1hhjuhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK~ubh)}(h h]h }(hjAuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhj@uhK~ubj)}(hdiv_u64h]j)}(hj=uh]hdiv_u64}(hjSuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhj@uhK~ubj/)}(h(u64 dividend, u32 divisor)h](j5)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjquhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsumodnameN classnameNjwjz)}j}]j;u c.div_u64asbuh1hhjjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjuubj)}(hdividendh]hdividend}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfuubj5)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j;u c.div_u64asbuh1hhjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hdivisorh]hdivisor}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfuubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhj@uhK~ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhj@uhK~ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhj@uhK~hjuhhubj)}(hhh]j)}(h(unsigned 64bit divide with 32bit divisorh]h(unsigned 64bit divide with 32bit divisor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKthj vhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhj@uhK~ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'vjj'vjjjuh1hhhhjghNhNubj)}(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)}(hj1vh]h Parameters}(hj3vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/vubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKxhj+vubj)}(hhh](j")}(h)``u64 dividend`` unsigned 64bit dividend h](j()}(h``u64 dividend``h]j.)}(hjPvh]h u64 dividend}(hjRvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNvubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKuhjJvubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjivhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjevhKuhjfvubah}(h]h ]h"]h$]h&]uh1jChjJvubeh}(h]h ]h"]h$]h&]uh1j!hjevhKuhjGvubj")}(h'``u32 divisor`` unsigned 32bit divisor h](j()}(h``u32 divisor``h]j.)}(hjvh]h u32 divisor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKvhjvubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhKvhjvubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjvhKvhjGvubeh}(h]h ]h"]h$]h&]uh1jhj+vubj)}(h**Description**h]j)}(hjvh]h Description}(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.hhKxhj+vubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKxhj+vubj)}(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.hhK|hj+vubj)}(hdividend / divisorh]hdividend / divisor}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK|hj+vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_s64 (C function) c.div_s64hNtauh1hhjghhhNhNubh)}(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}(hj3whhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0wubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5wmodnameN classnameNjwjz)}j}]j)}jsdiv_s64sb c.div_s64asbuh1hhj,whhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKubh)}(h h]h }(hjUwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,whhhjTwhKubj)}(hdiv_s64h]j)}(hjQwh]hdiv_s64}(hjgwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcwubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj,whhhjTwhKubj/)}(h(s64 dividend, s32 divisor)h](j5)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]jOw c.div_s64asbuh1hhj~wubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~wubj)}(hdividendh]hdividend}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~wubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzwubj5)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]jOw c.div_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-uh1j4hjzwubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj,whhhjTwhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj(whhhjTwhKubah}(h]j#wah ](jjeh"]h$]h&]jj)jhuh1hhjTwhKhj%whhubj)}(hhh]j)}(h&signed 64bit divide with 32bit divisorh]h&signed 64bit divide with 32bit divisor}(hj#xhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj xhhubah}(h]h ]h"]h$]h&]uh1jhj%whhhjTwhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;xjj;xjjjuh1hhhhjghNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor **Return** dividend / divisorh](j)}(h**Parameters**h]j)}(hjExh]h Parameters}(hjGxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCxubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj?xubj)}(hhh](j")}(h'``s64 dividend`` signed 64bit dividend h](j()}(h``s64 dividend``h]j.)}(hjdxh]h s64 dividend}(hjfxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbxubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj^xubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj}xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyxhKhjzxubah}(h]h ]h"]h$]h&]uh1jChj^xubeh}(h]h ]h"]h$]h&]uh1j!hjyxhKhj[xubj")}(h%``s32 divisor`` signed 32bit divisor h](j()}(h``s32 divisor``h]j.)}(hjxh]h s32 divisor}(hjxhhhNhNubah}(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.hhKhjxubjD)}(hhh]j)}(hsigned 32bit divisorh]hsigned 32bit divisor}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj?xubj)}(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.hhKhj?xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhjghhhNhNubh)}(hhh](h)}(hDIV64_U64_ROUND_UPh]h)}(hDIV64_U64_ROUND_UPh]j)}(hDIV64_U64_ROUND_UPh]j)}(hjyh]hDIV64_U64_ROUND_UP}(hj!yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM)ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjyhhhj4yhM)ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhj4yhM)hjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhj4yhM)ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjMyjjMyjjjuh1hhhhjghNhNubj)}(h``DIV64_U64_ROUND_UP (ll, d)``h]j.)}(hjSyh]hDIV64_U64_ROUND_UP (ll, d)}(hjUyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQyubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM+hjghhubj<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}(hjmyhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM hjiyubah}(h]h ]h"]h$]h&]uh1j;8hj{yhM hjghhubj)}(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)}(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.hhM$hjyubj)}(hhh](j")}(h``ll`` unsigned 64bit dividend h](j()}(h``ll``h]j.)}(hjyh]hll}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM!hjyubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhM!hjyubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjyhM!hjyubj")}(h``d`` unsigned 64bit divisor h](j()}(h``d``h]j.)}(hjyh]hd}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM"hjyubjD)}(hhh]j)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhM"hjyubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjyhM"hjyubeh}(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.hhM$hjyubj)}(hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.}(hj1zhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM$hjyubj)}(h **Return**h]j)}(hjBzh]hReturn}(hjDzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@zubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM'hjyubj)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hjXzhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM'hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhjghhhNhNubh)}(hhh](h)}(hDIV_U64_ROUND_UPh]h)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]j)}(hjzh]hDIV_U64_ROUND_UP}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM6ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhjzhM6ubah}(h]jzzah ](jjeh"]h$]h&]jj)jhuh1hhjzhM6hj|zhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|zhhhjzhM6ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjzjjzjjjuh1hhhhjghNhNubj)}(h``DIV_U64_ROUND_UP (ll, d)``h]j.)}(hjzh]hDIV_U64_ROUND_UP (ll, d)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM8hjghhubj<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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM-hjzubah}(h]h ]h"]h$]h&]uh1j;8hjzhM-hjghhubj)}(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)}(hjzh]h Parameters}(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.hhM1hjzubj)}(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.)}(hjJ{h]hd}(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:182: ./include/linux/math64.hhM/hjD{ubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjc{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_{hM/hj`{ubah}(h]h ]h"]h$]h&]uh1jChjD{ubeh}(h]h ]h"]h$]h&]uh1j!hj_{hM/hj{ubeh}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM1hjzubj)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit 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.hhM1hjzubj)}(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.hhM4hjzubj)}(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.hhM4hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhjghhhNhNubh)}(hhh](h)}(hDIV64_U64_ROUND_CLOSESTh]h)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hj{h]hDIV64_U64_ROUND_CLOSEST}(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.hhMCubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhj|hMCubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMChj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhj|hMCubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj!|jj!|jjjuh1hhhhjghNhNubj)}(h/``DIV64_U64_ROUND_CLOSEST (dividend, divisor)``h]j.)}(hj'|h]h+DIV64_U64_ROUND_CLOSEST (dividend, divisor)}(hj)|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%|ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMEhjghhubj<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}(hjA|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;8hjO|hM:hjghhubj)}(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)}(hj\|h]h Parameters}(hj^|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ|ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM>hjV|ubj)}(hhh](j")}(h%``dividend`` unsigned 64bit dividend h](j()}(h ``dividend``h]j.)}(hj{|h]hdividend}(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.hhM;hju|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&]uh1jChju|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hM;hjr|ubj")}(h#``divisor`` unsigned 64bit 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.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<hjr|ubeh}(h]h ]h"]h$]h&]uh1jhjV|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>hjV|ubj)}(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>hjV|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.hhMAhjV|ubj)}(h-dividend / divisor rounded to nearest integerh]h-dividend / 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.hhMAhjV|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhjghhhNhNubh)}(hhh](h)}(hDIV_U64_ROUND_CLOSESTh]h)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hjU}h]hDIV_U64_ROUND_CLOSEST}(hj_}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[}ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjW}hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMPubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjS}hhhjr}hMPubah}(h]jN}ah ](jjeh"]h$]h&]jj)jhuh1hhjr}hMPhjP}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjP}hhhjr}hMPubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj}jj}jjjuh1hhhhjghNhNubj)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j.)}(hj}h]h)DIV_U64_ROUND_CLOSEST (dividend, divisor)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMRhjghhubj<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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMGhj}ubah}(h]h ]h"]h$]h&]uh1j;8hj}hMGhjghhubj)}(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)}(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.hhMKhj}ubj)}(hhh](j")}(h%``dividend`` unsigned 64bit dividend h](j()}(h ``dividend``h]j.)}(hj}h]hdividend}(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.hhMHhj}ubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj}hhhNhNubah}(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#``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}(hj7~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3~hMIhj4~ubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hj3~hMIhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}ubj)}(h**Description**h]j)}(hjY~h]h Description}(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: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.}(hjo~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}(hj~hhhNhNubah}(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&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhjghhhNhNubh)}(hhh](h)}(hDIV_S64_ROUND_CLOSESTh]h)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hj~h]hDIV_S64_ROUND_CLOSEST}(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~jjjuh1hhhhjghNhNubj)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j.)}(hj~h]h)DIV_S64_ROUND_CLOSEST (dividend, divisor)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM_hjghhubj<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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMThjubah}(h]h ]h"]h$]h&]uh1j;8hj#hMThjghhubj)}(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)}(hj0h]h Parameters}(hj2hhhNhNubah}(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.hhMXhj*ubj)}(hhh](j")}(h#``dividend`` signed 64bit dividend h](j()}(h ``dividend``h]j.)}(hjOh]hdividend}(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:182: ./include/linux/math64.hhMUhjIubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMUhjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhMUhjFubj")}(h!``divisor`` signed 32bit divisor h](j()}(h ``divisor``h]j.)}(hjh]hdivisor}(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.hhMVhjubjD)}(hhh]j)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMVhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMVhjFubeh}(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.hhMXhj*ubj)}(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.hhMXhj*ubj)}(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[hj*ubj)}(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[hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌroundup_u64 (C function) c.roundup_u64hNtauh1hhjghhhNhNubh)}(hhh](h)}(hu64 roundup_u64 (u64 x, u32 y)h]h)}(hu64 roundup_u64(u64 x, u32 y)h](h)}(hhh]j)}(hu64h]hu64}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}js roundup_u64sb c.roundup_u64asbuh1hhj+hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMqubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhjShMqubj)}(h roundup_u64h]j)}(hjPh]h roundup_u64}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhjShMqubj/)}(h(u64 x, u32 y)h](j5)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jN c.roundup_u64asbuh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hj=h]hx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubj5)}(hu32 yh](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}]jN c.roundup_u64asbuh1hhjĀubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĀubj)}(hyh]hy}(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+hhhjShMqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhjShMqubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhjShMqhj$hhubj)}(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.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhjShMqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhjghNhNubj)}(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)}(hjCh]h Parameters}(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.hhMlhj=ubj)}(hhh](j")}(h``u64 x`` the value to up h](j()}(h ``u64 x``h]j.)}(hjbh]hu64 x}(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:182: ./include/linux/math64.hhMihj\ubjD)}(hhh]j)}(hthe value to uph]hthe value to up}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMihjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMihjYubj")}(h(``u32 y`` 32bit multiple to round up to h](j()}(h ``u32 y``h]j.)}(hjh]hu32 y}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMjhjubjD)}(hhh]j)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMjhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMjhjYubeh}(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.hhMlhj=ubj)}(hzRounds **x** to the next multiple of **y**. For 32bit **x** values, see roundup and the faster round_up() for powers of 2.h](hRounds }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to the next multiple of }(hjhhhNhNubj)}(h**y**h]hy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . For 32bit }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? values, see roundup and the faster round_up() for powers of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMlhj=ubj)}(h **Return**h]j)}(hj3h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMohj=ubj)}(hrounded up value.h]hrounded up value.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMohj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌgcd (C function)c.gcdhNtauh1hhjghhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjthhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjhKubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjthhhjhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjhKubj)}(hgcdh]j)}(hgcdh]hgcd}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjthhhjhKubj/)}(h"(unsigned long a, unsigned long b)h](j5)}(hunsigned long ah](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)}(hj6 h]ha}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͂ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɂubj5)}(hunsigned long bh](h)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(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 }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hj h]hb}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɂubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjthhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjhKubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjmhhubj)}(hhh]j)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjghNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](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:185: ./lib/math/gcd.chKhjubj)}(hhh](j")}(h ``unsigned long a`` first value h](j()}(h``unsigned long a``h]j.)}(hjÃh]hunsigned long a}(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:185: ./lib/math/gcd.chKhjubjD)}(hhh]j)}(h first valueh]h first value}(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 ``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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjghhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!generate_random_uuid (C function)c.generate_random_uuidhNtauh1hhjEhhhNhNubh)}(hhh](h)}(h2void generate_random_uuid (unsigned char uuid[16])h]h)}(h1void generate_random_uuid(unsigned char uuid[16])h](h)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chK!ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkhhhj}hK!ubj)}(hgenerate_random_uuidh]j)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhj}hK!ubj/)}(h(unsigned char uuid[16])h]j5)}(hunsigned char uuid[16]h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(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)}(huuidh]huuid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(hjBh]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_literal_number)}(h16h]h16}(hjhhhNhNubah}(h]h ]mah"]h$]h&]uh1jhjubj)}(hj Ch]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjkhhhj}hK!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhj}hK!ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hK!hjdhhubj)}(hhh]j)}(hgenerate a random UUIDh]hgenerate a random UUID}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hK!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjQjjQjjjuh1hhhhjEhNhNubj)}(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)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjUubj)}(hhh]j")}(h;``unsigned char uuid[16]`` where to put the generated UUID h](j()}(h``unsigned char uuid[16]``h]j.)}(hjzh]hunsigned char uuid[16]}(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:191: ./lib/uuid.chKhjtubjD)}(hhh]j)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjqubah}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjUubj)}(hRandom UUID interfaceh]hRandom UUID interface}(hj˅hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjUubj)}(h_Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.h]h_Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.}(hjڅhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuuid_is_valid (C function)c.uuid_is_validhNtauh1hhjEhhhNhNubh)}(hhh](h)}(h%bool uuid_is_valid (const char *uuid)h]h)}(h$bool uuid_is_valid(const char *uuid)h](h)}(hjoh]hbool}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKXubj)}(h uuid_is_validh]j)}(h uuid_is_validh]h uuid_is_valid}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKXubj/)}(h(const char *uuid)h]j5)}(hconst char *uuidh](j;)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hcharh]hchar}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(huuidh]huuid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKXubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKXhjhhubj)}(hhh]j)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKXubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjˆjjˆjjjuh1hhhhjEhNhNubj)}(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)}(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:191: ./lib/uuid.chKQhjφubj)}(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&]uh1jhj hKNhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKNhjubah}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKPhjφubj)}(hhh]j")}(h[It checks if the UUID string is following the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx h](j()}(h5It checks if the UUID string is following the format:h]h5It checks if the UUID string is following the format:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKQhjHubjD)}(hhh]j)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhKQhj[ubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjZhKQhjEubah}(h]h ]h"]h$]h&]uh1jhjφubj)}(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.chKShjφubj)}(h **Return**h]j)}(hjh]hReturn}(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.chKUhjφubj)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKVhjφubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubeh}(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}(hj·hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjˇhhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hj߇hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܇hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_init (C function) c.ipc_inithNtauh1hhj܇hhhNhNubh)}(hhh](h)}(hint ipc_init (void)h]h)}(hint ipc_init(void)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKZubj)}(hipc_inith]j)}(hipc_inith]hipc_init}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKZubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKZubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKZubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKZhjhhubj)}(hhh]j)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKQhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKZubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hXX**Parameters** ``void`` no arguments **Description** The various sysv ipc resources (semaphores, messages and shared memory) are initialised. A callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h](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.chKUhjubj)}(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'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKXhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjLjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÈhKXhjĈubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjÈhKXhjubah}(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.chKZhjubj)}(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.chKRhjubj)}(hA callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h]hA callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_init_ids (C function)c.ipc_init_idshNtauh1hhj܇hhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKsubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjKhKsubj)}(h ipc_init_idsh]j)}(h ipc_init_idsh]h ipc_init_ids}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhjKhKsubj/)}(h(struct ipc_ids *ids)h]j5)}(hstruct ipc_ids *idsh](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)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj`sbc.ipc_init_idsasbuh1hhjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjƉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hidsh]hids}(hjӉhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubah}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhjKhKsubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhjKhKsubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhKshj2hhubj)}(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&]uh1jhj2hhhjKhKsubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set **Description** Set up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(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.chKqhjubj)}(hhh]j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hj>h]hstruct ipc_ids *ids}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKnhj8ubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShKnhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShKnhj5ubah}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKphjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhj܇hhhNhNubh)}(hhh](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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKubh)}(h h]h }(hj͊hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj̊hKubj)}(hipc_init_proc_interfaceh]j)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hjߊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۊubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj̊hKubj/)}(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 }(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)}(hpathh]hpath}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *headerh](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)}(hheaderh]hheader}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint idsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjËhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hidsh]hids}(hjыhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshowh]hshow}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h)h]h)}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hj>h]hstruct}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hseq_fileh]hseq_file}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_init_proc_interfaceasbuh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h,h]h,}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj1h]h)}(hǰhhhNhNubah}(h]h ]jah"]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)}(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&]uh1jhjhhhj̊hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``const char *path`` Path in procfs ``const char *header`` Banner to be printed at the beginning of the file. ``int ids`` ipc id table to iterate. ``int (*show)(struct seq_file *, void *)`` show routine.h](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.chKhjubj)}(hhh](j")}(h$``const char *path`` Path in procfs h](j()}(h``const char *path``h]j.)}(hj6h]hconst char *path}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhj0ubjD)}(hhh]j)}(hPath in procfsh]hPath in procfs}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhKhj-ubj")}(hJ``const char *header`` Banner to be printed at the beginning of the file. h](j()}(h``const char *header``h]j.)}(hjoh]hconst char *header}(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.chKhjiubjD)}(hhh]j)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj-ubj")}(h%``int ids`` ipc id table to iterate. h](j()}(h ``int ids``h]j.)}(hjh]hint 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.chKhjubjD)}(hhh]j)}(hipc id table to iterate.h]hipc id table to iterate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj-ubj")}(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-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)}(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&]uh1jChjۍubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj-ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_findkey (C function) c.ipc_findkeyhNtauh1hhj܇hhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhjHhKubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j)}js ipc_findkeysb c.ipc_findkeyasbuh1hhj7hhhjHhKubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhjHhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjHhKubj)}(h ipc_findkeyh]j)}(hjxh]h ipc_findkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7hhhjHhKubj/)}(h (struct ipc_ids *ids, key_t key)h](j5)}(hstruct ipc_ids *idsh](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)}(hipc_idsh]hipc_ids}(hjӎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjЎubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjՎmodnameN classnameNjwjz)}j}]jv c.ipc_findkeyasbuh1hhjubh)}(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 key_t keyh](h)}(hhh]j)}(hkey_th]hkey_t}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]jv c.ipc_findkeyasbuh1hhj!ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hkeyh]hkey}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj7hhhjHhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj3hhhjHhKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjHhKhj0hhubj)}(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.chKhj{hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjHhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``key_t key`` key to find **Description** Returns the locked pointer to the ipc structure if found or NULL otherwise. If key is found ipc points to the owning ipc structure Called with writer ipc_ids.rwsem held.h](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.chKhjubj)}(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.chKhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(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``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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKhjubeh}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubj)}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubj)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_addid (C function) c.ipc_addidhNtauh1hhj܇hhhNhNubh)}(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}(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)}(h ipc_addidh]j)}(h ipc_addidh]h ipc_addid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j5)}(hstruct ipc_ids *idsh](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)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjߐubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.ipc_addidasbuh1hhjubh)}(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-uh1j4hjubj5)}(hstruct kern_ipc_perm *newh](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)}(h kern_ipc_permh]h kern_ipc_perm}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]j c.ipc_addidasbuh1hhj2ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int limith](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlimith]hlimit}(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]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj|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|hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hX4**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *new`` new ipc permission set ``int limit`` limit for the number of used ids **Description** Add an entry 'new' to the ipc ids idr. The permissions object is initialised and the first free entry is set up and the index assigned is returned. The 'new' entry is returned in a locked state on success. On failure the entry is not locked and a negative err-code is returned. The caller must use ipc_rcu_putref() to free the identifier. Called with writer ipc_ids.rwsem held.h](j)}(h**Parameters**h]j)}(hjh]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.chM hjubj)}(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.chM hj'ubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhM hjCubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hjBhM hj$ubj")}(h5``struct kern_ipc_perm *new`` new ipc permission set h](j()}(h``struct kern_ipc_perm *new``h]j.)}(hjfh]hstruct kern_ipc_perm *new}(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.chM hj`ubjD)}(hhh]j)}(hnew ipc permission seth]hnew ipc permission set}(hjhhhNhNubah}(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 limit`` limit for the number of used ids 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.chM hjubjD)}(hhh]j)}(h limit for the number of used idsh]h limit for the number of used ids}(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}(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)}(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 hjubj)}(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.chMhjubj)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcget_new (C function) c.ipcget_newhNtauh1hhj܇hhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMSubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjKhMSubj)}(h ipcget_newh]j)}(h ipcget_newh]h ipcget_new}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhjKhMSubj/)}(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}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(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)}jsj`sb c.ipcget_newasbuh1hhjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjƓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hnsh]hns}(hjӓhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubj5)}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j c.ipcget_newasbuh1hhjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubj5)}(hconst struct ipc_ops *opsh](j;)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj;)}(hj>h]hstruct}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(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.ipcget_newasbuh1hhjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hopsh]hops}(hjΔhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubj5)}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.ipcget_newasbuh1hhjubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparamsh]hparams}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhjKhMSubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhjKhMSubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMShj2hhubj)}(hhh]j)}(hcreate a new ipc objecth]hcreate a new ipc object}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMJhjehhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMSubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hXR**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` the actual creation routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.h](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.chMNhjubj)}(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.chMKhjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hj•hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMKhjubj")}(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.chMLhjܕubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjܕubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjubj")}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j()}(h``const struct ipc_ops *ops``h]j.)}(hjh]hconst struct ipc_ops *ops}(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)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMMhj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hMMhjubj")}(h-``struct ipc_params *params`` its parameters h](j()}(h``struct ipc_params *params``h]j.)}(hjTh]hstruct ipc_params *params}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMNhjNubjD)}(hhh]j)}(hits parametersh]hits parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMNhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihMNhjubeh}(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.chMPhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_check_perms (C function)c.ipc_check_permshNtauh1hhj܇hhhNhNubh)}(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}(hjԖhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjЖhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjЖhhhjhMmubj)}(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 hjЖhhhjhMmubj/)}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_check_permsasbuh1hhj ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnsh]hns}(hjjhhhNhNubah}(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}]jKc.ipc_check_permsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj͗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hipcph]hipcp}(hjڗhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]jKc.ipc_check_permsasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hjehhhNhNubah}(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:hjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jKc.ipc_check_permsasbuh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hjȘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hparamsh]hparams}(hj՘hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjЖhhhjhMmubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj̖hhhjhMmubah}(h]jǖah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjɖhhubj)}(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&]uh1jhjɖhhhjhMmubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``const struct ipc_ops *ops`` the actual security routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR. On success, the ipc id is returned. It is called with ipc_ids.rwsem and ipcp->lock held.h](j)}(h**Parameters**h]j)}(hj!h]h Parameters}(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.chMchjubj)}(hhh](j")}(h+``struct ipc_namespace *ns`` ipc namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hj@h]hstruct ipc_namespace *ns}(hjBhhhNhNubah}(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`hj:ubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhM`hjVubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hjUhM`hj7ubj")}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjyh]hstruct kern_ipc_perm *ipcp}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMahjsubjD)}(hhh]j)}(hipc permission seth]hipc permission set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMahjubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjhMahj7ubj")}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j()}(h``const struct ipc_ops *ops``h]j.)}(hjh]hconst struct ipc_ops *ops}(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.chMbhjubjD)}(hhh]j)}(h#the actual security routine to callh]h#the actual security routine to call}(hj˙hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǙhMbhjșubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjǙhMbhj7ubj")}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMchj7ubeh}(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.chMehjubj)}(hThis routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR.h]hThis routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMehjubj)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMihjubj)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcget_public (C function)c.ipcget_publichNtauh1hhj܇hhhNhNubh)}(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}(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)}(h ipcget_publich]j)}(h ipcget_publich]h ipcget_public}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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}(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.ipcget_publicasbuh1hhjšubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjšubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjšubj)}(hnsh]hns}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjšubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}]jc.ipcget_publicasbuh1hhj4ubh)}(h h]h }(hjthhhNhNubah}(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-uh1j4hjubj5)}(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&]uh1jhjޛubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.ipcget_publicasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ipc_params *paramsh](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 ipc_paramsh]h ipc_params}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]jc.ipcget_publicasbuh1hhj/ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hparamsh]hparams}(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]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj~hhubj)}(hhh]j)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(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~hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj̜jj̜jjjuh1hhhhj܇hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` the actual creation routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is not IPC_PRIVATE. It adds a new entry if the key is not found and does some permission / security checkings if the key is found. On success, the ipc id is returned.h](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.chMhjМ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.chMhjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hjhhhNhNubah}(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.)}(hj.h]hstruct ipc_ids *ids}(hj0hhhNhNubah}(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)}(hipc identifier seth]hipc identifier set}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjubj")}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j()}(h``const struct ipc_ops *ops``h]j.)}(hjgh]hconst struct ipc_ops *ops}(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.chMhjaubjD)}(hhh]j)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhjubj")}(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.chMhjubjD)}(hhh]j)}(hits parametersh]hits parameters}(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)}(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.chMhjМubj)}(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.chMhjМubj)}(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.chMhjМubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhj܇hhhNhNubh)}(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}(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 }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hMubj)}(hipc_kht_removeh]j)}(hipc_kht_removeh]hipc_kht_remove}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj=hMubj/)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j5)}(hstruct ipc_ids *idsh](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)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjRsbc.ipc_kht_removeasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hidsh]hids}(hjŞhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(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}]jc.ipc_kht_removeasbuh1hhjڞ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}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjڞubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubeh}(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 an ipc from the key hashtableh]h$remove an ipc from the key hashtable}(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&]jjqjjwjjwjjjuh1hhhhj܇hNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](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.chMhj{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.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")}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjٟh]hstruct kern_ipc_perm *ipcp}(hj۟hhhNhNubah}(h]h ]h"]h$]h&]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/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&]uh1jChjӟubeh}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj{ubj)}(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.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_search_maxidx (C function)c.ipc_search_maxidxhNtauh1hhj܇hhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghMubj)}(hipc_search_maxidxh]j)}(hipc_search_maxidxh]hipc_search_maxidx}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjghMubj/)}(h (struct ipc_ids *ids, int limit)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)}jsj|sbc.ipc_search_maxidxasbuh1hhjubh)}(h h]h }(hjԠhhhNhNubah}(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-uh1j4hjubj5)}(h int limith](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlimith]hlimit}(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.hjUhhhjghMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(hhh]j)}(h%search for the highest assigned indexh]h%search for the highest assigned index}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjfjjfjjjuh1hhhhj܇hNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int limit`` known upper limit for highest assigned index **Description** The function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned. ipc_ids.rwsem needs to be held by the caller.h](j)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjjubj)}(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 limit`` known upper limit for highest assigned index h](j()}(h ``int limit``h]j.)}(hjȡh]h int limit}(hjʡhhhNhNubah}(h]h ]h"]h$]h&]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,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hjhhhNhNubah}(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&]uh1jhjjubj)}(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.chMhjjubj)}(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 }(hjhhhNhNubj)}(h**ids**h]hids}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjjubj)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_rmid (C function) c.ipc_rmidhNtauh1hhj܇hhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjwhMubj)}(hipc_rmidh]j)}(hipc_rmidh]hipc_rmid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjwhMubj/)}(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}(hjĢhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjƢmodnameN classnameNjwjz)}j}]j)}jsjsb c.ipc_rmidasbuh1hhjubh)}(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-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}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j c.ipc_rmidasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hipcph]hipcp}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjwhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj^hhubj)}(hhh]j)}(hremove an ipc identifierh]hremove 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^hhhjwhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hX(**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](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-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)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjԣubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjѣubj")}(hV``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(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.chMhj ubjD)}(hhh]j)}(h6ipc perm structure containing the identifier to removeh]h6ipc perm structure containing the identifier 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ѣubeh}(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&]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.}(hjdhhhNhNubah}(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&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ ipc_set_key_private (C function)c.ipc_set_key_privatehNtauh1hhj܇hhhNhNubh)}(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}(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_set_key_privateh]j)}(hipc_set_key_privateh]hipc_set_key_private}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(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 }(hjݤhhhNhNubah}(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)}jsjsbc.ipc_set_key_privateasbuh1hhj̤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}(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}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hjOhhhNhNubah}(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 reftargetjbmodnameN classnameNjwjz)}j}]j c.ipc_set_key_privateasbuh1hhj>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Ȥ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)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(hjåhhhNhNubah}(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&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjۥjjۥjjjuh1hhhhj܇hNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](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.chMhjߥ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.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")}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hj=h]hstruct kern_ipc_perm *ipcp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj7ubjD)}(hhh]j)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(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&]uh1jhjߥubj)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjߥubj)}(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.chMhjߥubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcperms (C function) c.ipcpermshNtauh1hhj܇hhhNhNubh)}(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}(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 }(hj̦hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj˦hM)ubj)}(hipcpermsh]j)}(hipcpermsh]hipcperms}(hjަhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjڦubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj˦hM)ubj/)}(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 }(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)}jsjsb c.ipcpermsasbuh1hhjubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnsh]hns}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct kern_ipc_perm *ipcph](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 kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j4 c.ipcpermsasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hipcph]hipcp}(hjçhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h short flagh](h)}(hshorth]hshort}(hjܧhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjاubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjاubj)}(hflagh]hflag}(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)}(hcheck ipc permissionsh]hcheck ipc permissions}(hj"hhhNhNubah}(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&]uh1jhjhhhj˦hM)ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhj܇hNhNubj)}(hXH**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``short flag`` desired permission set **Description** Check user, group, other permissions for access to ipc resources. return 0 if allowed **flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(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_namespace *ns`` ipc namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hjch]hstruct ipc_namespace *ns}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hj]ubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhM hjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhM hjZubj")}(h2``struct kern_ipc_perm *ipcp`` ipc permission set 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.chM!hjubjD)}(hhh]j)}(hipc permission seth]hipc permission set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM!hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM!hjZubj")}(h&``short flag`` desired permission set h](j()}(h``short flag``h]j.)}(hjըh]h short flag}(hjרhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjӨubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM"hjϨubjD)}(hhh]j)}(hdesired permission seth]hdesired permission set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM"hjubah}(h]h ]h"]h$]h&]uh1jChjϨubeh}(h]h ]h"]h$]h&]uh1j!hjhM"hjZubeh}(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)}(hUCheck user, group, other permissions for access to ipc resources. return 0 if allowedh]hUCheck user, group, other permissions for access to ipc resources. return 0 if allowed}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM$hj>ubj)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh will most probably be 0 or }(hj5hhhNhNubj.)}(h ``S_...UGO``h]hS_...UGO}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubh from }(hj5hhhNhNubeh}(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&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhj܇hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMKubj)}(hkernel_to_ipc64_permh]j)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMKubj/)}(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: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 reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.kernel_to_ipc64_permasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinh]hin}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ipc64_perm *outh](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 ipc64_permh]h ipc64_perm}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]jc.kernel_to_ipc64_permasbuh1hhj/ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhjhMKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjyhhubj)}(hhh]j)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj̪jj̪jjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *in`` kernel permissions ``struct ipc64_perm *out`` new style ipc permissions **Description** Turn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](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.chMHhjЪubj)}(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}(hjhhhNhNubah}(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.)}(hj.h]hstruct ipc64_perm *out}(hj0hhhNhNubah}(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.chMFhj(ubjD)}(hhh]j)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMFhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChMFhjubeh}(h]h ]h"]h$]h&]uh1jhjЪubj)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMHhjЪubj)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hjhhhNhNubj)}(h**in**h]hin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD into a set of permissions descriptions for returning to userspace (}(hjhhhNhNubj)}(h**out**h]hout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMHhjЪubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhj܇hhhNhNubh)}(hhh](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}(hjҫhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjΫhhhO/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&]uh1hhjΫhhhjhM^ubj)}(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 hjΫhhhjhM^ubj/)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j5)}(hstruct ipc64_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 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)}jsjsbc.ipc64_perm_to_ipc_permasbuh1hhj ubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinh]hin}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ipc_perm *outh](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_permh]hipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jIc.ipc64_perm_to_ipc_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)}(houth]hout}(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)}(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&]uh1jhjǫhhhjhM^ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``struct ipc64_perm *in`` new style ipc permissions ``struct ipc_perm *out`` old style ipc permissions **Description** Turn the new style permissions object **in** into a compatibility object and store it into the **out** pointer.h](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[hjubj)}(hhh](j")}(h4``struct ipc64_perm *in`` new style ipc permissions h](j()}(h``struct ipc64_perm *in``h]j.)}(hjCh]hstruct ipc64_perm *in}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMXhj=ubjD)}(hhh]j)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMXhjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhMXhj:ubj")}(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-hjzubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMYhjvubjD)}(hhh]j)}(hold style ipc permissionsh]hold style ipc permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMYhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM[hjubj)}(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 }(hjͭhhhNhNubj)}(h**in**h]hin}(hjխhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͭubh3 into a compatibility object and store it into the }(hjͭhhhNhNubj)}(h**out**h]hout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͭubh pointer.}(hjͭhhhNhNubeh}(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&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhj܇hhhNhNubh)}(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:hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMrubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj-hMrubh)}(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)}jsipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhjhhhj-hMrubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj-hMrubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMrubj)}(hipc_obtain_object_idrh]j)}(hj]h]hipc_obtain_object_idr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj-hMrubj/)}(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}]j[c.ipc_obtain_object_idrasbuh1hhjubh)}(h h]h }(hj֮hhhNhNubah}(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-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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj-hMrubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj-hMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj-hMrhjhhubj)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMjhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMrubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhjjhjjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](j)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMnhjlubj)}(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.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!hjhMlhjubj")}(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.chMmhjįubjD)}(hhh]j)}(hipc id to look forh]hipc id to look for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߯hMmhjubah}(h]h ]h"]h$]h&]uh1jChjįubeh}(h]h ]h"]h$]h&]uh1j!hj߯hMmhjubeh}(h]h ]h"]h$]h&]uh1jhjlubj)}(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.chMohjlubj)}(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}(hj#hhhNhNubah}(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.chMohjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$ipc_obtain_object_check (C function)c.ipc_obtain_object_checkhNtauh1hhj܇hhhNhNubh)}(hhh](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}(hj\hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjihMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]j)}jsipc_obtain_object_checksbc.ipc_obtain_object_checkasbuh1hhjXhhhjihMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjihMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjihMubj)}(hipc_obtain_object_checkh]j)}(hjh]hipc_obtain_object_check}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjihMubj/)}(h(struct ipc_ids *ids, int id)h](j5)}(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}]jc.ipc_obtain_object_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}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjҰubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjΰubj5)}(hint idh](h)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hidh]hid}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjΰubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjihMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjihMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjQhhubj)}(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.}(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&]uh1jhjQhhhjihMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](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-hj˱ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjDZubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjDZubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjıubj")}(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.chMhjubjD)}(hhh]j)}(hipc id to look forh]hipc id to look 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&]uh1jhjubj)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(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)}(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 }(hjWhhhNhNubj)}(h*not*h]hnot}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh locked on exit.}(hjWhhhNhNubeh}(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&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcget (C function)c.ipcgethNtauh1hhj܇hhhNhNubh)}(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}(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)}(hipcgeth]j)}(hipcgeth]hipcget}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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}(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 ipc_namespaceh]h ipc_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipcgetasbuh1hhjѲubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjѲubj)}(hjh]h*}(hj!hhhNhNubah}(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 ipc_ids *idsh](j;)}(hj>h]hstruct}(hjGhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjCubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjgmodnameN classnameNjwjz)}j}]jc.ipcgetasbuh1hhjCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(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 }(hjijhhhNhNubah}(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}]jc.ipcgetasbuh1hhjubh)}(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}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]jc.ipcgetasbuh1hhj>ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hparamsh]hparams}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(hjôhhhNhNubah}(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&]jjqjj۴jj۴jjjuh1hhhhj܇hNhNubj)}(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.chMhjߴubj)}(hhh](j")}(h'``struct ipc_namespace *ns`` 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 namespaceh]h namespace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.chMhj7ubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhjubj")}(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.)}(hjvh]hconst struct ipc_ops *ops}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjpubjD)}(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}(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&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hP``struct ipc_params *params`` the parameters needed by the previous operations. 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.chMhjubjD)}(hhh]j)}(h1the parameters needed by the previous operations.h]h1the parameters needed by the previous operations.}(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&]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.chMhjߴubj)}(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.chMhjߴubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_update_perm (C function)c.ipc_update_permhNtauh1hhj܇hhhNhNubh)}(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}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,hhhO/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&]uh1hhj,hhhj>hMubj)}(hipc_update_permh]j)}(hipc_update_permh]hipc_update_perm}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj,hhhj>hMubj/)}(h2(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j5)}(hstruct ipc64_perm *inh](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 ipc64_permh]h ipc64_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjSsbc.ipc_update_permasbuh1hhjiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hinh]hin}(hjƶhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjeubj5)}(hstruct kern_ipc_perm *outh](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}]jc.ipc_update_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)}(houth]hout}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj۶ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjeubeh}(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'update the permissions of an ipc objecth]h'update the permissions of an ipc object}(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&]jjqjjxjjxjjjuh1hhhhj܇hNhNubj)}(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)}(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.chMhj|ubj)}(hhh](j")}(h9``struct ipc64_perm *in`` the permission given as input. 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.chMhjubjD)}(hhh]j)}(hthe permission given as input.h]hthe permission given as input.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h?``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j()}(h``struct kern_ipc_perm *out``h]j.)}(hjڷh]hstruct kern_ipc_perm *out}(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!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&]uh1jChjԷubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ ipcctl_obtain_check (C function)c.ipcctl_obtain_checkhNtauh1hhj܇hhhNhNubh)}(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}(hj4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjAhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]j)}jsipcctl_obtain_checksbc.ipcctl_obtain_checkasbuh1hhj0hhhjAhMubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjAhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMubj)}(hipcctl_obtain_checkh]j)}(hjqh]hipcctl_obtain_check}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0hhhjAhMubj/)}(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}(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}(hj̸hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjɸubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjθmodnameN classnameNjwjz)}j}]joc.ipcctl_obtain_checkasbuh1hhjubh)}(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 ipc_ids *idsh](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)}(hipc_idsh]hipc_ids}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]joc.ipcctl_obtain_checkasbuh1hhjubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjuhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint cmdh](h)}(hinth]hint}(hjùhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjѹhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcmdh]hcmd}(hj߹hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ipc64_perm *permh](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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]joc.ipcctl_obtain_checkasbuh1hhjubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpermh]hperm}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint extra_permh](h)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h extra_permh]h extra_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhjAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,hhhjAhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj)hhubj)}(hhh]j)}(h,retrieve an ipc object and check permissionsh]h,retrieve an ipc object and check permissions}(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)hhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjƺjjƺjjjuh1hhhhj܇hNhNubj)}(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)}(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.chMhjʺ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.chMhjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hC``struct ipc_ids *ids`` the table of ids where to look for the ipc 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.chMhj"ubjD)}(hhh]j)}(h*the table of ids where to look for the ipch]h*the table of ids where to look for the ipc}(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)``int id`` the id of the ipc to retrieve h](j()}(h ``int id``h]j.)}(hjah]hint id}(hjchhhNhNubah}(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)}(hthe id of the ipc to retrieveh]hthe id of the ipc to retrieve}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hjvhMhjubj")}(h``int cmd`` the cmd to check 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)}(hthe cmd to checkh]hthe cmd to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h2``struct ipc64_perm *perm`` the permission to set h](j()}(h``struct ipc64_perm *perm``h]j.)}(hjӻh]hstruct ipc64_perm *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)}(hthe permission to seth]hthe permission to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjͻubeh}(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}(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.chMhjubjD)}(hhh]j)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(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&]uh1jhjʺubj)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjʺubj)}(hThis function does some common audit and permissions check for some IPC_XXX cmd and is called from semctl_down, shmctl_down and msgctl_down.h]hThis function does some common audit and permissions check for some IPC_XXX cmd and is called from semctl_down, shmctl_down and msgctl_down.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjʺubj)}(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:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjoubjD)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]j)}(hjh]h>retrieves the ipc object with the given id in the given table.}(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&]uh1jhjubj)}(hDperforms some audit and permission check, depending on the given cmdh]j)}(hjh]hDperforms some audit and permission check, depending on the given cmd}(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&]uh1jhjubj)}(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.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjlubah}(h]h ]h"]h$]h&]uh1jhjʺubj)}(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.chMhjʺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhj܇hhhNhNubh)}(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 }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj&hMubj)}(hipc_parse_versionh]j)}(hipc_parse_versionh]hipc_parse_version}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj&hMubj/)}(h (int *cmd)h]j5)}(hint *cmdh](h)}(hinth]hint}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hcmdh]hcmd}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubah}(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)}(hipc call versionh]hipc call version}(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 hhhj&hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(h**Parameters** ``int *cmd`` pointer to command **Description** Return IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](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.chMhjĽubj)}(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&]uh1jhjĽubj)}(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.chMhjĽubj)}(hReturn IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](hCReturn IPC_64 for new style IPC and IPC_OLD for old style IPC. The }(hj:hhhNhNubj)}(h**cmd**h]hcmd}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubhQ value is turned from an encoding command and version into just the command code.}(hj:hhhNhNubeh}(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&]uh1jhj܇hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhj܇hhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjwhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhjhMubh)}(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)}jssysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhjwhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhjhMubj)}(hjh]h*}(hjɾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMubj)}(hsysvipc_find_ipch]j)}(hjh]hsysvipc_find_ipc}(hjھhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj־ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjwhhhjhMubj/)}(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}]jc.sysvipc_find_ipcasbuh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjLhhhNhNubah}(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}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]jc.sysvipc_find_ipcasbuh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hposh]hpos}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(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)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hj˿hhhNhNubah}(h]h ]h"]h$]h&]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&]jjqjjjjjjjuh1hhhhj܇hNhNubj)}(hX5**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``loff_t *pos`` expected position **Description** The function finds an ipc structure, based on the sequence file position **pos**. If there is no ipc structure at position **pos**, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and **pos** is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), **pos** is not modified. The function returns the found ipc structure, or NULL at EOF.h](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}(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.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")}(h"``loff_t *pos`` expected position h](j()}(h``loff_t *pos``h]j.)}(hjEh]h loff_t *pos}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj?ubjD)}(hhh]j)}(hexpected positionh]hexpected position}(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&]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 }(hjhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. If there is no ipc structure at position }(hjhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hjhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hjhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not modified.}(hjhhhNhNubeh}(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&]uh1jhj܇hhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhjˇhhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hDECLARE_KFIFO_PTRh]h)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]j)}(hjHh]hDECLARE_KFIFO_PTR}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKsubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjFhhhjehKsubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjehKshjChhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjChhhjehKsubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj~jj~jjjuh1hhhhj$hNhNubj)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j.)}(hjh]hDECLARE_KFIFO_PTR (fifo, type)}(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.hhKuhj$hhubj<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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKohjubah}(h]h ]h"]h$]h&]uh1j;8hjhKohj$hhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](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.hhKshjubj)}(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.hhKrhj ubjD)}(hhh]j)}(htype of the fifo elementsh]htype of the fifo elements}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKqhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hKrhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDECLARE_KFIFO (C macro)c.DECLARE_KFIFOhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h DECLARE_KFIFOh]h)}(h DECLARE_KFIFOh]j)}(h DECLARE_KFIFOh]j)}(hjeh]h DECLARE_KFIFO}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjghhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhK{ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhjhK{ubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhjhK{hj`hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj`hhhjhK{ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h$``DECLARE_KFIFO (fifo, type, size)``h]j.)}(hjh]h DECLARE_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.hhK}hj$hhubj<8)}(hmacro to declare a fifo object h]j)}(hmacro to declare a fifo objecth]hmacro to declare a fifo object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKvhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKvhj$hhubj)}(h**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elements ``size`` the number of elements in the fifo, this must be a power of 2h](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&]uh1jhj hKwhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKwhjubj")}(h#``type`` type of the fifo elements h](j()}(h``type``h]j.)}(hj.h]htype}(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:209: ./include/linux/kfifo.hhKxhj(ubjD)}(hhh]j)}(htype of the fifo elementsh]htype of the fifo elements}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChKxhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChKxhjubj")}(hF``size`` the number of elements in the fifo, this must be a power of 2h](j()}(h``size``h]j.)}(hjgh]hsize}(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.hhKzhjaubjD)}(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}(hjhhhNhNubah}(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&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|hKzhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌINIT_KFIFO (C macro) c.INIT_KFIFOhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h INIT_KFIFOh]h)}(h INIT_KFIFOh]j)}(h INIT_KFIFOh]j)}(hjh]h INIT_KFIFO}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhKhj$hhubj<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~hj ubah}(h]h ]h"]h$]h&]uh1j;8hjhK~hj$hhubj)}(h=**Parameters** ``fifo`` name of the declared fifo datatypeh](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.hhKhj&ubj)}(hhh]j")}(h+``fifo`` name of the declared fifo datatypeh](j()}(h``fifo``h]j.)}(hjKh]hfifo}(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:209: ./include/linux/kfifo.hhKhjEubjD)}(hhh]j)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hKhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEFINE_KFIFO (C macro)c.DEFINE_KFIFOhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h DEFINE_KFIFOh]h)}(h DEFINE_KFIFOh]j)}(h DEFINE_KFIFOh]j)}(hjh]h DEFINE_KFIFO}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhKhj$hhubj<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;8hjhKhj$hhubj)}(h**Parameters** ``fifo`` name of the declared fifo datatype ``type`` type of the fifo elements ``size`` the number of elements in the fifo, this must be a power of 2 **Note** the macro can be used for global and local fifo data type variables.h](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.hhKhj ubj)}(hhh](j")}(h,``fifo`` name of the declared fifo datatype h](j()}(h``fifo``h]j.)}(hj/h]hfifo}(hj1hhhNhNubah}(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)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhKhj&ubj")}(h#``type`` type of the fifo elements h](j()}(h``type``h]j.)}(hjhh]htype}(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.hhKhjbubjD)}(hhh]j)}(htype of the fifo elementsh]htype of the fifo elements}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hKhj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hKhj&ubj")}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j()}(h``size``h]j.)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]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=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj&ubeh}(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)}(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.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_initialized (C macro)c.kfifo_initializedhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_initializedh]h)}(hkfifo_initializedh]j)}(hkfifo_initializedh]j)}(hjh]hkfifo_initialized}(hj%hhhNhNubah}(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.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj8hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj8hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjQjjQjjjuh1hhhhj$hNhNubj)}(h``kfifo_initialized (fifo)``h]j.)}(hjWh]hkfifo_initialized (fifo)}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj$hhubj<8)}(h!Check if the fifo is initialized h]j)}(h Check if the fifo is initializedh]h Check if the fifo is initialized}(hjqhhhNhNubah}(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&]uh1j;8hjhKhj$hhubj)}(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)}(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 check 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)}(haddress of the fifo to checkh]haddress of the fifo to check}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubj)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_esize (C macro) c.kfifo_esizehNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_esizeh]h)}(h kfifo_esizeh]j)}(h kfifo_esizeh]j)}(hjIh]h kfifo_esize}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjKhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjGhhhjfhKubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjfhKhjDhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjDhhhjfhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h``kfifo_esize (fifo)``h]j.)}(hjh]hkfifo_esize (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.hhKhj$hhubj<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}(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;8hjhKhj$hhubj)}(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.)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_recsize (C macro)c.kfifo_recsizehNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_recsizeh]h)}(h kfifo_recsizeh]j)}(h kfifo_recsizeh]j)}(hj-h]h kfifo_recsize}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(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+hhhjJhKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjJhKhj(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj(hhhjJhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjcjjcjjjuh1hhhhj$hNhNubj)}(h``kfifo_recsize (fifo)``h]j.)}(hjih]hkfifo_recsize (fifo)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj$hhubj<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}(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;8hjhKhj$hhubj)}(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.)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_size (C macro) c.kfifo_sizehNtauh1hhj$hhhNhNubh)}(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-juh1hjjhjhhhj.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&]jjqjjGjjGjjjuh1hhhhj$hNhNubj)}(h``kfifo_size (fifo)``h]j.)}(hjMh]hkfifo_size (fifo)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj$hhubj<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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjcubah}(h]h ]h"]h$]h&]uh1j;8hjuhKhj$hhubj)}(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.hhKhj|ubj)}(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&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_reset (C macro) c.kfifo_resethNtauh1hhj$hhhNhNubh)}(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&]jjqjj+jj+jjjuh1hhhhj$hNhNubj)}(h``kfifo_reset (fifo)``h]j.)}(hj1h]hkfifo_reset (fifo)}(hj3hhhNhNubah}(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.hhKhj$hhubj<8)}(h removes the entire fifo content h]j)}(hremoves the entire fifo contenth]hremoves the entire fifo content}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjGubah}(h]h ]h"]h$]h&]uh1j;8hjYhKhj$hhubj)}(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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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.)}(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&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj|ubah}(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)}(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.hhKhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_reset_out (C macro)c.kfifo_reset_outhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_reset_outh]h)}(hkfifo_reset_outh]j)}(hkfifo_reset_outh]j)}(hjh]hkfifo_reset_out}(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.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&]jjqjj5jj5jjjuh1hhhhj$hNhNubj)}(h``kfifo_reset_out (fifo)``h]j.)}(hj;h]hkfifo_reset_out (fifo)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj$hhubj<8)}(hskip fifo content h]j)}(hskip fifo contenth]hskip fifo content}(hjUhhhNhNubah}(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&]uh1j;8hjchKhj$hhubj)}(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)}(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:209: ./include/linux/kfifo.hhKhjjubj)}(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.hhKhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(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&]uh1jhjjubj)}(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.hhKhjjubj)}(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.hhKhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_len (C macro) c.kfifo_lenhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_lenh]h)}(h kfifo_lenh]j)}(h kfifo_lenh]j)}(hj h]h kfifo_len}(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.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?jjjuh1hhhhj$hNhNubj)}(h``kfifo_len (fifo)``h]j.)}(hjEh]hkfifo_len (fifo)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj$hhubj<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}(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;8hjmhKhj$hhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjtubj)}(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&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_is_empty (C macro)c.kfifo_is_emptyhNtauh1hhj$hhhNhNubh)}(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-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#jjjuh1hhhhj$hNhNubj)}(h``kfifo_is_empty (fifo)``h]j.)}(hj)h]hkfifo_is_empty (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.hhKhj$hhubj<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}(hjChhhNhNubah}(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;8hjQhKhj$hhubj)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjXubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hj}h]hfifo}(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.hhKhjwubjD)}(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&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#kfifo_is_empty_spinlocked (C macro)c.kfifo_is_empty_spinlockedhNtauh1hhj$hhhNhNubh)}(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.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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h*``kfifo_is_empty_spinlocked (fifo, lock)``h]j.)}(hj h]h&kfifo_is_empty_spinlocked (fifo, lock)}(hjhhhNhNubah}(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.hhMhj$hhubj<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}(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;8hj5hKhj$hhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](j)}(h**Parameters**h]j)}(hjBh]h Parameters}(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.hhMhj<ubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjah]hfifo}(hjchhhNhNubah}(h]h ]h"]h$]h&]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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hjvhMhjXubj")}(h(``lock`` spinlock to be used for lockingh](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)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjXubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ-kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhj$hhhNhNubh)}(hhh](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-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$jjjuh1hhhhj$hNhNubj)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j.)}(hj*h]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj$hhubj<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}(hjDhhhNhNubah}(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;8hjRhMhj$hhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](j)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(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.hhMhjYubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hj~h]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjxubjD)}(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&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjuubj")}(h(``lock`` spinlock to be used for lockingh](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)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_is_fullh]h)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]j)}(hj h]h kfifo_is_full}(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.hhM!ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj(hM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj(hM!hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj(hM!ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjAjjAjjjuh1hhhhj$hNhNubj)}(h``kfifo_is_full (fifo)``h]j.)}(hjGh]hkfifo_is_full (fifo)}(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.hhM#hj$hhubj<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}(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;8hjohMhj$hhubj)}(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.hhM"hjvubj)}(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.hhM$hjubjD)}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_avail (C macro) c.kfifo_availhNtauh1hhj$hhhNhNubh)}(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-juh1hjjhjhhhj hM+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM+hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hM+ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj%jj%jjjuh1hhhhj$hNhNubj)}(h``kfifo_avail (fifo)``h]j.)}(hj+h]hkfifo_avail (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.hhM-hj$hhubj<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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM(hjAubah}(h]h ]h"]h$]h&]uh1j;8hjShM(hj$hhubj)}(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.hhM,hjZubj)}(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-hj}ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM.hjyubjD)}(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.hhM)hjubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjhM.hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhj$hhhNhNubh)}(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.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 jjjuh1hhhhj$hNhNubj)}(h"``kfifo_skip_count (fifo, count)``h]j.)}(hjh]hkfifo_skip_count (fifo, count)}(hjhhhNhNubah}(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.hhM>hj$hhubj<8)}(hskip output data h]j)}(hskip output datah]hskip output data}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM8hj%ubah}(h]h ]h"]h$]h&]uh1j;8hj7hM8hj$hhubj)}(h\**Parameters** ``fifo`` address of the fifo to be used ``count`` count of data to skiph](j)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM<hj>ubj)}(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.hhM9hj]ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhM9hjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhM9hjZubj")}(h``count`` count of data to skiph](j()}(h ``count``h]j.)}(hjh]hcount}(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)}(hcount of data to skiph]hcount of data to skip}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM;hjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_skip (C macro) c.kfifo_skiphNtauh1hhj$hhhNhNubh)}(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.hhMJubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMJubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj&jj&jjjuh1hhhhj$hNhNubj)}(h``kfifo_skip (fifo)``h]j.)}(hj,h]hkfifo_skip (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.hhMLhj$hhubj<8)}(hskip output data h]j)}(hskip output datah]hskip output data}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMGhjBubah}(h]h ]h"]h$]h&]uh1j;8hjThMGhj$hhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hjah]h Parameters}(hjchhhNhNubah}(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.hhMKhj[ubj)}(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-hj~ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMhjzubjD)}(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.hhMHhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhMMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhj$hhhNhNubh)}(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.hhMRubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMRhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMRubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj jj jjjuh1hhhhj$hNhNubj)}(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.hhMThj$hhubj<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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMhj&ubah}(h]h ]h"]h$]h&]uh1j;8hj8hMMhj$hhubj)}(h**Parameters** ``fifo`` address of the fifo to be used **Description** This function returns the size of the next fifo record in number of bytes.h](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:209: ./include/linux/kfifo.hhMQhj?ubj)}(hhh]j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjdh]hfifo}(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:209: ./include/linux/kfifo.hhMNhj^ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMNhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMNhj[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:209: ./include/linux/kfifo.hhMPhj?ubj)}(hJThis function returns the size of the next fifo record in number of bytes.h]hJThis function returns the size of the next fifo record in number of bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMPhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_alloc (C macro) c.kfifo_allochNtauh1hhj$hhhNhNubh)}(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.hhMiubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMihjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMiubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMkhj$hhubj<8)}(h(dynamically allocates a new fifo buffer h]j)}(h'dynamically allocates a new fifo bufferh]h'dynamically allocates a new fifo buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM^hj0ubah}(h]h ]h"]h$]h&]uh1j;8hjBhM^hj$hhubj)}(hX**Parameters** ``fifo`` pointer to the fifo ``size`` the number of elements in the fifo, this must be a power of 2 ``gfp_mask`` get_free_pages mask, passed to kmalloc() **Description** This macro dynamically allocates a new fifo buffer. The number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h](j)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMbhjIubj)}(hhh](j")}(h``fifo`` pointer to the fifo h](j()}(h``fifo``h]j.)}(hjnh]hfifo}(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.hhM_hjhubjD)}(hhh]j)}(hpointer to the fifoh]hpointer to the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM_hjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhM_hjeubj")}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j()}(h``size``h]j.)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM`hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM`hjeubj")}(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!hjhMahjeubeh}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMchjIubj)}(h3This macro dynamically allocates a new fifo buffer.h]h3This macro dynamically allocates a new fifo buffer.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMchjIubj)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMehjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_free (C macro) c.kfifo_freehNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_freeh]h)}(h kfifo_freeh]j)}(h kfifo_freeh]j)}(hjih]h kfifo_free}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMxubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhjhMxubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjhMxhjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdhhhjhMxubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h``kfifo_free (fifo)``h]j.)}(hjh]hkfifo_free (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.hhMzhj$hhubj<8)}(hfrees the fifo h]j)}(hfrees the fifoh]hfrees the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMuhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMuhj$hhubj)}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_init (C macro) c.kfifo_inithNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_inith]h)}(h kfifo_inith]j)}(h kfifo_inith]j)}(hjMh]h kfifo_init}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhjjhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjHhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHhhhjjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h#``kfifo_init (fifo, buffer, size)``h]j.)}(hjh]hkfifo_init (fifo, buffer, 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.hhMhj$hhubj<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}(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;8hjhMhj$hhubj)}(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)}(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`` 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}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hMhjubj")}(hG``size`` the size of the internal buffer, this have to be a power of 2 h](j()}(h``size``h]j.)}(hjOh]hsize}(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:209: ./include/linux/kfifo.hhMhjIubjD)}(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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhMhjubeh}(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)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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.}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_put (C macro) c.kfifo_puthNtauh1hhj$hhhNhNubh)}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMhj$hhubj<8)}(hput data into the fifo h]j)}(hput data into the fifoh]hput data into 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;8hj<hMhj$hhubj)}(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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjCubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjhh]hfifo}(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)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hMhj_ubj")}(h``val`` the data to be added 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)}(hthe data to be addedh]hthe data to be added}(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&]uh1jhjCubj)}(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.hhMhjCubj)}(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.hhMhjCubj)}(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.hhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_get (C macro) c.kfifo_gethNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_geth]h)}(h kfifo_geth]j)}(h kfifo_geth]j)}(hj*h]h kfifo_get}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(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(hhhjGhMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhjGhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj`jj`jjjuh1hhhhj$hNhNubj)}(h``kfifo_get (fifo, val)``h]j.)}(hjfh]hkfifo_get (fifo, val)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj$hhubj<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.hhMhj|ubah}(h]h ]h"]h$]h&]uh1j;8hjhMhj$hhubj)}(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)}(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}(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&]uh1jhjubj)}(h**Description**h]j)}(hj.h]h Description}(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.hhMhjubj)}(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.}(hjDhhhNhNubah}(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.}(hjShhhNhNubah}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_peek (C macro) c.kfifo_peekhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_peekh]h)}(h kfifo_peekh]j)}(h kfifo_peekh]j)}(hj|h]h kfifo_peek}(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-juh1hjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h``kfifo_peek (fifo, val)``h]j.)}(hjh]hkfifo_peek (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.hhMhj$hhubj<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;8hjhMhj$hhubj)}(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.)}(hj h]hfifo}(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)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhjubj")}(h(``val`` address where to store the data h](j()}(h``val``h]j.)}(hjEh]hval}(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.hhMhj?ubjD)}(hhh]j)}(haddress where to store the datah]haddress where to store the data}(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&]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.}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_in (C macro) c.kfifo_inhNtauh1hhj$hhhNhNubh)}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h``kfifo_in (fifo, buf, n)``h]j.)}(hj h]hkfifo_in (fifo, buf, n)}(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.hhMhj$hhubj<8)}(hput data into the fifo h]j)}(hput data into the fifoh]hput data into 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;8hj2hMhj$hhubj)}(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)}(hj?h]h Parameters}(hjAhhhNhNubah}(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 hj9ubj)}(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.hhMhjXubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjUubj")}(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 hjUubj")}(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 hjUubeh}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hj9ubj)}(h[This macro copies the given buffer into the fifo and returns the number of copied elements.h]h[This macro copies the given buffer into the fifo and returns the number of copied elements.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hj9ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_in_spinlockedh]h)}(hkfifo_in_spinlockedh]j)}(hkfifo_in_spinlockedh]j)}(hjYh]hkfifo_in_spinlocked}(hjchhhNhNubah}(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.hhM(ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjvhM(ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjvhM(hjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjvhM(ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j.)}(hjh]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM*hj$hhubj<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}(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;8hjhMhj$hhubj)}(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.)}(hj"h]hbuf}(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!hjubjD)}(hhh]j)}(hthe data to be addedh]hthe data to be added}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hM!hj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hM!hjubj")}(h%``n`` number of elements to be added h](j()}(h``n``h]j.)}(hj[h]hn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM"hjUubjD)}(hhh]j)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphM"hjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphM"hjubj")}(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.hhM#hjubjD)}(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&]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)}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhj$hhhNhNubh)}(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.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&]jjqjjDjjDjjjuh1hhhhj$hNhNubj)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j.)}(hjJh]h2kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM?hj$hhubj<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}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM3hj`ubah}(h]h ]h"]h$]h&]uh1j;8hjrhM3hj$hhubj)}(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.Ah](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.hhM7hjyubj)}(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.hhM5hjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM5hjubj")}(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!hjhM6hjubj")}(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.hhM7hj ubjD)}(hhh]j)}(hnumber of elements to be addedh]hnumber of elements to be added}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hM7hj&ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj%hM7hjubj")}(h4``lock`` pointer to the spinlock to use for locking h](j()}(h``lock``h]j.)}(hjIh]hlock}(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.hhM8hjCubjD)}(hhh]j)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hM8hj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hM8hjubeh}(h]h ]h"]h$]h&]uh1jhjyubj)}(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:hjyubj)}(hrThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn't disable interrupts.h]htThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM:hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out (C macro) c.kfifo_outhNtauh1hhj$hhhNhNubh)}(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.hhMVubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMVhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMXhj$hhubj<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;8hj'hMKhj$hhubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMOhj.ubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjSh]hfifo}(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:209: ./include/linux/kfifo.hhMLhjMubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMLhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhMLhjJubj")}(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.hhMMhjubjD)}(hhh]j)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMMhjJubj")}(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.hhMNhjubjD)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMNhjJubeh}(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:209: ./include/linux/kfifo.hhMPhj.ubj)}(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.hhMPhj.ubj)}(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.hhMShj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_out_spinlockedh]h)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]j)}(hjNh]hkfifo_out_spinlocked}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMnubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjkhMnubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjkhMnhjIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIhhhjkhMnubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h-``kfifo_out_spinlocked (fifo, buf, n, lock)``h]j.)}(hjh]h)kfifo_out_spinlocked (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMphj$hhubj<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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMehjubah}(h]h ]h"]h$]h&]uh1j;8hjhMehj$hhubj)}(hX&**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get ``lock`` pointer to the spinlock to use for locking **Description** This macro gets the data from the fifo and returns the numbers of elements copied.h](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.hhMihjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMghj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMghjubj")}(h%``n`` max. number of elements to get h](j()}(h``n``h]j.)}(hjPh]hn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhhjJubjD)}(hhh]j)}(hmax. number of elements to geth]hmax. number of elements to get}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMhhjubj")}(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.hhMihjubjD)}(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&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(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:209: ./include/linux/kfifo.hhMkhjubj)}(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.hhMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_out_spinlocked_noirqsaveh]h)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hjh]hkfifo_out_spinlocked_noirqsave}(hj hhhNhNubah}(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.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&]jjqjj9jj9jjjuh1hhhhj$hNhNubj)}(h7``kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)``h]j.)}(hj?h]h3kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)}(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.hhMhj$hhubj<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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM{hjUubah}(h]h ]h"]h$]h&]uh1j;8hjghM{hj$hhubj)}(hXI**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get ``lock`` pointer to the spinlock to use for locking **Description** This is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjnubj)}(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`` 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~hjubj")}(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!hjhMhjubj")}(h4``lock`` pointer to the spinlock to use for locking h](j()}(h``lock``h]j.)}(hj>h]hlock}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj8ubjD)}(hhh]j)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMhjubeh}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjnubj)}(huThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h]hwThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_from_userh]h)}(hkfifo_from_userh]j)}(hkfifo_from_userh]j)}(hjh]hkfifo_from_user}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMhj$hhubj<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.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hjhMhj$hhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``from`` pointer to the data to be added ``len`` the length of the data to be added ``copied`` pointer to output variable to store the number of copied bytes **Description** This macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](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.hhMhj#ubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjHh]hfifo}(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)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj]hMhj?ubj")}(h)``from`` pointer to the data to be added h](j()}(h``from``h]j.)}(hjh]hfrom}(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)}(hpointer to the data to be addedh]hpointer to the data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj?ubj")}(h+``len`` the length of the data to be added 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)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj?ubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubah}(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}(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.hhMhj#ubj)}(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 }(hjDhhhNhNubj)}(h**len**h]hlen}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh bytes from the }(hjDhhhNhNubj)}(h**from**h]hfrom}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubhG into the fifo, depending of the available space and returns -EFAULT/0.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj#ubj)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhj$hhhNhNubh)}(hhh](h)}(h kfifo_to_userh]h)}(h kfifo_to_userh]j)}(h kfifo_to_userh]j)}(hjh]h kfifo_to_user}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMhj$hhubj<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;8hjhMhj$hhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``to`` where the data must be copied ``len`` the size of the destination buffer ``copied`` pointer to output variable to store the number of copied bytes **Description** This macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](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.hhMhj ubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hj0h]hfifo}(hj2hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhj'ubj")}(h%``to`` where the data must be copied h](j()}(h``to``h]j.)}(hjih]hto}(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.hhMhjcubjD)}(hhh]j)}(hwhere the data must be copiedh]hwhere the data must be copied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hMhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hMhj'ubj")}(h+``len`` the size of the destination buffer 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)}(h"the size of the destination bufferh]h"the size of the destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj'ubj")}(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!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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj ubj)}(hcThis macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0.h](hThis macro copies at most }(hj,hhhNhNubj)}(h**len**h]hlen}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh bytes from the fifo into the }(hj,hhhNhNubj)}(h**to**h]hto}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh buffer and returns -EFAULT/0.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj ubj)}(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.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_dma_in_prepare_mappedh]h)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]j)}(hjh]hkfifo_dma_in_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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMhj$hhubj<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;8hjhMhj$hhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hMhjubj")}(h)``sgl`` pointer to the scatterlist array h](j()}(h``sgl``h]j.)}(hjQh]hsgl}(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.hhMhjKubjD)}(hhh]j)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhMhjubj")}(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!hjhMhjubj")}(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!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)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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.}(hj[hhhNhNubah}(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.}(hjjhhhNhNubah}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_dma_in_finishh]h)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]j)}(hjh]hkfifo_dma_in_finish}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhMhj$hhubj<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;8hjhMhj$hhubj)}(hXg**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes to received **Description** This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](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.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj8hMhjubj")}(h$``len`` number of bytes to received h](j()}(h``len``h]j.)}(hj\h]hlen}(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.hhMhjVubjD)}(hhh]j)}(hnumber of bytes to receivedh]hnumber of bytes to received}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(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&]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.}(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.}(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&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhj$hhhNhNubh)}(hhh](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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j.)}(hj!h]h9kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj$hhubj<8)}(h#setup a scatterlist for DMA output h]j)}(h"setup a scatterlist for DMA outputh]h"setup a scatterlist for DMA output}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj7ubah}(h]h ]h"]h$]h&]uh1j;8hjIhMhj$hhubj)}(hX_**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](j)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjPubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjuh]hfifo}(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)}(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&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjlubj")}(h)``sgl`` pointer to the scatterlist array h](j()}(h``sgl``h]j.)}(hjh]hsgl}(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 scatterlist arrayh]h pointer to the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjlubj")}(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!hjhMhjlubj")}(h'``len`` number of elements to transfer h](j()}(h``len``h]j.)}(hj h]hlen}(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)}(hnumber of elements to transferh]hnumber of elements to transfer}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMhjlubj")}(h0``dma`` mapped dma address to fill into **sgl** h](j()}(h``dma``h]j.)}(hjYh]hdma}(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.hhMhjSubjD)}(hhh]j)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjrhhhNhNubj)}(h**sgl**h]hsgl}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjlubeh}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjPubj)}(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](hh]h kfifo_dma_out_finish (fifo, len)}(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.hhM0hj$hhubj<8)}(hfinish a DMA OUT operation h]j)}(hfinish a DMA OUT operationh]hfinish a DMA OUT operation}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM$hjTubah}(h]h ]h"]h$]h&]uh1j;8hjfhM$hj$hhubj)}(hXi**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes transferred **Description** This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](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:209: ./include/linux/kfifo.hhM(hjmubj)}(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$``len`` number of bytes transferred 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.hhM&hjubjD)}(hhh]j)}(hnumber of bytes transferredh]hnumber of bytes transferred}(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&]uh1jhjmubj)}(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(hjmubj)}(h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.h]h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM(hjmubj)}(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.hhM+hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out_peek (C macro)c.kfifo_out_peekhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_out_peekh]h)}(hkfifo_out_peekh]j)}(hkfifo_out_peekh]j)}(hjTh]hkfifo_out_peek}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM?ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjRhhhjqhM?ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjqhM?hjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhM?ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h!``kfifo_out_peek (fifo, buf, n)``h]j.)}(hjh]hkfifo_out_peek (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.hhMAhj$hhubj<8)}(hgets some data from the fifo h]j)}(hgets some data from the fifoh]hgets some 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.hhM4hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM4hj$hhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get **Description** This macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](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.hhM8hjubj)}(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.hhM5hjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM5hjubj")}(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.hhM6hjubjD)}(hhh]j)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM6hj3ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj2hM6hjubj")}(h%``n`` max. number of elements to get h](j()}(h``n``h]j.)}(hjVh]hn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM7hjPubjD)}(hhh]j)}(hmax. number of elements to geth]hmax. number of elements to get}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhM7hjlubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjkhM7hjubeh}(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.hhM9hjubj)}(hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.h]hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM9hjubj)}(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.hhM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_out_linearh]h)}(hkfifo_out_linearh]j)}(hkfifo_out_linearh]j)}(hjh]hkfifo_out_linear}(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&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(h$``kfifo_out_linear (fifo, tail, n)``h]j.)}(hjh]h kfifo_out_linear (fifo, tail, 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_hj$hhubj<8)}(h(gets a tail of/offset to available data h]j)}(h'gets a tail of/offset to available datah]h'gets a tail of/offset to available data}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMNhj1ubah}(h]h ]h"]h$]h&]uh1j;8hjChMNhj$hhubj)}(hXw**Parameters** ``fifo`` address of the fifo to be used ``tail`` pointer to an unsigned int to store the value of tail ``n`` max. number of elements to point at **Description** This macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](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:209: ./include/linux/kfifo.hhMRhjJubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjoh]hfifo}(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:209: ./include/linux/kfifo.hChMOhjiubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMOhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhMOhjfubj")}(h?``tail`` pointer to an unsigned int to store the value of tail h](j()}(h``tail``h]j.)}(hjh]htail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMPhjubjD)}(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&]uh1jhjhMPhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMPhjfubj")}(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!hjhMQhjfubeh}(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:209: ./include/linux/kfifo.hhMShjJubj)}(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 (}(hj2hhhNhNubj)}(h**fifo->data**h]h fifo->data}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh + }(hj2hhhNhNubj)}(h**tail**h]htail}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh) with count returned).}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMShjJubj)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMZhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhj$hhhNhNubh)}(hhh](h)}(hkfifo_out_linear_ptrh]h)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]j)}(hjh]hkfifo_out_linear_ptr}(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.hhMzubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMzhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMzubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj$hNhNubj)}(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.hhM|hj$hhubj<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;8hjhMlhj$hhubj)}(hX~**Parameters** ``fifo`` address of the fifo to be used ``ptr`` pointer to data to store the pointer to tail ``n`` max. number of elements to point at **Description** Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](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}(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.hhMmhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMmhj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hMmhjubj")}(h5``ptr`` pointer to data to store the pointer to tail h](j()}(h``ptr``h]j.)}(hjWh]hptr}(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.hhMnhjQubjD)}(hhh]j)}(h,pointer to data to store the pointer to tailh]h,pointer to data to store the pointer to tail}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMnhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhMnhjubj")}(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.hhMohjubjD)}(hhh]j)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMohjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMohjubeh}(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&]uh1jhj$hhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjhhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hhhhhKubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj(hhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_buf_full (C function)c.relay_buf_fullhNtauh1hhjGhhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjhKubj)}(hrelay_buf_fullh]j)}(hrelay_buf_fullh]hrelay_buf_full}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjmhhhjhKubj/)}(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_fullasbuh1hhjubh)}(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.hjmhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjhKubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjfhhubj)}(hhh]j)}(h$boolean, is the channel buffer full?h]h$boolean, is the channel buffer full?}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhj.hhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIjjIjjjuh1hhhhjGhNhNubj)}(hk**Parameters** ``struct rchan_buf *buf`` channel buffer Returns 1 if the buffer is full, 0 otherwise.h](j)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjMubj)}(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.)}(hjrh]hstruct rchan_buf *buf}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjlubjD)}(hhh](j)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjubj)}(h-Returns 1 if the buffer is full, 0 otherwise.h]h-Returns 1 if the buffer is full, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjubeh}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_reset (C function) c.relay_resethNtauh1hhjGhhhNhNubh)}(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.chM?ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM?ubj)}(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 hjhhhjhM?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 }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrchanh]hrchan}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j)}jsjsb c.relay_resetasbuh1hhjubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjqhhhNhNubah}(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)}(hreset the channelh]hreset the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(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)}(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.chM9hjubj)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_open (C function) c.relay_openhNtauh1hhjGhhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhj`hMubh)}(hhh]j)}(hrchanh]hrchan}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]j)}js relay_opensb c.relay_openasbuh1hhjOhhhj`hMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhj`hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj`hMubj)}(h relay_openh]j)}(hjh]h relay_open}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOhhhj`hMubj/)}(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}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(hdentryh]hdentry}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j c.relay_openasbuh1hhj&ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t subbuf_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 c.relay_openasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h subbuf_sizeh]h subbuf_size}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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}]j 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}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj;)}(hj>h]hstruct}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(hrchan_callbacksh]hrchan_callbacks}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjemodnameN classnameNjwjz)}j}]j c.relay_openasbuh1hhj&ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hcbh]hcb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hvoid *private_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)}(h private_datah]h private_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjOhhhj`hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhj`hMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhj`hMhjHhhubj)}(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&]uh1jhjHhhhj`hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjGhNhNubj)}(hXJ**Parameters** ``const char *base_filename`` base name of files to create, ``NULL`` for buffering only ``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``. If opening a buffer (**parent** = NULL) that you later wish to register in a filesystem, call relay_late_setup_files() once the **parent** dentry is available.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:222: ./kernel/relay.chMhj$ubj)}(hhh](j")}(hX``const char *base_filename`` base name of files to create, ``NULL`` for buffering only h](j()}(h``const char *base_filename``h]j.)}(hjIh]hconst char *base_filename}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjCubjD)}(hhh]j)}(h9base name of files to create, ``NULL`` for buffering onlyh](hbase name of files to create, }(hjbhhhNhNubj.)}(h``NULL``h]hNULL}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubh for buffering only}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhj@ubj")}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j()}(h``struct dentry *parent``h]j.)}(hjh]hstruct dentry *parent}(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)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hjhhhNhNubj.)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh for root directory or buffer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj@ubj")}(h+``size_t subbuf_size`` size of sub-buffers h](j()}(h``size_t subbuf_size``h]j.)}(hjh]hsize_t subbuf_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]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!hjhMhj@ubj")}(h+``size_t n_subbufs`` number of sub-buffers h](j()}(h``size_t n_subbufs``h]j.)}(hjh]hsize_t n_subbufs}(hjhhhNhNubah}(h]h ]h"]h$]h&]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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hMhj@ubj")}(h?``const struct rchan_callbacks *cb`` client callback functions h](j()}(h$``const struct rchan_callbacks *cb``h]j.)}(hjQh]h const struct rchan_callbacks *cb}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjKubjD)}(hhh]j)}(hclient callback functionsh]hclient callback functions}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhMhj@ubj")}(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``. If opening a buffer (**parent** = NULL) that you later wish to register in a filesystem, call relay_late_setup_files() once the **parent** dentry is available.h](j()}(h``void *private_data``h]j.)}(hjh]hvoid *private_data}(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)}(huser-defined datah]huser-defined data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubj)}(h:Returns channel pointer if successful, ``NULL`` otherwise.h](h'Returns channel pointer if successful, }(hjhhhNhNubj.)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubj)}(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.chMhjubj)}(hIf opening a buffer (**parent** = NULL) that you later wish to register in a filesystem, call relay_late_setup_files() once the **parent** dentry is available.h](hIf opening a buffer (}(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubha = NULL) that you later wish to register in a filesystem, call relay_late_setup_files() once the }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh dentry is available.}(hjhhhNhNubeh}(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!hjhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#relay_late_setup_files (C function)c.relay_late_setup_fileshNtauh1hhjGhhhNhNubh)}(hhh](h)}(haint relay_late_setup_files (struct rchan *chan, const char *base_filename, struct dentry *parent)h]h)}(h`int relay_late_setup_files(struct rchan *chan, const char *base_filename, struct dentry *parent)h](h)}(hinth]hint}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM6ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghM6ubj)}(hrelay_late_setup_filesh]j)}(hrelay_late_setup_filesh]hrelay_late_setup_files}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjghM6ubj/)}(hF(struct rchan *chan, const char *base_filename, struct dentry *parent)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)}jsj|sbc.relay_late_setup_filesasbuh1hhjubh)}(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-uh1j4hjubj5)}(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}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h base_filenameh]h base_filename}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *parenth](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)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.relay_late_setup_filesasbuh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjUhhhjghM6ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjghM6ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghM6hjNhhubj)}(hhh]j)}(htriggers file creationh]htriggers file creation}(hjhhhNhNubah}(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&]uh1jhjNhhhjghM6ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(hX**Parameters** ``struct rchan *chan`` channel to operate on ``const char *base_filename`` base name of files to create ``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory Returns 0 if successful, non-zero otherwise. Use to setup files for a previously buffer-only channel created by relay_open() with a NULL parent dentry. For example, this is useful for perfomring early tracing in kernel, before VFS is up and then exposing the early results once the dentry is available.h](j)}(h**Parameters**h]j)}(hjh]h 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:222: ./kernel/relay.chM,hjubj)}(hhh](j")}(h-``struct rchan *chan`` channel to operate on h](j()}(h``struct rchan *chan``h]j.)}(hj'h]hstruct rchan *chan}(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:222: ./kernel/relay.chM)hj!ubjD)}(hhh]j)}(hchannel to operate onh]hchannel to operate on}(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")}(h;``const char *base_filename`` base name of files to create h](j()}(h``const char *base_filename``h]j.)}(hj`h]hconst char *base_filename}(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.chM*hjZubjD)}(hhh]j)}(hbase name of files to createh]hbase name of files to create}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhM*hjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhM*hjubj")}(hX``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory Returns 0 if successful, non-zero otherwise. Use to setup files for a previously buffer-only channel created by relay_open() with a NULL parent dentry. For example, this is useful for perfomring early tracing in kernel, before VFS is up and then exposing the early results once the dentry is available.h](j()}(h``struct dentry *parent``h]j.)}(hjh]hstruct dentry *parent}(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.chM3hjubjD)}(hhh](j)}(h7dentry of parent directory, ``NULL`` for root directoryh](hdentry of parent directory, }(hjhhhNhNubj.)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh for root directory}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM+hjubj)}(h,Returns 0 if successful, non-zero otherwise.h]h,Returns 0 if successful, non-zero otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM-hjubj)}(hjUse to setup files for a previously buffer-only channel created by relay_open() with a NULL parent dentry.h]hjUse to setup files for a previously buffer-only channel created by relay_open() with a NULL parent dentry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM/hjubj)}(hFor example, this is useful for perfomring early tracing in kernel, before VFS is up and then exposing the early results once the dentry is available.h]hFor example, this is useful for perfomring early tracing in kernel, before VFS is up and then exposing the early results once the dentry is available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM2hjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM3hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ relay_switch_subbuf (C function)c.relay_switch_subbufhNtauh1hhjGhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7modnameN classnameNjwjz)}j}]j)}jsrelay_switch_subbufsbc.relay_switch_subbufasbuh1hhj.hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhjVhMubj)}(hrelay_switch_subbufh]j)}(hjSh]hrelay_switch_subbuf}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhjVhMubj/)}(h&(struct rchan_buf *buf, size_t length)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}]jQc.relay_switch_subbufasbuh1hhjubh)}(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-uh1j4hj|ubj5)}(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}]jQc.relay_switch_subbufasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlengthh]hlength}(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.hj.hhhjVhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*hhhjVhMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhj'hhubj)}(hhh]j)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhjVhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjGhNhNubj)}(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)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjiubj)}(hhh](j")}(h)``struct rchan_buf *buf`` channel buffer h](j()}(h``struct rchan_buf *buf``h]j.)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.)}(hjh]h size_t length}(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 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.chMhjubj)}(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.chMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#relay_subbufs_consumed (C function)c.relay_subbufs_consumedhNtauh1hhjGhhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhhjLhMubj)}(hrelay_subbufs_consumedh]j)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:hhhjLhMubj/)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j5)}(hstruct rchan *chanh](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)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjasbc.relay_subbufs_consumedasbuh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubj5)}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcpuh]hcpu}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubj5)}(hsize_t subbufs_consumedh](h)}(hhh]j)}(hsize_th]hsize_t}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]jc.relay_subbufs_consumedasbuh1hhj:ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hsubbufs_consumedh]hsubbufs_consumed}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubeh}(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)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(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&]uh1jhj3hhhjLhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(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)}(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 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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.chMhj ubjD)}(hhh]j)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhjubj")}(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.)}(hjJh]hsize_t subbufs_consumed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjDubjD)}(hhh](j)}(h3number of sub-buffers to add to current buf's counth]h5number of sub-buffers to add to current buf’s count}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj`ubj)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj`ubj)}(hYNOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h]h_NOTE. Kernel clients don’t need to call this function if the channel mode is ‘overwrite’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj`ubeh}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_close (C function) c.relay_closehNtauh1hhjGhhhNhNubh)}(hhh](h)}(h%void relay_close (struct rchan *chan)h]h)}(h$void relay_close(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_closeh]j)}(h relay_closeh]h relay_close}(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 }(hj hhhNhNubah}(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 }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjWhhhNhNubah}(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.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(hi**Parameters** ``struct rchan *chan`` the channel Closes all channel buffers and frees the channel.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")}(hU``struct rchan *chan`` the channel Closes all channel buffers and frees the channel.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)}(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.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&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_flush (C function) c.relay_flushhNtauh1hhjGhhhNhNubh)}(hhh](h)}(h%void relay_flush (struct rchan *chan)h]h)}(h$void relay_flush(struct rchan *chan)h](h)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj9hMubj)}(h relay_flushh]j)}(h relay_flushh]h relay_flush}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'hhhj9hMubj/)}(h(struct rchan *chan)h]j5)}(hstruct rchan *chanh](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)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjNsb c.relay_flushasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hchanh]hchan}(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'hhhj9hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj hhubj)}(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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(ho**Parameters** ``struct rchan *chan`` the channel Flushes all channel buffers, i.e. forces buffer switch.h](j)}(h**Parameters**h]j)}(hj h]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.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.)}(hj,h]hstruct rchan *chan}(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:222: ./kernel/relay.chM hj&ubjD)}(hhh](j)}(h the channelh]h the channel}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM hjBubj)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h7Flushes all channel buffers, i.e. forces buffer switch.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjBubeh}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhM hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_mmap_buf (C function)c.relay_mmap_bufhNtauh1hhjGhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKSubj)}(hrelay_mmap_bufh]j)}(hrelay_mmap_bufh]hrelay_mmap_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKSubj/)}(h3(struct rchan_buf *buf, struct vm_area_struct *vma)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_mmap_bufasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(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)}(hstruct vm_area_struct *vmah](j;)}(hj>h]hstruct}(hjD hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ ubh)}(h h]h }(hjQ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjb hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjd 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-uh1j4hjubeh}(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)}(hhh]j)}(h,mmap channel buffer to process address spaceh]j)}(hj h]h,mmap channel buffer to process address space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKKhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhj hNubah}(h]h ]h"]h$]h&]jjuh1jhj hKKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKSubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjGhNhNubj)}(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}(hj1 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.)}(hjQ h]hstruct vm_area_struct *vma}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjO ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKPhjK ubjD)}(hhh](j)}(h-vm_area_struct describing memory to be mappedh]h-vm_area_struct describing memory to be mapped}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKMhjg ubj)}(h"Returns 0 if ok, negative on errorh]h"Returns 0 if ok, negative on error}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKOhjg 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.chKQhjg ubeh}(h]h ]h"]h$]h&]uh1jChjK ubeh}(h]h ]h"]h$]h&]uh1j!hjf hKPhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_alloc_buf (C function)c.relay_alloc_bufhNtauh1hhjGhhhNhNubh)}(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}(hj1 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj. ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3 modnameN classnameNjwjz)}j}]j)}jsj sbc.relay_alloc_bufasbuh1hhj ubh)}(h h]h }(hjQ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj_ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hjl 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}]jM c.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)}(hsizeh]hsize}(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 hKlubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hKlubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKlhj 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 hhhj hKlubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjGhNhNubj)}(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}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA hKfhjB ubah}(h]h ]h"]h$]h&]uh1jChj& ubeh}(h]h ]h"]h$]h&]uh1j!hjA 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.)}(hje h]h size_t *size}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjc 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}(hj 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&]uh1jhjz hKihj{ ubeh}(h]h ]h"]h$]h&]uh1jChj_ ubeh}(h]h ]h"]h$]h&]uh1j!hjz hKihj# ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_create_buf (C function)c.relay_create_bufhNtauh1hhjGhhhNhNubh)}(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}(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)}(hrchanh]hrchan}(hjw hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjt ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjy modnameN classnameNjwjz)}j}]j c.relay_create_bufasbuh1hhjU 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)}(hchanh]hchan}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjU ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQ 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)}(h(allocate and initialize a channel bufferh]h(allocate and initialize a channel 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&]uh1jhj hhhj hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjGhNhNubj)}(hw**Parameters** ``struct rchan *chan`` the relay channel Returns channel buffer if successful, ``NULL`` 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj ubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj1ubj)}(h9Returns channel buffer if successful, ``NULL`` otherwise.h](h&Returns channel buffer if successful, }(hjChhhNhNubj.)}(h``NULL``h]hNULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubh otherwise.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj1ubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"relay_destroy_channel (C function)c.relay_destroy_channelhNtauh1hhjGhhhNhNubh)}(hhh](h)}(h.void relay_destroy_channel (struct kref *kref)h]h)}(h-void relay_destroy_channel(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hrelay_destroy_channelh]j)}(hrelay_destroy_channelh]hrelay_destroy_channel}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct kref *kref)h]j5)}(hstruct kref *krefh](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)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_destroy_channelasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkrefh]hkref}(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.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hfree the channel structh]hfree the channel struct}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjnjjnjjjuh1hhhhjGhNhNubj)}(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)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjrubj)}(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.)}(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)}(h7target kernel reference that contains the relay channelh]h7target kernel reference that contains the relay channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(h&Should only be called from kref_put().h]h&Should only be called from kref_put().}(hjhhhNhNubah}(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&]uh1jhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_destroy_buf (C function)c.relay_destroy_bufhNtauh1hhjGhhhNhNubh)}(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}(hj!hhhNhNubah}(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}(hj=hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj9ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj#sbc.relay_destroy_bufasbuh1hhj9ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubah}(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}(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&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(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.chKhjubj)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_remove_buf (C function)c.relay_remove_bufhNtauh1hhjGhhhNhNubh)}(hhh](h)}(h)void relay_remove_buf (struct kref *kref)h]h)}(h(void relay_remove_buf(struct kref *kref)h](h)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWhhhjihKubj)}(hrelay_remove_bufh]j)}(hrelay_remove_bufh]hrelay_remove_buf}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjWhhhjihKubj/)}(h(struct kref *kref)h]j5)}(hstruct kref *krefh](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)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj~sbc.relay_remove_bufasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjWhhhjihKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjihKubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihKhjPhhubj)}(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&]uh1jhjPhhhjihKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj3jj3jjjuh1hhhhjGhNhNubj)}(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)}(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.chKhj7ubj)}(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.)}(hj\h]hstruct kref *kref}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjVubjD)}(hhh](j)}(h6target kernel reference that contains the relay bufferh]h6target kernel reference that contains the relay buffer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjrubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjrubeh}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjqhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_buf_empty (C function)c.relay_buf_emptyhNtauh1hhjGhhhNhNubh)}(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}(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_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 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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]j)}jsjsbc.relay_buf_emptyasbuh1hhjubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(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.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h%boolean, is the channel buffer empty?h]h%boolean, is the channel buffer empty?}(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&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(hl**Parameters** ``struct rchan_buf *buf`` channel buffer Returns 1 if the buffer is empty, 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:225: ./kernel/relay.chKhjubj)}(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.)}(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)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(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.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&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwakeup_readers (C function)c.wakeup_readershNtauh1hhjGhhhNhNubh)}(hhh](h)}(h+void wakeup_readers (struct irq_work *work)h]h)}(h*void wakeup_readers(struct irq_work *work)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.chM ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hM ubj)}(hwakeup_readersh]j)}(hwakeup_readersh]hwakeup_readers}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj=hM ubj/)}(h(struct irq_work *work)h]j5)}(hstruct irq_work *workh](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)}(hirq_workh]hirq_work}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjRsbc.wakeup_readersasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hworkh]hwork}(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=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$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&]uh1jhj$hhhj=hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(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 hj ubj)}(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.)}(hj0h]hstruct irq_work *work}(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:225: ./kernel/relay.chM hj*ubjD)}(hhh](j)}(hcontains the channel bufferh]hcontains the channel buffer}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjFubj)}(h0This is the function used to defer reader wakingh]h0This is the function used to defer reader waking}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM hjFubeh}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhM hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__relay_reset (C function)c.__relay_resethNtauh1hhjGhhhNhNubh)}(hhh](h)}(h=void __relay_reset (struct rchan_buf *buf, unsigned int init)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 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_resetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj"hhhNhNubah}(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)}(hunsigned int inith](h)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hinth]hint}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hinith]hinit}(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)}(hreset a channel bufferh]hreset 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjGhNhNubj)}(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)}(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 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.)}(hj$h]hunsigned int init}(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.chMhjubjD)}(hhh](j)}(h(1 if this is a first-time initializationh]h(1 if this is a first-time initialization}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj:ubj)}(h,See relay_reset() for description of effect.h]h,See relay_reset() for description of effect.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj:ubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_close_buf (C function)c.relay_close_bufhNtauh1hhjGhhhNhNubh)}(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}(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_close_bufh]j)}(hrelay_close_bufh]hrelay_close_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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_close_bufasbuh1hhjubh)}(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-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 a channel bufferh]hclose a channel buffer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjGhNhNubj)}(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)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjiubj)}(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.)}(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)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubj)}(hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h]hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_file_open (C function)c.relay_file_openhNtauh1hhjGhhhNhNubh)}(hhh](h)}(hh]hstruct}(hj4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(hinodeh]hinode}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_file_openasbuh1hhj0ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj,ubj5)}(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}]jnc.relay_file_openasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(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)}(hopen file op for relay filesh]hopen 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.chM&hj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjGhNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file Increments the channel buffer refcount.h](j)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM*hjCubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hjhh]hstruct inode *inode}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM'hjbubjD)}(hhh]j)}(h the inodeh]h the inode}(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")}(hG``struct file *filp`` the file Increments the channel buffer refcount.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.chM)hjubjD)}(hhh](j)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM(hjubj)}(h'Increments the channel buffer refcount.h]h'Increments the channel buffer refcount.}(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)hj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_file_mmap (C function)c.relay_file_mmaphNtauh1hhjGhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM<ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM<ubj)}(hrelay_file_mmaph]j)}(hrelay_file_mmaph]hrelay_file_mmap}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM<ubj/)}(h/(struct file *filp, struct vm_area_struct *vma)h](j5)}(hstruct file *filph](j;)}(hj>h]hstruct}(hjGhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjCubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hfileh]hfile}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjgmodnameN classnameNjwjz)}j}]j)}jsj-sbc.relay_file_mmapasbuh1hhjCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hstruct vm_area_struct *vmah](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)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.relay_file_mmapasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(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)}(hmmap file op for relay filesh]hmmap 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.chM6hj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM<ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhjGhNhNubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM:hjVubj)}(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-hjyubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM7hjuubjD)}(hhh]j)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM7hjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhM7hjrubj")}(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.)}(hjh]hstruct vm_area_struct *vma}(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.chM9hjubjD)}(hhh](j)}(hthe vma describing what to maph]hthe vma describing what to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM8hjubj)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]j)}jsrelay_file_pollsbc.relay_file_pollasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMIubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjAhMIubj)}(hrelay_file_pollh]j)}(hj>h]hrelay_file_poll}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjAhMIubj/)}(h%(struct file *filp, poll_table *wait)h](j5)}(hstruct file *filph](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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j<c.relay_file_pollasbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubj5)}(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}]j<c.relay_file_pollasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwaith]hwait}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjAhMIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjAhMIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjAhMIhjhhubj)}(hhh]j)}(hpoll file op for relay filesh]hpoll file op for relay files}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMChjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjAhMIubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]jj]jjjuh1hhhhjGhNhNubj)}(hi**Parameters** ``struct file *filp`` the file ``poll_table *wait`` poll table Poll implemention.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.chMGhjaubj)}(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.chMDhjubjD)}(hhh]j)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMDhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMDhj}ubj")}(h3``poll_table *wait`` poll table Poll implemention.h](j()}(h``poll_table *wait``h]j.)}(hjh]hpoll_table *wait}(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.chMFhjubjD)}(hhh](j)}(h poll tableh]h poll table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMEhjubj)}(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.chMGhjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMFhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_file_release (C function)c.relay_file_releasehNtauh1hhjGhhhNhNubh)}(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}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMbubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj6hMbubj)}(hrelay_file_releaseh]j)}(hrelay_file_releaseh]hrelay_file_release}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhhj6hMbubj/)}(h((struct inode *inode, struct file *filp)h](j5)}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjKsbc.relay_file_releaseasbuh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(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}]jc.relay_file_releaseasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj! hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(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.hj$hhhj6hMbubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj6hMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMbhjhhubj)}(hhh]j)}(hrelease file op for relay filesh]hrelease file op for relay files}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM[hjU hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMbubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjp jjp jjjuh1hhhhjGhNhNubj)}(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)}(hjz h]h Parameters}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM_hjt ubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hj h]hstruct inode *inode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM\hj ubjD)}(hhh]j)}(h the inodeh]h the inode}(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")}(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.)}(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.chM_hj 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.chM]hj 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 hM_hj ubeh}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hM_hj ubeh}(h]h ]h"]h$]h&]uh1jhjt ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)relay_file_read_subbuf_avail (C function)c.relay_file_read_subbuf_availhNtauh1hhjGhhhNhNubh)}(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_availasbuh1hhj6!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&]uh1hhj6!hhhj^!hMubj)}(hrelay_file_read_subbuf_availh]j)}(hj[!h]hrelay_file_read_subbuf_avail}(hjq!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6!hhhj^!hMubj/)}(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 reftargetj!modnameN classnameNjwjz)}j}]jY!c.relay_file_read_subbuf_availasbuh1hhj!ubh)}(h h]h }(hj!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}(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}]jY!c.relay_file_read_subbuf_availasbuh1hhj!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!ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj6!hhhj^!hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj2!hhhj^!hMubah}(h]j-!ah ](jjeh"]h$]h&]jj)jhuh1hhj^!hMhj/!hhubj)}(hhh]j)}(h$return bytes available in sub-bufferh]h$return bytes available in sub-buffer}(hjU"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjR"hhubah}(h]h ]h"]h$]h&]uh1jhj/!hhhj^!hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjm"jjm"jjjuh1hhhhjGhNhNubj)}(hj**Parameters** ``size_t read_pos`` file read position ``struct rchan_buf *buf`` relay channel bufferh](j)}(h**Parameters**h]j)}(hjw"h]h Parameters}(hjy"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju"ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjq"ubj)}(hhh](j")}(h'``size_t read_pos`` file read position h](j()}(h``size_t read_pos``h]j.)}(hj"h]hsize_t read_pos}(hj"hhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhj"ubj")}(h.``struct rchan_buf *buf`` relay channel bufferh](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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhj"ubeh}(h]h ]h"]h$]h&]uh1jhjq"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&relay_file_read_start_pos (C function)c.relay_file_read_start_poshNtauh1hhjGhhhNhNubh)}(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.chMubh)}(h h]h }(hjN#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%#hhhjM#hMubj)}(hrelay_file_read_start_posh]j)}(hjJ#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%#hhhjM#hMubj/)}(h(struct rchan_buf *buf)h]j5)}(hstruct rchan_buf *bufh](j;)}(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 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}]jH#c.relay_file_read_start_posasbuh1hhjw#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)}(hbufh]hbuf}(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%#hhhjM#hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!#hhhjM#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhjM#hMhj#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.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhjM#hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj$jj$jjjuh1hhhhjGhNhNubj)}(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.chMhj$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.chMhj7$ubjD)}(hhh](j)}(hrelay channel bufferh]hrelay channel buffer}(hjV$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjS$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.}(hje$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjS$ubeh}(h]h ]h"]h$]h&]uh1jChj7$ubeh}(h]h ]h"]h$]h&]uh1j!hjR$hMhj4$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$relay_file_read_end_pos (C function)c.relay_file_read_end_poshNtauh1hhjGhhhNhNubh)}(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}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$modnameN classnameNjwjz)}j}]j)}jsrelay_file_read_end_possbc.relay_file_read_end_posasbuh1hhj$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_file_read_end_posh]j)}(hj$h]hrelay_file_read_end_pos}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhhj$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}]j$c.relay_file_read_end_posasbuh1hhj$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)}(hbufh]hbuf}(hjO%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}(hjk%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjh%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjm%modnameN classnameNjwjz)}j}]j$c.relay_file_read_end_posasbuh1hhjd%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjd%ubj)}(hread_posh]hread_pos}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjd%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$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$c.relay_file_read_end_posasbuh1hhj%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-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)}(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$hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!&jj!&jjjuh1hhhhjGhNhNubj)}(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.)}(hjJ&h]hstruct rchan_buf *buf}(hjL&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjH&ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjD&ubjD)}(hhh]j)}(hrelay channel bufferh]hrelay channel buffer}(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'``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&]uh1jhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jChj}&ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhjA&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-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)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj&ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhjA&ubeh}(h]h ]h"]h$]h&]uh1jhj%&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhj(hhhhhKubeh}(h]relay-interface-supportah ]h"]relay interface supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hModule Supporth]hModule Support}(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}(hjH'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjD'hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKubh)}(h h]h }(hjW'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD'hhhjV'hKubj)}(h__request_moduleh]j)}(h__request_moduleh]h__request_module}(hji'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhje'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjD'hhhjV'hKubj/)}(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 }(hj'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}(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)}(hfmth]hfmt}(hj'hhhNhNubah}(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.hjD'hhhjV'hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@'hhhjV'hKubah}(h]j;'ah ](jjeh"]h$]h&]jj)jhuh1hhjV'hKhj='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='hhhjV'hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjW(jjW(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)}(hja(h]h Parameters}(hjc(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.chKuhjz(ubjD)}(hhh]j)}(h+wait (or not) for the operation to completeh]h+wait (or not) for the operation to complete}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hKuhj(ubah}(h]h ]h"]h$]h&]uh1jChjz(ubeh}(h]h ]h"]h$]h&]uh1j!hj(hKuhjw(ubj")}(hJ``const char *fmt`` printf style format string for the name of the module h](j()}(h``const char *fmt``h]j.)}(hj(h]hconst char *fmt}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKvhj(ubjD)}(hhh]j)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hKvhj(ubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hj(hKvhjw(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)hKwhjw(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.}(hjC)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.}(hjR)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}(hjs)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp)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.chKhjp)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:}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chKhjp)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)}(hj)h]h0memory allocated with kernel_read_file_from_fd()}(hj)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&]uh1jhj)ubj)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]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.}(hj)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&]uh1jhj)ubj)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]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)hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]j loweralphajhjj1uh1jhj)ubah}(h]h ]h"]h$]h&]uh1j;8hj)hK#hjp)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-hjp)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.chK3hjp)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.chK9hjp)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)}(hjS*h]h.kernel_read_file_from_fd() call uses vmalloc()}(hjU*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKFhjQ*ubah}(h]h ]h"]h$]h&]uh1jhjN*ubj)}(h)optional module decompression uses vmap()h]j)}(hjk*h]h)optional module decompression uses vmap()}(hjm*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKGhji*ubah}(h]h ]h"]h$]h&]uh1jhjN*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&]uh1jhjN*ubeh}(h]h ]h"]h$]h&]jjjhjj1uh1jhjJ*ubah}(h]h ]h"]h$]h&]uh1j;8hjb*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.}(hj*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:}(hj*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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKVhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls h]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&]uh1jhj*ubeh}(h]h ]h"]h$]h&]jj)jhjj1uh1jhj*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&]uh1hhjp)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:}(hj1+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}(hjO+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK+ubh + }(hjK+hhhNhNubj)}(h**invalid_decompress_bytes**h]hinvalid_decompress_bytes}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK+ubh + }hjK+sbj)}(h**invalid_becoming_bytes**h]hinvalid_becoming_bytes}(hjs+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK+ubh + }hjK+sbj)}(h**invalid_mod_bytes**h]hinvalid_mod_bytes}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK+ubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKjhjG+ubah}(h]h ]h"]h$]h&]uh1jhjD+ubah}(h]h ]h"]h$]h&]jjuh1jhj+hKjhj@+ubah}(h]h ]h"]h$]h&]uh1j;8hj+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:}(hj+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}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKrhj+ubah}(h]h ]h"]h$]h&]uh1jhj+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&]uh1jhj+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&]uh1jhj+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&]uh1jhj+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}(hj6,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.)}(hjJ,h]hmodules}(hjL,hhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjH,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&]uh1jhjg,hK~hj*,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhj+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}(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)}(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():}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj,ubj)}(hhh](j)}(h blacklistingh]j)}(hj,h]h blacklisting}(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)}(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&]uh1jhj,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&]uh1jhj,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&]uh1jhj,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&]uh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hKhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hKhj~,ubah}(h]h ]h"]h$]h&]uh1j;8hj,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.}(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\-ubah}(h]h ]h"]h$]h&]jjuh1jhjq-hKhj+ubeh}(h]h ]h"]h$]h&]uh1j;8hj+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)}(hj-h]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(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)}(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.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]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.}(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)}(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&]jjuh1jhj-hKhj+ubeh}(h]h ]h"]h$]h&]uh1j;8hj+hKrhj +hhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhjp)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}(hjP.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM.hhhhhMubh)}(hhh](h)}(h DMA Channelsh]h DMA Channels}(hja.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}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj1hMubh)}(hhh]j)}(hresourceh]hresource}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsrequest_resource_conflictsbc.request_resource_conflictasbuh1hhj1hhhj1hMubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj1hMubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj)}(hrequest_resource_conflicth]j)}(hj1h]hrequest_resource_conflict}(hj 2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhj1hMubj/)}(h-(struct resource *root, struct resource *new)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hj%2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!2ubh)}(h h]h }(hj22hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!2ubh)}(hhh]j)}(hresourceh]hresource}(hjC2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjE2modnameN classnameNjwjz)}j}]j1c.request_resource_conflictasbuh1hhj!2ubh)}(h h]h }(hja2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!2ubj)}(hjh]h*}(hjo2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!2ubj)}(hrooth]hroot}(hj|2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubj5)}(hstruct resource *newh](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}]j1c.request_resource_conflictasbuh1hhj2ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hnewh]hnew}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhj1hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhj1hhubj)}(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&]uh1jhj1hhhj1hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj.3jj.3jjjuh1hhhhj1hNhNubj)}(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)}(hj83h]h Parameters}(hj:3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj63ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj23ubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hjW3h]hstruct resource *root}(hjY3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjU3ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjQ3ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hjp3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl3hMhjm3ubah}(h]h ]h"]h$]h&]uh1jChjQ3ubeh}(h]h ]h"]h$]h&]uh1j!hjl3hMhjN3ubj")}(h?``struct resource *new`` resource descriptor desired by caller h](j()}(h``struct resource *new``h]j.)}(hj3h]hstruct resource *new}(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)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj3hMhjN3ubeh}(h]h ]h"]h$]h&]uh1jhj23ubj)}(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:272: ./kernel/resource.chMhj23ubj)}(h2Returns 0 for success, conflict resource on error.h]h2Returns 0 for success, conflict resource on error.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj23ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_next_iomem_res (C function)c.find_next_iomem_reshNtauh1hhj1hhhNhNubh)}(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&]uh1hhj 4hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMTubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 4hhhj4hMTubj)}(hfind_next_iomem_resh]j)}(hfind_next_iomem_resh]hfind_next_iomem_res}(hj14hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-4ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj 4hhhj4hMTubj/)}(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}(hjP4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjR4modnameN classnameNjwjz)}j}]j)}jsj34sbc.find_next_iomem_resasbuh1hhjI4ubh)}(h h]h }(hjp4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI4ubj)}(hstarth]hstart}(hj~4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE4ubj5)}(hresource_size_t endh](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}]jl4c.find_next_iomem_resasbuh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hendh]hend}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE4ubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj 5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hflagsh]hflags}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE4ubj5)}(hunsigned long desch](h)}(hunsignedh]hunsigned}(hj05hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,5ubh)}(h h]h }(hj>5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,5ubh)}(hlongh]hlong}(hjL5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,5ubh)}(h h]h }(hjZ5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,5ubj)}(hdesch]hdesc}(hjh5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE4ubj5)}(hstruct resource *resh](j;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}5ubh)}(hhh]j)}(hresourceh]hresource}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]jl4c.find_next_iomem_resasbuh1hhj}5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}5ubj)}(hresh]hres}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE4ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj 4hhhj4hMTubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj4hhhj4hMTubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hMThj4hhubj)}(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}(hj 6hhhNhNubah}(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.chMDhj5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMTubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,6jj,6jjjuh1hhhhj1hNhNubj)}(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)}(hj66h]h Parameters}(hj86hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj46ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMHhj06ubj)}(hhh](j")}(hE``resource_size_t start`` start address of the resource searched for h](j()}(h``resource_size_t start``h]j.)}(hjU6h]hresource_size_t start}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjS6ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMKhjO6ubjD)}(hhh]j)}(h*start address of the resource searched forh]h*start address of the resource searched for}(hjn6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj6hMKhjk6ubah}(h]h ]h"]h$]h&]uh1jChjO6ubeh}(h]h ]h"]h$]h&]uh1j!hjj6hMKhjL6ubj")}(h5``resource_size_t end`` end address of same resource h](j()}(h``resource_size_t end``h]j.)}(hj6h]hresource_size_t end}(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.chMLhj6ubjD)}(hhh]j)}(hend address of same resourceh]hend address of same resource}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hMLhj6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hMLhjL6ubj")}(h;``unsigned long flags`` flags which the resource must have h](j()}(h``unsigned long flags``h]j.)}(hj6h]hunsigned long flags}(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.chMMhj6ubjD)}(hhh]j)}(h"flags which the resource must haveh]h"flags which the resource must have}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hMMhj6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hMMhjL6ubj")}(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-hj6ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMNhj6ubjD)}(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&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMNhjL6ubj")}(h7``struct resource *res`` return ptr, if resource found h](j()}(h``struct resource *res``h]j.)}(hj97h]hstruct resource *res}(hj;7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj77ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMOhj37ubjD)}(hhh]j)}(hreturn ptr, if resource foundh]hreturn ptr, if resource found}(hjR7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN7hMOhjO7ubah}(h]h ]h"]h$]h&]uh1jChj37ubeh}(h]h ]h"]h$]h&]uh1j!hjN7hMOhjL6ubeh}(h]h ]h"]h$]h&]uh1jhj06ubj)}(h**Description**h]j)}(hjt7h]h Description}(hjv7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr7ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMQhj06ubj)}(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 }(hj7hhhNhNubj)}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhW..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMEhj06ubj)}(hcThe caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](hThe caller must specify }(hj7hhhNhNubj)}(h **start**h]hstart}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, }(hj7hhhNhNubj)}(h**end**h]hend}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, }hj7sbj)}(h **flags**h]hflags}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, and }(hj7hhhNhNubj)}(h**desc**h]hdesc}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh (which may be IORES_DESC_NONE).}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMIhj06ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ reallocate_resource (C function)c.reallocate_resourcehNtauh1hhj1hhhNhNubh)}(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}(hj"8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hj18hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj08hMubj)}(hreallocate_resourceh]j)}(hreallocate_resourceh]hreallocate_resource}(hjC8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?8ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj8hhhj08hMubj/)}(hn(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hj_8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[8ubh)}(h h]h }(hjl8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[8ubh)}(hhh]j)}(hresourceh]hresource}(hj}8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j)}jsjE8sbc.reallocate_resourceasbuh1hhj[8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[8ubj)}(hrooth]hroot}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjW8ubj5)}(hstruct resource *oldh](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hresourceh]hresource}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j8c.reallocate_resourceasbuh1hhj8ubh)}(h h]h }(hj 9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(holdh]hold}(hj(9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjW8ubj5)}(hresource_size_t newsizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjD9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjA9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjF9modnameN classnameNjwjz)}j}]j8c.reallocate_resourceasbuh1hhj=9ubh)}(h h]h }(hjb9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=9ubj)}(hnewsizeh]hnewsize}(hjp9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjW8ubj5)}(h&struct resource_constraint *constrainth](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)}(hresource_constrainth]hresource_constraint}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j8c.reallocate_resourceasbuh1hhj9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h constrainth]h constraint}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjW8ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj8hhhj08hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhj08hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj08hMhj8hhubj)}(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&]uh1jhj8hhhj08hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj":jj":jjjuh1hhhhj1hNhNubj)}(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.)}(hjK:h]hstruct resource *root}(hjM:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI:ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjE:ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hjd:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`:hMhja:ubah}(h]h ]h"]h$]h&]uh1jChjE:ubeh}(h]h ]h"]h$]h&]uh1j!hj`:hMhjB: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&]uh1jhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jChj~:ubeh}(h]h ]h"]h$]h&]uh1j!hj:hMhjB: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.chMhj:ubjD)}(hhh]j)}(h#new size of the resource descriptorh]h#new size of the 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:hMhjB: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 ;hMhjB:ubeh}(h]h ]h"]h$]h&]uh1jhj&:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlookup_resource (C function)c.lookup_resourcehNtauh1hhj1hhhNhNubh)}(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}(hjP;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjL;hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMQubh)}(h h]h }(hj^;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL;hhhj];hMQubh)}(hhh]j)}(hresourceh]hresource}(hjo;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjl;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjq;modnameN classnameNjwjz)}j}]j)}jslookup_resourcesbc.lookup_resourceasbuh1hhjL;hhhj];hMQubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL;hhhj];hMQubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL;hhhj];hMQubj)}(hlookup_resourceh]j)}(hj;h]hlookup_resource}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjL;hhhj];hMQubj/)}(h.(struct resource *root, resource_size_t start)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;c.lookup_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)}(hrooth]hroot}(hj!<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;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_resourceasbuh1hhj6<ubh)}(h h]h }(hj[<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6<ubj)}(hstarth]hstart}(hji<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjL;hhhj];hMQubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjH;hhhj];hMQubah}(h]jC;ah ](jjeh"]h$]h&]jj)jhuh1hhj];hMQhjE;hhubj)}(hhh]j)}(h5find an existing resource by a resource start addressh]h5find an existing resource by a resource start address}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMKhj<hhubah}(h]h ]h"]h$]h&]uh1jhjE;hhhj];hMQubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhj1hNhNubj)}(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)}(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.chMOhj<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.chMLhj<ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMLhj<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMLhj<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"=hMMhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h**Description**h]j)}(hjH=h]h Description}(hjJ=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF=ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMOhj<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.chMOhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%insert_resource_conflict (C function)c.insert_resource_conflicthNtauh1hhj1hhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]j)}jsinsert_resource_conflictsbc.insert_resource_conflictasbuh1hhj=hhhj=hMubh)}(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)}(hinsert_resource_conflicth]j)}(hj=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}]j=c.insert_resource_conflictasbuh1hhj>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)}(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}(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)}(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_resource_conflictasbuh1hhjs>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)}(hnewh]hnew}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjs>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?jjjuh1hhhhj1hNhNubj)}(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.)}(hj9?h]hstruct resource *parent}(hj;?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7?ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj3?ubjD)}(hhh]j)}(hparent of the new resourceh]hparent of the new resource}(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")}(h0``struct resource *new`` new resource to insert h](j()}(h``struct resource *new``h]j.)}(hjr?h]hstruct resource *new}(hjt?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjp?ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjl?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&]uh1jChjl?ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMhj0?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: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.}(hj?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.}(hj?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&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌresource_alignment (C function)c.resource_alignmenthNtauh1hhj1hhhNhNubh)}(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 }(hj5@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj @hhhj4@hMubj)}(hresource_alignmenth]j)}(hj1@h]hresource_alignment}(hjG@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjC@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj @hhhj4@hMubj/)}(h(struct resource *res)h]j5)}(hstruct resource *resh](j;)}(hj>h]hstruct}(hjb@hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^@ubh)}(h h]h }(hjo@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.resource_alignmentasbuh1hhj^@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)}(hresh]hres}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZ@ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj @hhhj4@hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhj4@hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj4@hMhj@hhubj)}(hhh]j)}(hcalculate resource's alignmenth]h calculate resource’s alignment}(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@hhhj4@hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhj1hNhNubj)}(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.chMhj@ubj)}(hhh]j")}(h*``struct resource *res`` resource pointer h](j()}(h``struct resource *res``h]j.)}(hj$Ah]hstruct resource *res}(hj&AhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"Aubah}(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}(hj=AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9AhMhj:Aubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj9AhMhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(h**Description**h]j)}(hj_Ah]h Description}(hjaAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Aubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj@ubj)}(h?Returns alignment on success, 0 (invalid alignment) on failure.h]h?Returns alignment on success, 0 (invalid alignment) on failure.}(hjuAhhhNhNubah}(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&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*release_mem_region_adjustable (C function)c.release_mem_region_adjustablehNtauh1hhj1hhhNhNubh)}(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}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjAhMubj)}(hrelease_mem_region_adjustableh]j)}(hrelease_mem_region_adjustableh]hrelease_mem_region_adjustable}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhhjAhMubj/)}(h-(resource_size_t start, resource_size_t size)h](j5)}(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}]j)}jsjAsbc.release_mem_region_adjustableasbuh1hhjAubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hstarth]hstart}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubj5)}(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 reftargetj0BmodnameN classnameNjwjz)}j}]jBc.release_mem_region_adjustableasbuh1hhj'Bubh)}(h h]h }(hjLBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'Bubj)}(hsizeh]hsize}(hjZBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'Bubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjAhhhjAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjAhhhjAhMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhjAhhubj)}(hhh]j)}(h+release a previously reserved memory regionh]h+release a previously reserved memory region}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMohjBhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjBjjBjjjuh1hhhhj1hNhNubj)}(hX+**Parameters** ``resource_size_t start`` resource start address ``resource_size_t size`` resource region size **Description** This interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly. Existing children of the busy memory resource must be immutable in the request. **Note** - Additional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases. - When a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.h](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:272: ./kernel/resource.chMshjBubj)}(hhh](j")}(h1``resource_size_t start`` resource start address h](j()}(h``resource_size_t start``h]j.)}(hjBh]hresource_size_t start}(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:272: ./kernel/resource.chMphjBubjD)}(hhh]j)}(hresource start addressh]hresource start address}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMphjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhMphjBubj")}(h.``resource_size_t size`` resource region size h](j()}(h``resource_size_t size``h]j.)}(hjBh]hresource_size_t size}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMqhjBubjD)}(hhh]j)}(hresource region sizeh]hresource region size}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMqhjCubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjChMqhjBubeh}(h]h ]h"]h$]h&]uh1jhjBubj)}(h**Description**h]j)}(hj9Ch]h Description}(hj;ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Cubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMshjBubj)}(hXiThis interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly. Existing children of the busy memory resource must be immutable in the request.h]hXiThis interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly. Existing children of the busy memory resource must be immutable in the request.}(hjOChhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMshjBubj)}(h**Note**h]j)}(hj`Ch]hNote}(hjbChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Cubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMzhjBubj)}(hhh](j)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]j)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.}(hj}ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMzhjyCubah}(h]h ]h"]h$]h&]uh1jhjvCubj)}(hWhen a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.h]j)}(hWhen a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.h]hWhen a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chM|hjCubah}(h]h ]h"]h$]h&]uh1jhjvCubeh}(h]h ]h"]h$]h&]jjuh1jhjChMzhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&merge_system_ram_resource (C function)c.merge_system_ram_resourcehNtauh1hhj1hhhNhNubh)}(hhh](h)}(h5void merge_system_ram_resource (struct resource *res)h]h)}(h4void merge_system_ram_resource(struct resource *res)h](h)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjChMubj)}(hmerge_system_ram_resourceh]j)}(hmerge_system_ram_resourceh]hmerge_system_ram_resource}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhjChMubj/)}(h(struct resource *res)h]j5)}(hstruct resource *resh](j;)}(hj>h]hstruct}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj Dubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Dubh)}(hhh]j)}(hresourceh]hresource}(hj,DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)Dubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.DmodnameN classnameNjwjz)}j}]j)}jsjCsbc.merge_system_ram_resourceasbuh1hhj Dubh)}(h h]h }(hjLDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Dubj)}(hjh]h*}(hjZDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Dubj)}(hresh]hres}(hjgDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Dubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubah}(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)}(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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhj1hNhNubj)}(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)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjDubj)}(hhh]j")}(h-``struct resource *res`` resource descriptor h](j()}(h``struct resource *res``h]j.)}(hjDh]hstruct resource *res}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjDubjD)}(hhh]j)}(hresource descriptorh]hresource descriptor}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(h**Description**h]j)}(hj Eh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Eubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjDubj)}(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.}(hj#EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjDubj)}(h**Note**h]j)}(hj4Eh]hNote}(hj6EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Eubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjDubj)}(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!}(hjQEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjMEubah}(h]h ]h"]h$]h&]uh1jhjJEubj)}(hHrelease_mem_region_adjustable() will split on demand on memory hotunplugh]j)}(hjhEh]hHrelease_mem_region_adjustable() will split on demand on memory hotunplug}(hjjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjfEubah}(h]h ]h"]h$]h&]uh1jhjJEubeh}(h]h ]h"]h$]h&]jjuh1jhj_EhMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrequest_resource (C function)c.request_resourcehNtauh1hhj1hhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM$ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjEhM$ubj)}(hrequest_resourceh]j)}(hrequest_resourceh]hrequest_resource}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjEhhhjEhM$ubj/)}(h-(struct resource *root, struct resource *new)h](j5)}(hstruct resource *rooth](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)}(hresourceh]hresource}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjEsbc.request_resourceasbuh1hhjEubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hj-FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hrooth]hroot}(hj:FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjSFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOFubh)}(h h]h }(hj`FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOFubh)}(hhh]j)}(hresourceh]hresource}(hjqFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsFmodnameN classnameNjwjz)}j}]jFc.request_resourceasbuh1hhjOFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOFubj)}(hnewh]hnew}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjEhhhjEhM$ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjEhhhjEhM$ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhM$hjEhhubj)}(hhh]j)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhM$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjFjjFjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` resource descriptor desired by caller **Description** Returns 0 for success, negative error code on error.h](j)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM"hjFubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hjGh]hstruct resource *root}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjGubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj.GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*GhMhj+Gubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hj*GhMhj Gubj")}(h?``struct resource *new`` resource descriptor desired by caller h](j()}(h``struct resource *new``h]j.)}(hjNGh]hstruct resource *new}(hjPGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLGubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM hjHGubjD)}(hhh]j)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjgGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcGhM hjdGubah}(h]h ]h"]h$]h&]uh1jChjHGubeh}(h]h ]h"]h$]h&]uh1j!hjcGhM hj Gubeh}(h]h ]h"]h$]h&]uh1jhjFubj)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM"hjFubj)}(h4Returns 0 for success, negative error code on error.h]h4Returns 0 for success, negative error code on error.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM"hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelease_resource (C function)c.release_resourcehNtauh1hhj1hhhNhNubh)}(hhh](h)}(h+int release_resource (struct resource *old)h]h)}(h*int release_resource(struct resource *old)h](h)}(hinth]hint}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM2ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjGhM2ubj)}(hrelease_resourceh]j)}(hrelease_resourceh]hrelease_resource}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjGhhhjGhM2ubj/)}(h(struct resource *old)h]j5)}(hstruct resource *oldh](j;)}(hj>h]hstruct}(hj HhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j)}(hresourceh]hresource}(hj)HhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&Hubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+HmodnameN classnameNjwjz)}j}]j)}jsjGsbc.release_resourceasbuh1hhjHubh)}(h h]h }(hjIHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hjWHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(holdh]hold}(hjdHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHubah}(h]h ]h"]h$]h&]j,j-uh1j.hjGhhhjGhM2ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjGhhhjGhM2ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhM2hjGhhubj)}(hhh]j)}(h&release a previously reserved resourceh]h&release a previously reserved resource}(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&]uh1jhjGhhhjGhM2ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHjjHjjjuh1hhhhj1hNhNubj)}(h;**Parameters** ``struct resource *old`` resource pointerh](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.chM3hjHubj)}(hhh]j")}(h)``struct resource *old`` resource pointerh](j()}(h``struct resource *old``h]j.)}(hjHh]hstruct resource *old}(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.chM5hjHubjD)}(hhh]j)}(hresource pointerh]hresource pointer}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM0hjHubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjHhM5hjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ walk_iomem_res_desc (C function)c.walk_iomem_res_deschNtauh1hhj1hhhNhNubh)}(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}(hj)IhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%IhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hj8IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%Ihhhj7IhMubj)}(hwalk_iomem_res_desch]j)}(hwalk_iomem_res_desch]hwalk_iomem_res_desc}(hjJIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%Ihhhj7IhMubj/)}(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}(hjfIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbIubh)}(h h]h }(hjtIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbIubh)}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbIubj)}(hdesch]hdesc}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^Iubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hflagsh]hflags}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^Iubj5)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj JmodnameN classnameNjwjz)}j}]j)}jsjLIsbc.walk_iomem_res_descasbuh1hhjJubh)}(h h]h }(hj+JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hstarth]hstart}(hj9JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^Iubj5)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hjUJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRJubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWJmodnameN classnameNjwjz)}j}]j'Jc.walk_iomem_res_descasbuh1hhjNJubh)}(h h]h }(hjsJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNJubj)}(hendh]hend}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^Iubj5)}(h void *argh](h)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hargh]harg}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^Iubj5)}(h$int (*func)(struct resource*, void*)h](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h(}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hfunch]hfunc}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubj)}(hj1h]h)}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h(}(hj-KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj;)}(hj>h]hstruct}(hj:KhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJubh)}(h h]h }(hjGKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hhh]j)}(hresourceh]hresource}(hjXKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZKmodnameN classnameNjwjz)}j}]j'Jc.walk_iomem_res_descasbuh1hhjJubj)}(hjh]h*}(hjvKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h,}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hj1h]h)}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^Iubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj%Ihhhj7IhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!Ihhhj7IhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhj7IhMhjIhhubj)}(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. *}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhj7IhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjKjjKjjjuh1hhhhj1hNhNubj)}(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.chMhjKubj)}(hhh](j")}(h\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j()}(h``unsigned long desc``h]j.)}(hj#Lh]hunsigned long desc}(hj%LhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!Lubah}(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 }(hj 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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌregion_intersects (C function)c.region_intersectshNtauh1hhj1hhhNhNubh)}(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.chM~ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhM~ubj)}(hregion_intersectsh]j)}(hregion_intersectsh]hregion_intersects}(hj(NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$Nubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhjNhM~ubj/)}(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}(hjGNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjINmodnameN classnameNjwjz)}j}]j)}jsj*Nsbc.region_intersectsasbuh1hhj@Nubh)}(h h]h }(hjgNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@Nubj)}(hstarth]hstart}(hjuNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@Nubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj``unsigned long flags`` flags of resource (in iomem_resource) h](j()}(h``unsigned long flags``h]j.)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:Pubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMnhj6PubjD)}(hhh]j)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjUPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQPhMnhjRPubah}(h]h ]h"]h$]h&]uh1jChj6Pubeh}(h]h ]h"]h$]h&]uh1j!hjQPhMnhjOubj")}(hU``unsigned long desc`` descriptor of resource (in iomem_resource) or IORES_DESC_NONE h](j()}(h``unsigned long desc``h]j.)}(hjuPh]hunsigned long desc}(hjwPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsPubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMohjoPubjD)}(hhh]j)}(h=descriptor of resource (in iomem_resource) or IORES_DESC_NONEh]h=descriptor of resource (in iomem_resource) or IORES_DESC_NONE}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMohjPubah}(h]h ]h"]h$]h&]uh1jChjoPubeh}(h]h ]h"]h$]h&]uh1j!hjPhMohjOubeh}(h]h ]h"]h$]h&]uh1jhjOubj)}(h**Description**h]j)}(hjPh]h Description}(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.chMqhjOubj)}(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 }(hjPhhhNhNubj)}(h **flags**h]hflags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh and }(hjPhhhNhNubj)}(h**desc**h]hdesc}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hjPhhhNhNubj)}(h **flags**h]hflags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh/}(hjPhhhNhNubj)}(h**desc**h]hdesc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh-, return REGION_MIXED if the region overlaps }(hjPhhhNhNubj)}(h **flags**h]hflags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh/}hjPsbj)}(h**desc**h]hdesc}(hj(QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjPhhhNhNubj)}(h **flags**h]hflags}(hj:QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh/}hjPsbj)}(h**desc**h]hdesc}(hjLQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh 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.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMqhjOubj)}(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.}(hjeQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMzhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_resource_space (C function)c.find_resource_spacehNtauh1hhj1hhhNhNubh)}(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}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhjQhMubj)}(hfind_resource_spaceh]j)}(hfind_resource_spaceh]hfind_resource_space}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQhhhjQhMubj/)}(hk(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j5)}(hstruct resource *rooth](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)}(hresourceh]hresource}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjQsbc.find_resource_spaceasbuh1hhjQubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hrooth]hroot}(hj*RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjCRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?Rubh)}(h h]h }(hjPRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Rubh)}(hhh]j)}(hresourceh]hresource}(hjaRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^Rubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcRmodnameN classnameNjwjz)}j}]j Rc.find_resource_spaceasbuh1hhj?Rubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Rubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Rubj)}(hnewh]hnew}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?Rubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j Rc.find_resource_spaceasbuh1hhjRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hsizeh]hsize}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(h&struct resource_constraint *constrainth](j;)}(hj>h]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j Rc.find_resource_spaceasbuh1hhjRubh)}(h h]h }(hj7ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjEShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h constrainth]h constraint}(hjRShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubeh}(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 empty space in the resource treeh]h%Find empty space in the resource tree}(hj|ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjyShhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhj1hNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjSubj)}(hhh](j")}(h3``struct resource *root`` Root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hjSh]hstruct resource *root}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjSubjD)}(hhh]j)}(hRoot resource descriptorh]hRoot resource descriptor}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjSubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjShMhjSubj")}(hN``struct resource *new`` Resource descriptor awaiting an empty resource space h](j()}(h``struct resource *new``h]j.)}(hjSh]hstruct resource *new}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjSubjD)}(hhh]j)}(h4Resource descriptor awaiting an empty resource spaceh]h4Resource descriptor awaiting an empty resource space}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ThMhj Tubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hj ThMhjSubj")}(h=``resource_size_t size`` The minimum size of the empty space h](j()}(h``resource_size_t size``h]j.)}(hj/Th]hresource_size_t size}(hj1ThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-Tubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj)TubjD)}(hhh]j)}(h#The minimum size of the empty spaceh]h#The minimum size of the empty space}(hjHThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDThMhjETubah}(h]h ]h"]h$]h&]uh1jChj)Tubeh}(h]h ]h"]h$]h&]uh1j!hjDThMhjSubj")}(hY``struct resource_constraint *constraint`` The range and alignment constraints to be met h](j()}(h*``struct resource_constraint *constraint``h]j.)}(hjhTh]h&struct resource_constraint *constraint}(hjjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfTubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjbTubjD)}(hhh]j)}(h-The range and alignment constraints to be meth]h-The range and alignment constraints to be met}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ThMhj~Tubah}(h]h ]h"]h$]h&]uh1jChjbTubeh}(h]h ]h"]h$]h&]uh1j!hj}ThMhjSubeh}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjSubj)}(hhFinds an empty space under **root** in the resource tree satisfying range and alignment **constraints**.h](hFinds an empty space under }(hjThhhNhNubj)}(h**root**h]hroot}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh5 in the resource tree satisfying range and alignment }(hjThhhNhNubj)}(h**constraints**h]h constraints}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjSubj)}(h **Return**h]j)}(hjTh]hReturn}(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.chMhjSubj)}(hhh](j)}(hQ``0`` - if successful, **new** members start, end, and flags are altered.h]j)}(hj Uh](j.)}(h``0``h]h0}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Uubh - if successful, }(hj UhhhNhNubj)}(h**new**h]hnew}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Uubh+ members start, end, and flags are altered.}(hj UhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubj)}(h,``-EBUSY`` - if no empty space was found.h]j)}(hjAUh](j.)}(h ``-EBUSY``h]h-EBUSY}(hjFUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCUubh" - if no empty space was found.}(hjCUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj?Uubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhj8UhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌallocate_resource (C function)c.allocate_resourcehNtauh1hhj1hhhNhNubh)}(hhh](h)}(hint allocate_resource (struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h]h)}(hint allocate_resource(struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h](h)}(hinth]hint}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM+ubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjUhM+ubj)}(hallocate_resourceh]j)}(hallocate_resourceh]hallocate_resource}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjUhM+ubj/)}(h(struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h](j5)}(hstruct resource *rooth](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)}(hresourceh]hresource}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]j)}jsjUsbc.allocate_resourceasbuh1hhjUubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hrooth]hroot}(hj!VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hj:VhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6Vubh)}(h h]h }(hjGVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6Vubh)}(hhh]j)}(hresourceh]hresource}(hjXVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZVmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhj6Vubh)}(h h]h }(hjvVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6Vubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Vubj)}(hnewh]hnew}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6Vubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hsizeh]hsize}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hresource_size_t minh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(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)}(hminh]hmin}(hj!WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hresource_size_t maxh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj=WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:Wubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?WmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhj6Wubh)}(h h]h }(hj[WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6Wubj)}(hmaxh]hmax}(hjiWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6Wubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hresource_size_t alignh](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_resourceasbuh1hhj~Wubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~Wubj)}(halignh]halign}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~Wubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hresource_alignf alignfh](h)}(hhh]j)}(hresource_alignfh]hresource_alignf}(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)}(halignfh]halignf}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hvoid *alignf_datah](h)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hj XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hj.XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h alignf_datah]h alignf_data}(hj;XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(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]j~Uah ](jjeh"]h$]h&]jj)jhuh1hhjUhM+hjUhhubj)}(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}(hjeXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM hjbXhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM+ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj}Xjj}Xjjjuh1hhhhj1hNhNubj)}(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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM$hjXubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hjXh]hstruct resource *root}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM"hjXubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhM"hjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhM"hjXubj")}(h?``struct resource *new`` resource descriptor desired by caller h](j()}(h``struct resource *new``h]j.)}(hjXh]hstruct resource *new}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM#hjXubjD)}(hhh]j)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhM#hjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhM#hjXubj")}(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}(hj1YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-YhM$hj.Yubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hj-YhM$hjXubj")}(h5``resource_size_t min`` minimum boundary to allocate h](j()}(h``resource_size_t min``h]j.)}(hjQYh]hresource_size_t min}(hjSYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOYubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM%hjKYubjD)}(hhh]j)}(hminimum boundary to allocateh]hminimum boundary to allocate}(hjjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfYhM%hjgYubah}(h]h ]h"]h$]h&]uh1jChjKYubeh}(h]h ]h"]h$]h&]uh1j!hjfYhM%hjXubj")}(h5``resource_size_t max`` maximum boundary to allocate h](j()}(h``resource_size_t max``h]j.)}(hjYh]hresource_size_t max}(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)}(hmaximum boundary to allocateh]hmaximum boundary to allocate}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM&hjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhM&hjXubj")}(h8``resource_size_t align`` alignment requested, in bytes h](j()}(h``resource_size_t align``h]j.)}(hjYh]hresource_size_t align}(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)}(halignment requested, in bytesh]halignment requested, in bytes}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM'hjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhM'hjXubj")}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j()}(h``resource_alignf alignf``h]j.)}(hjYh]hresource_alignf alignf}(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)}(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&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjZhM(hjXubj")}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j()}(h``void *alignf_data``h]j.)}(hj5Zh]hvoid *alignf_data}(hj7ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3Zubah}(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)}(h1arbitrary data to pass to the **alignf** functionh](harbitrary data to pass to the }(hjNZhhhNhNubj)}(h **alignf**h]halignf}(hjVZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNZubh function}(hjNZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM)hjKZubah}(h]h ]h"]h$]h&]uh1jChj/Zubeh}(h]h ]h"]h$]h&]uh1j!hjJZhM*hjXubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌinsert_resource (C function)c.insert_resourcehNtauh1hhj1hhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhMubj)}(hinsert_resourceh]j)}(hinsert_resourceh]hinsert_resource}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjZhMubj/)}(h/(struct resource *parent, struct resource *new)h](j5)}(hstruct resource *parenth](j;)}(hj>h]hstruct}(hjZhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hresourceh]hresource}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]j)}jsjZsbc.insert_resourceasbuh1hhjZubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hj*[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hparenth]hparent}(hj7[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubj5)}(hstruct resource *newh](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)}(hresourceh]hresource}(hjn[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjk[ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjp[modnameN classnameNjwjz)}j}]j[c.insert_resourceasbuh1hhjL[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)}(hnewh]hnew}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjL[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubeh}(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)}(h'Inserts a resource in the resource treeh]h'Inserts a resource in 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&]uh1jhjZhhhjZhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[jj[jjjuh1hhhhj1hNhNubj)}(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.)}(hjK\h]hstruct resource *new}(hjM\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI\ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjE\ubjD)}(hhh]j)}(hnew resource to inserth]hnew resource to insert}(hjd\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`\hMhja\ubah}(h]h ]h"]h$]h&]uh1jChjE\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.}(hj\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&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*insert_resource_expand_to_fit (C function)c.insert_resource_expand_to_fithNtauh1hhj1hhhNhNubh)}(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}(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)}(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 hj\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}(hj5]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7]modnameN classnameNjwjz)}j}]j)}jsj\sbc.insert_resource_expand_to_fitasbuh1hhj]ubh)}(h h]h }(hjU]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hjc]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hrooth]hroot}(hjp]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}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]jQ]c.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)}(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.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(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&]uh1jhj\hhhj\hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"^jj"^jjjuh1hhhhj1hNhNubj)}(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.)}(hjK^h]hstruct resource *root}(hjM^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI^ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjE^ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hjd^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`^hMhja^ubah}(h]h ]h"]h$]h&]uh1jChjE^ubeh}(h]h ]h"]h$]h&]uh1j!hj`^hMhjB^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^hMhjB^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)}(hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h]hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj&^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌremove_resource (C function)c.remove_resourcehNtauh1hhj1hhhNhNubh)}(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}(hjA_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=_ubh)}(h h]h }(hjN_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 reftargetja_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-uh1j4hj9_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}(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&]uh1jhj^hhhj_hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_jj_jjjuh1hhhhj1hNhNubj)}(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}(hjB`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.}(hjV`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.}(hje`hhhNhNubah}(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.}(hjt`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&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌadjust_resource (C function)c.adjust_resourcehNtauh1hhj1hhhNhNubh)}(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}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM3ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhj`hM3ubj)}(hadjust_resourceh]j)}(hadjust_resourceh]hadjust_resource}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhj`hM3ubj/)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j5)}(hstruct resource *resh](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 reftargetjamodnameN classnameNjwjz)}j}]j)}jsj`sbc.adjust_resourceasbuh1hhj`ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hjh]h*}(hj,ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hresh]hres}(hj9ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjUahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWamodnameN classnameNjwjz)}j}]jac.adjust_resourceasbuh1hhjNaubh)}(h h]h }(hjsahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNaubj)}(hstarth]hstart}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(hresource_size_t sizeh](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 }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hsizeh]hsize}(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`hM3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj`hhhj`hM3ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM3hj`hhubj)}(hhh]j)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM*hjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hM3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj bjj bjjjuh1hhhhj1hNhNubj)}(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.)}(hj4bh]hstruct resource *res}(hj6bhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2bubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM+hj.bubjD)}(hhh]j)}(hresource to modifyh]hresource to modify}(hjMbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIbhM+hjJbubah}(h]h ]h"]h$]h&]uh1jChj.bubeh}(h]h ]h"]h$]h&]uh1j!hjIbhM+hj+bubj")}(h*``resource_size_t start`` new start value h](j()}(h``resource_size_t start``h]j.)}(hjmbh]hresource_size_t start}(hjobhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkbubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM,hjgbubjD)}(hhh]j)}(hnew start valueh]hnew start value}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhM,hjbubah}(h]h ]h"]h$]h&]uh1jChjgbubeh}(h]h ]h"]h$]h&]uh1j!hjbhM,hj+bubj")}(h"``resource_size_t size`` new size h](j()}(h``resource_size_t size``h]j.)}(hjbh]hresource_size_t size}(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)}(hnew sizeh]hnew size}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhM-hjbubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hjbhM-hj+bubeh}(h]h ]h"]h$]h&]uh1jhjbubj)}(h**Description**h]j)}(hjbh]h Description}(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)}(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.}(hjbhhhNhNubah}(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&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__request_region (C function)c.__request_regionhNtauh1hhj1hhhNhNubh)}(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}(hj&chhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"chhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM$ubh)}(h h]h }(hj4chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"chhhj3chM$ubh)}(hhh]j)}(hresourceh]hresource}(hjEchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjGcmodnameN classnameNjwjz)}j}]j)}js__request_regionsbc.__request_regionasbuh1hhj"chhhj3chM$ubh)}(h h]h }(hjfchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"chhhj3chM$ubj)}(hjh]h*}(hjtchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"chhhj3chM$ubj)}(h__request_regionh]j)}(hjcch]h__request_region}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"chhhj3chM$ubj/)}(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}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(hresourceh]hresource}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]jacc.__request_regionasbuh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hparenth]hparent}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]jacc.__request_regionasbuh1hhj dubh)}(h h]h }(hj1dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj dubj)}(hstarth]hstart}(hj?dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj dubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(hresource_size_t nh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj[dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]dmodnameN classnameNjwjz)}j}]jacc.__request_regionasbuh1hhjTdubh)}(h h]h }(hjydhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTdubj)}(hj h]hn}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hcharh]hchar}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hnameh]hname}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(h int flagsh](h)}(hinth]hint}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hj ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hflagsh]hflags}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj"chhhj3chM$ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhj3chM$ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj3chM$hjchhubj)}(hhh]j)}(h!create a new busy resource regionh]h!create a new busy resource region}(hjBehhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj?ehhubah}(h]h ]h"]h$]h&]uh1jhjchhhj3chM$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjZejjZejjjuh1hhhhj1hNhNubj)}(hX**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size ``const char *name`` reserving caller's ID string ``int flags`` IO resource flagsh](j)}(h**Parameters**h]j)}(hjdeh]h Parameters}(hjfehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbeubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM!hj^eubj)}(hhh](j")}(h7``struct resource *parent`` parent resource descriptor h](j()}(h``struct resource *parent``h]j.)}(hjeh]hstruct resource *parent}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj}eubjD)}(hhh]j)}(hparent resource descriptorh]hparent resource descriptor}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjeubah}(h]h ]h"]h$]h&]uh1jChj}eubeh}(h]h ]h"]h$]h&]uh1j!hjehMhjzeubj")}(h1``resource_size_t start`` resource start address h](j()}(h``resource_size_t start``h]j.)}(hjeh]hresource_size_t start}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjeubjD)}(hhh]j)}(hresource start addressh]hresource start address}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjeubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjehMhjzeubj")}(h+``resource_size_t n`` resource region size h](j()}(h``resource_size_t n``h]j.)}(hjeh]hresource_size_t n}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM hjeubjD)}(hhh]j)}(hresource region sizeh]hresource region size}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj fhM hj fubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hj fhM hjzeubj")}(h2``const char *name`` reserving caller's ID string h](j()}(h``const char *name``h]j.)}(hj.fh]hconst char *name}(hj0fhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,fubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM!hj(fubjD)}(hhh]j)}(hreserving caller's ID stringh]hreserving caller’s ID string}(hjGfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCfhM!hjDfubah}(h]h ]h"]h$]h&]uh1jChj(fubeh}(h]h ]h"]h$]h&]uh1j!hjCfhM!hjzeubj")}(h``int flags`` IO resource flagsh](j()}(h ``int flags``h]j.)}(hjgfh]h int flags}(hjifhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjefubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM#hjafubjD)}(hhh]j)}(hIO resource flagsh]hIO resource flags}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM"hj}fubah}(h]h ]h"]h$]h&]uh1jChjafubeh}(h]h ]h"]h$]h&]uh1j!hj|fhM#hjzeubeh}(h]h ]h"]h$]h&]uh1jhj^eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__release_region (C function)c.__release_regionhNtauh1hhj1hhhNhNubh)}(hhh](h)}(hYvoid __release_region (struct resource *parent, resource_size_t start, resource_size_t n)h]h)}(hXvoid __release_region(struct resource *parent, resource_size_t start, resource_size_t n)h](h)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMFubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjfhMFubj)}(h__release_regionh]j)}(h__release_regionh]h__release_region}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjfhhhjfhMFubj/)}(hC(struct resource *parent, resource_size_t start, resource_size_t n)h](j5)}(hstruct resource *parenth](j;)}(hj>h]hstruct}(hjfhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hj ghhhNhNubah}(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}]j)}jsjfsbc.__release_regionasbuh1hhjfubh)}(h h]h }(hjh]hstruct}(hjihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|iubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|iubh)}(hhh]j)}(hdeviceh]hdevice}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]j)}jsjfisbc.devm_request_resourceasbuh1hhj|iubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|iubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|iubj)}(hdevh]hdev}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|iubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxiubj5)}(hstruct resource *rooth](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)}(hresourceh]hresource}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj jubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]jic.devm_request_resourceasbuh1hhjiubh)}(h h]h }(hj.jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjh]hstruct}(hjbjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^jubh)}(h h]h }(hjojhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^jubh)}(hhh]j)}(hresourceh]hresource}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}jubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]jic.devm_request_resourceasbuh1hhj^jubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^jubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^jubj)}(hnewh]hnew}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxiubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj?ihhhjQihM4ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;ihhhjQihM4ubah}(h]j6iah ](jjeh"]h$]h&]jj)jhuh1hhjQihM4hj8ihhubj)}(hhh]j)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM#hjjhhubah}(h]h ]h"]h$]h&]uh1jhj8ihhhjQihM4ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhj1hNhNubj)}(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'hjjubj)}(hhh](j")}(h@``struct device *dev`` device for which to request the resource h](j()}(h``struct device *dev``h]j.)}(hj$kh]hstruct device *dev}(hj&khhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"kubah}(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}(hj=khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9khM$hj:kubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hj9khM$hjkubj")}(hW``struct resource *root`` root of the resource tree from which to request the resource h](j()}(h``struct resource *root``h]j.)}(hj]kh]hstruct resource *root}(hj_khhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[kubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM%hjWkubjD)}(hhh]j)}(hh]hstruct}(hjqlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmlubh)}(h h]h }(hj~lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmlubh)}(hhh]j)}(hdeviceh]hdevice}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j)}jsjWlsbc.devm_release_resourceasbuh1hhjmlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmlubj)}(hdevh]hdev}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjilubj5)}(hstruct resource *newh](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)}(hresourceh]hresource}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jlc.devm_release_resourceasbuh1hhjlubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hj-mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hnewh]hnew}(hj:mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjilubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0lhhhjBlhMZubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,lhhhjBlhMZubah}(h]j'lah ](jjeh"]h$]h&]jj)jhuh1hhjBlhMZhj)lhhubj)}(hhh]j)}(h'release a previously requested resourceh]h'release a previously requested resource}(hjdmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMThjamhhubah}(h]h ]h"]h$]h&]uh1jhj)lhhhjBlhMZubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|mjj|mjjjuh1hhhhj1hNhNubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMXhjmubj)}(hhh](j")}(h@``struct device *dev`` device for which to release the resource h](j()}(h``struct device *dev``h]j.)}(hjmh]hstruct device *dev}(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.chMUhjmubjD)}(hhh]j)}(h(device for which to release the resourceh]h(device for which to release the resource}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMUhjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhMUhjmubj")}(h?``struct resource *new`` descriptor of the resource to release h](j()}(h``struct resource *new``h]j.)}(hjmh]hstruct resource *new}(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.chMVhjmubjD)}(hhh]j)}(h%descriptor of the resource to releaseh]h%descriptor of the resource to release}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMVhjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhMVhjmubeh}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMXhjmubj)}(hGReleases a resource previously requested using devm_request_resource().h]hGReleases a resource previously requested using devm_request_resource().}(hj/nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMXhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)devm_request_free_mem_region (C function)c.devm_request_free_mem_regionhNtauh1hhj1hhhNhNubh)}(hhh](h)}(hnstruct resource * devm_request_free_mem_region (struct device *dev, struct resource *base, unsigned long size)h]h)}(hlstruct resource *devm_request_free_mem_region(struct device *dev, struct resource *base, unsigned long size)h](j;)}(hj>h]hstruct}(hj^nhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZnhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjlnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZnhhhjknhMubh)}(hhh]j)}(hresourceh]hresource}(hj}nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjznubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j)}jsdevm_request_free_mem_regionsbc.devm_request_free_mem_regionasbuh1hhjZnhhhjknhMubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZnhhhjknhMubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZnhhhjknhMubj)}(hdevm_request_free_mem_regionh]j)}(hjnh]hdevm_request_free_mem_region}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZnhhhjknhMubj/)}(h?(struct device *dev, struct resource *base, unsigned long size)h](j5)}(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}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]jnc.devm_request_free_mem_regionasbuh1hhjnubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hj"ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hdevh]hdev}(hj/ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hstruct resource *baseh](j;)}(hj>h]hstruct}(hjHohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDoubh)}(h h]h }(hjUohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDoubh)}(hhh]j)}(hresourceh]hresource}(hjfohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhomodnameN classnameNjwjz)}j}]jnc.devm_request_free_mem_regionasbuh1hhjDoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubj)}(hbaseh]hbase}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned long sizeh](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)}(hsizeh]hsize}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjZnhhhjknhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVnhhhjknhMubah}(h]jQnah ](jjeh"]h$]h&]jj)jhuh1hhjknhMhjSnhhubj)}(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&]uh1jhjSnhhhjknhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2pjj2pjjjuh1hhhhj1hNhNubj)}(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)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:pubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj6pubj)}(hhh](j")}(h=``struct device *dev`` device struct to bind the resource to h](j()}(h``struct device *dev``h]j.)}(hj[ph]hstruct device *dev}(hj]phhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYpubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjUpubjD)}(hhh]j)}(h%device struct to bind the resource toh]h%device struct to bind the resource to}(hjtphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpphMhjqpubah}(h]h ]h"]h$]h&]uh1jChjUpubeh}(h]h ]h"]h$]h&]uh1j!hjpphMhjRpubj")}(h3``struct resource *base`` resource tree to look in h](j()}(h``struct resource *base``h]j.)}(hjph]hstruct resource *base}(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)}(hresource tree to look inh]hresource tree to look in}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjphMhjRpubj")}(hA``unsigned long size`` size in bytes of the device memory to add h](j()}(h``unsigned long size``h]j.)}(hjph]hunsigned long 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.chMhjpubjD)}(hhh]j)}(h)size in bytes of the device memory to addh]h)size in bytes of the device memory to add}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjphMhjRpubeh}(h]h ]h"]h$]h&]uh1jhj6pubj)}(h**Description**h]j)}(hjqh]h Description}(hj qhhhNhNubah}(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.chMhj6pubj)}(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.chMhj6pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"alloc_free_mem_region (C function)c.alloc_free_mem_regionhNtauh1hhj1hhhNhNubh)}(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}(hjMqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIqhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hj[qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIqhhhjZqhMubh)}(hhh]j)}(hresourceh]hresource}(hjlqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnqmodnameN classnameNjwjz)}j}]j)}jsalloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhjIqhhhjZqhMubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIqhhhjZqhMubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIqhhhjZqhMubj)}(halloc_free_mem_regionh]j)}(hjqh]halloc_free_mem_region}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIqhhhjZqhMubj/)}(hR(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j5)}(hstruct resource *baseh](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)}(hresourceh]hresource}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]jqc.alloc_free_mem_regionasbuh1hhjqubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hbaseh]hbase}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(hunsigned long sizeh](h)}(hunsignedh]hunsigned}(hj7rhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3rubh)}(h h]h }(hjErhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3rubh)}(hlongh]hlong}(hjSrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3rubh)}(h h]h }(hjarhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3rubj)}(hsizeh]hsize}(hjorhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3rubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(hunsigned long alignh](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 }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(halignh]halign}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(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}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hnameh]hname}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIqhhhjZqhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjEqhhhjZqhMubah}(h]j@qah ](jjeh"]h$]h&]jj)jhuh1hhjZqhMhjBqhhubj)}(hhh]j)}(h'find a free region relative to **base**h](hfind a free region relative to }(hjGshhhNhNubj)}(h**base**h]hbase}(hjOshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGsubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjDshhubah}(h]h ]h"]h$]h&]uh1jhjBqhhhjZqhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmsjjmsjjjuh1hhhhj1hNhNubj)}(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)}(hjwsh]h Parameters}(hjyshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjusubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjqsubj)}(hhh](j")}(hE``struct resource *base`` resource that will parent the new resource h](j()}(h``struct resource *base``h]j.)}(hjsh]hstruct resource *base}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjsubjD)}(hhh]j)}(h*resource that will parent the new resourceh]h*resource that will parent the new resource}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjsubj")}(hI``unsigned long size`` size in bytes of memory to allocate from **base** h](j()}(h``unsigned long size``h]j.)}(hjsh]hunsigned long size}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjsubjD)}(hhh]j)}(h1size in bytes of memory to allocate from **base**h](h)size in bytes of memory to allocate from }(hjshhhNhNubj)}(h**base**h]hbase}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjsubj")}(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}(hj/thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+thMhj,tubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hj+thMhjsubj")}(h#``const char *name`` resource name h](j()}(h``const char *name``h]j.)}(hjOth]hconst char *name}(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)}(h resource nameh]h resource name}(hjhthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdthMhjetubah}(h]h ]h"]h$]h&]uh1jChjItubeh}(h]h ]h"]h$]h&]uh1j!hjdthMhjsubeh}(h]h ]h"]h$]h&]uh1jhjqsubj)}(h**Description**h]j)}(hjth]h Description}(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.chMhjqsubj)}(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 }(hjthhhNhNubj)}(h**base**h]hbase}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh, range in the span of }(hjthhhNhNubj)}(h**base**h]hbase}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjqsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubeh}(h]resources-managementah ]h"]resources managementah$]h&]uh1hhjM.hhhhhMubh)}(hhh](h)}(h MTRR Handlingh]h MTRR Handling}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌarch_phys_wc_add (C function)c.arch_phys_wc_addhNtauh1hhjthhhNhNubh)}(hhh](h)}(h=int arch_phys_wc_add (unsigned long base, unsigned long size)h]h)}(hh]hstruct}(hjxhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hhh]j)}(hsecurity_hook_listh]hsecurity_hook_list}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsjxsbc.security_add_hooksasbuh1hhjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hhooksh]hhooks}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(h int counth](h)}(hinth]hint}(hj yhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hcounth]hcount}(hj(yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(hconst struct lsm_id *lsmidh](j;)}(hjh]hconst}(hjAyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=yubh)}(h h]h }(hjNyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=yubj;)}(hj>h]hstruct}(hj\yhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=yubh)}(h h]h }(hjiyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=yubh)}(hhh]j)}(hlsm_idh]hlsm_id}(hjzyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|ymodnameN classnameNjwjz)}j}]jxc.security_add_hooksasbuh1hhj=yubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=yubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=yubj)}(hlsmidh]hlsmid}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=yubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjYxhhhjkxhMfubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUxhhhjkxhMfubah}(h]jPxah ](jjeh"]h$]h&]jj)jhuh1hhjkxhMfhjRxhhubj)}(hhh]j)}(h&Add a modules hooks to the hook lists.h]h&Add a modules hooks to the hook lists.}(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&]uh1jhjRxhhhjkxhMfubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhj whNhNubj)}(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)}(hjyh]h Parameters}(hjzhhhNhNubah}(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.chMchjyubj)}(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}(hj zhhhNhNubah}(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}(hj7zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3zhM`hj4zubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hj3zhM`hjzubj")}(h)``int count`` the number of hooks to add h](j()}(h ``int count``h]j.)}(hjWzh]h int count}(hjYzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjQzubjD)}(hhh]j)}(hthe number of hooks to addh]hthe number of hooks to add}(hjpzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlzhMahjmzubah}(h]h ]h"]h$]h&]uh1jChjQzubeh}(h]h ]h"]h$]h&]uh1j!hjlzhMahjzubj")}(hV``const struct lsm_id *lsmid`` the identification information for the security module h](j()}(h``const struct lsm_id *lsmid``h]j.)}(hjzh]hconst struct lsm_id *lsmid}(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.chMbhjzubjD)}(hhh]j)}(h6the identification information for the security moduleh]h6the identification information for the security module}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhMbhjzubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjzhMbhjzubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjyubj)}(h;Each LSM has to register its hooks with the infrastructure.h]h;Each LSM has to register its hooks with the infrastructure.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_blob_alloc (C function)c.lsm_blob_allochNtauh1hhj whhhNhNubh)}(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}(hj1{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}(hjM{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI{ubh)}(h h]h }(hj[{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI{ubj)}(hjh]h*}(hji{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI{ubj)}(hjh]h*}(hjv{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI{ubj)}(hdesth]hdest}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE{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)}jsj3{sbc.lsm_blob_allocasbuh1hhj{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-uh1j4hjE{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-uh1j4hjE{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&]jjqjjW|jjW|jjjuh1hhhhj whNhNubj)}(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)}(hja|h]h Parameters}(hjc|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.chMhjz|ubjD)}(hhh]j)}(hthe destination for the blobh]hthe destination for the blob}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jChjz|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhjw|ubj")}(h%``size_t size`` the size of the blob h](j()}(h``size_t size``h]j.)}(hj|h]h size_t size}(hj|hhhNhNubah}(h]h ]h"]h$]h&]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 size of the blobh]hthe size of the blob}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhjw|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}hMhjw|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}(hjC}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.}(hjR}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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhj whhhNhNubh)}(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 }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}}hhhj}hMubj)}(hlsm_cred_alloch]j)}(hlsm_cred_alloch]hlsm_cred_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(struct cred *cred, gfp_t gfp)h](j5)}(hstruct cred *credh](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}sbc.lsm_cred_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)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj3~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5~modnameN classnameNjwjz)}j}]j}c.lsm_cred_allocasbuh1hhj,~ubh)}(h h]h }(hjQ~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-juh1hjjhjy}hhhj}hMubah}(h]jt}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjv}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&]uh1jhjv}hhhj}hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhj whNhNubj)}(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)}(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")}(h1``struct cred *cred`` the cred that needs a blob h](j()}(h``struct cred *cred``h]j.)}(hj~h]hstruct cred *cred}(hj~hhhNhNubah}(h]h ]h"]h$]h&]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 cred that needs a blobh]hthe cred that needs a blob}(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`` 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.chMhj~ubjD)}(hhh]j)}(hallocation typeh]hallocation type}(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)}(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 the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjThhhNhNubah}(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.}(hjchhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_early_cred (C function)c.lsm_early_credhNtauh1hhj whhhNhNubh)}(hhh](h)}(h'void lsm_early_cred (struct cred *cred)h]h)}(h&void lsm_early_cred(struct cred *cred)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)}(hlsm_early_credh]j)}(hlsm_early_credh]hlsm_early_cred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct cred *cred)h]j5)}(hstruct cred *credh](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)}jsjsbc.lsm_early_credasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(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)}(h4during initialization allocate a composite cred blobh]h4during initialization allocate a composite cred blob}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjnubj)}(hhh]j")}(h1``struct cred *cred`` the cred that needs a blob h](j()}(h``struct cred *cred``h]j.)}(hjh]hstruct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 cred that needs a blobh]hthe cred that needs a blob}(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&]uh1jhjnubj)}(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.chMhjnubj)}(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.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_file_alloc (C function)c.lsm_file_allochNtauh1hhj whhhNhNubh)}(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&]uh1hhjhhhj!hMubj)}(hlsm_file_alloch]j)}(hlsm_file_alloch]hlsm_file_alloc}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj!hMubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](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)}(hfileh]hfile}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]j)}jsj6sbc.lsm_file_allocasbuh1hhjLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj!hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj!hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hMhjhhubj)}(hhh]j)}(hallocate a composite file blobh]hallocate a composite file 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&]uh1jhjhhhj!hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)hMhj ubah}(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.chMhjubj)}(h*Allocate the file blob for all the modulesh]h*Allocate the file blob for all the modules}(hjehhhNhNubah}(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.}(hjthhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhj whhhNhNubh)}(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}(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_inode_alloch]j)}(hlsm_inode_alloch]hlsm_inode_alloc}(hjĂhhhNhNubah}(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: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)}jsjƂsbc.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}(hj9hhhNhNubah}(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}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]jc.lsm_inode_allocasbuh1hhjNubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hgfph]hgfp}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hallocate a composite inode blobh]hallocate a composite inode 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&]jjqjjÃjjÃjjjuh1hhhhj whNhNubj)}(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)}(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")}(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}(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)}(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&]uh1jhjǃubj)}(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.chMhjǃubj)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode 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.chMhjǃubj)}(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.chMhjǃubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_task_alloc (C function)c.lsm_task_allochNtauh1hhj whhhNhNubh)}(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}(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)}(hlsm_task_alloch]j)}(hlsm_task_alloch]hlsm_task_alloc}(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 *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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjׄsbc.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}(hjJhhhNhNubah}(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)}(hallocate a composite task blobh]hallocate a composite task blob}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj„hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 task_struct *task`` the task that needs a blob h](j()}(h``struct task_struct *task``h]j.)}(hjh]hstruct task_struct *task}(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 task that needs a blobh]hthe task 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 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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhj whhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhjRhMubj)}(h lsm_ipc_alloch]j)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhjRhMubj/)}(h(struct kern_ipc_perm *kip)h]j5)}(hstruct kern_ipc_perm *kiph](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)}jsjgsbc.lsm_ipc_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)}(hkiph]hkip}(hjچhhhNhNubah}(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@hhhjRhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj9hhubj)}(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&]uh1jhj9hhhjRhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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 hj ubj)}(hhh]j")}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j()}(h``struct kern_ipc_perm *kip``h]j.)}(hjEh]hstruct kern_ipc_perm *kip}(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)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(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:287: ./security/security.chM hj ubj)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc 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.chM hj ubj)}(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.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_key_alloc (C function)c.lsm_key_allochNtauh1hhj whhhNhNubh)}(hhh](h)}(h#int lsm_key_alloc (struct key *key)h]h)}(h"int lsm_key_alloc(struct key *key)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)}(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 hjЇhhhjhMubj/)}(h(struct key *key)h]j5)}(hstruct key *keyh](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)}(hkeyh]hkey}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_key_allocasbuh1hhj ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hkeyh]hkey}(hjjhhhNhNubah}(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ЇhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj̇hhhjhMubah}(h]jLJah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjɇhhubj)}(hhh]j)}(hallocate a composite key blobh]hallocate a composite key 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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 key *key`` the key that needs a blob h](j()}(h``struct key *key``h]j.)}(hjՈh]hstruct key *key}(hj׈hhhNhNubah}(h]h ]h"]h$]h&]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 key that needs a blobh]hthe key 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)}(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 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.chMhjubj)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhj whhhNhNubh)}(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}(hjdhhhNhNubah}(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 }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhjrhM*ubj)}(hlsm_msg_msg_alloch]j)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhjrhM*ubj/)}(h(struct msg_msg *mp)h]j5)}(hstruct msg_msg *mph](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)}(hmsg_msgh]hmsg_msg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_msg_msg_allocasbuh1hhjubh)}(h h]h }(hj߉hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmph]hmp}(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`hhhjrhM*ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj\hhhjrhM*ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhM*hjYhhubj)}(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#hj!hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhM*ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhj whNhNubj)}(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)}(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.chM'hj@ubj)}(hhh]j")}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j()}(h``struct msg_msg *mp``h]j.)}(hjeh]hstruct msg_msg *mp}(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)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(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)Allocate the ipc blob for all the modulesh]h)Allocate the ipc 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.chM&hj@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.chM(hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhj whhhNhNubh)}(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.chM8ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM8ubj)}(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 hjhhhjhM8ubj/)}(h(struct block_device *bdev)h]j5)}(hstruct block_device *bdevh](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)}(h block_deviceh]h block_device}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_bdev_allocasbuh1hhj-ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hjh]h*}(hj}hhhNhNubah}(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-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&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj̋jj̋jjjuh1hhhhj whNhNubj)}(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)}(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.chM5hjЋubj)}(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&]uh1jhj hM2hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM2hjubah}(h]h ]h"]h$]h&]uh1jhjЋubj)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(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.chM4hjЋubj)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4hjЋubj)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM6hjЋubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_early_task (C function)c.lsm_early_taskhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMLubj)}(hlsm_early_taskh]j)}(hlsm_early_taskh]hlsm_early_task}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMLubj/)}(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 }(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.lsm_early_taskasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(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.hjhhhjhMLubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhjhMLubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMLhjyhhubj)}(hhh]j)}(h4during initialization allocate a composite task blobh]h4during initialization allocate a composite task blob}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhjAhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMLubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhj whNhNubj)}(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)}(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.chMKhj`ubj)}(hhh]j")}(h8``struct task_struct *task`` the task that needs a blob h](j()}(h``struct task_struct *task``h]j.)}(hjh]hstruct task_struct *task}(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)}(hthe task that needs a blobh]hthe task that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMHhj|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.chMJhj`ubj)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hj֍hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhj whhhNhNubh)}(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.chM\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM\ubj)}(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 hjhhhjhM\ubj/)}(h(struct super_block *sb)h]j5)}(hstruct super_block *sbh](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)}(h super_blockh]h super_block}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsj(sbc.lsm_superblock_allocasbuh1hhj>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-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$allocate a composite superblock blobh]h$allocate a composite superblock blob}(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&]uh1jhjhhhjhM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjݎjjݎjjjuh1hhhhj whNhNubj)}(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)}(hjAh]h Description}(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.chMXhjubj)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hjWhhhNhNubah}(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.}(hjfhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhj whhhNhNubh)}(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}(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)}(hlsm_fill_user_ctxh]j)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMrubj/)}(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}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_fill_user_ctxasbuh1hhjΏubh)}(h h]h }(hjhhhNhNubah}(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*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΏubj)}(huctxh]huctx}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjΏubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjʏubj5)}(h u32 *uctx_lenh](h)}(hhh]j)}(hu32h]hu32}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[modnameN classnameNjwjz)}j}]j c.lsm_fill_user_ctxasbuh1hhjRubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(huctx_lenh]huctx_len}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjʏubj5)}(h void *valh](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)}(hvalh]hval}(hjԐhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjʏubj5)}(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}]j c.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-uh1j4hjʏubj5)}(hu64 idh](h)}(hhh]j)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj:modnameN classnameNjwjz)}j}]j c.lsm_fill_user_ctxasbuh1hhj1ubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hidh]hid}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjʏubj5)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.lsm_fill_user_ctxasbuh1hhjyubh)}(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-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#Fill a user space lsm_ctx structureh]h#Fill a user space lsm_ctx structure}(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&]uh1jhjhhhjhMrubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(hj0hhhNhNubah}(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.)}(hjPh]h u32 *uctx_len}(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.chMehjJubjD)}(hhh]j)}(h4available uctx size (input), used uctx size (output)h]h4available uctx size (input), used uctx size (output)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMehjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMehjubj")}(h(``void *val`` the new LSM context value h](j()}(h ``void *val``h]j.)}(hjh]h void *val}(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)}(hthe new LSM context valueh]hthe new LSM context value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMfhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMfhjubj")}(h9``size_t val_len`` the size of the new LSM context value h](j()}(h``size_t val_len``h]j.)}(hj’h]hsize_t val_len}(hjĒhhhNhNubah}(h]h ]h"]h$]h&]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 size of the new LSM context valueh]h%the size of the new LSM context value}(hjےhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjגhMghjؒubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjגhMghjubj")}(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.)}(hj4h]h u64 flags}(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.chMihj.ubjD)}(hhh]j)}(hLSM defined flagsh]hLSM defined flags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMihjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMihjubeh}(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.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 }(hjhhhNhNubj)}(h**uctx**h]huctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: is NULL simply calculate the required size to output via }(hjhhhNhNubj)}(h **utc_len**h]hutc_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and return success.}(hjhhhNhNubeh}(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.}(hjhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhj whhhNhNubh)}(hhh](h)}(hh]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 reftargetj_modnameN classnameNjwjz)}j}]j)}jsj sb!c.security_binder_set_context_mgrasbuh1hhj ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(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)}(h&Check if becoming binder ctx mgr is okh]h&Check if becoming binder ctx mgr is ok}(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&]uh1jhjܓhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjڔjjڔjjjuh1hhhhj whNhNubj)}(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}(hj@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)}(hBCheck whether **mgr** is allowed to be the binder context manager.h](hCheck whether }(hjThhhNhNubj)}(h**mgr**h]hmgr}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh- is allowed to be the binder context manager.}(hjThhhNhNubeh}(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)}(hjwh]hReturn}(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)}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_binder_transaction (C function)c.security_binder_transactionhNtauh1hhj whhhNhNubh)}(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}(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_binder_transactionh]j)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(hjݕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjٕubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjʕhMubj/)}(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 }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsjߕsbc.security_binder_transactionasbuh1hhjubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfromh]hfrom}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *toh](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 reftargetjmodnameN classnameNjwjz)}j}]jNc.security_binder_transactionasbuh1hhjubh)}(h h]h }(hjݖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htoh]hto}(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 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&]uh1jhjhhhjʕhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhj whNhNubj)}(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)}(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,``const struct cred *from`` sending process h](j()}(h``const struct cred *from``h]j.)}(hjch]hconst struct cred *from}(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)}(hsending processh]hsending process}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhjZubj")}(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!hjhMhjZubeh}(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)}(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&]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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhj whhhNhNubh)}(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}(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_binder_transfer_binderh]j)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjuhMubj/)}(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 }(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}]j)}jsjsb!c.security_binder_transfer_binderasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *toh](j;)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj-ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj;)}(hj>h]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj-ubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hcredh]hcred}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j!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)}(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.hjchhhjuhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(hhh]j)}(h%Check if a binder transfer is allowedh]h%Check if a binder transfer 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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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-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)}(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.)}(hjGh]hconst struct cred *to}(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)}(hreceiving processh]hreceiving process}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(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)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. is allowed to transfer a binder reference 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.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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhj whhhNhNubh)}(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 }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(hsecurity_binder_transfer_fileh]j)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMubj/)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j5)}(hconst struct cred *fromh](j;)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj;)}(hj>h]hstruct}(hjjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKubh)}(h h]h }(hjwhhhNhNubah}(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)}jsj5sbc.security_binder_transfer_fileasbuh1hhjKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hfromh]hfrom}(hjÛhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGubj5)}(hconst struct cred *toh](j;)}(hjh]hconst}(hjܛhhhNhNubah}(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)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_binder_transfer_fileasbuh1hhj؛ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj؛ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؛ubj)}(htoh]hto}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj؛ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGubj5)}(hconst struct file *fileh](j;)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_binder_transfer_fileasbuh1hhjcubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hj̜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hfileh]hfile}(hjٜhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(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&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(hjDh]hconst struct cred *from}(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)}(hsending processh]hsending process}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hjYhMhj;ubj")}(h,``const struct cred *to`` receiving process h](j()}(h``const struct cred *to``h]j.)}(hj}h]hconst struct cred *to}(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.chM hjwubjD)}(hhh]j)}(hreceiving processh]hreceiving process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj;ubj")}(h3``const struct file *file`` file being transferred 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.chM hjubjD)}(hhh]j)}(hfile being transferredh]hfile being transferred}(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)}(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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**to**h]hto}(hj3hhhNhNubah}(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)}(hjNh]hReturn}(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#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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhj whhhNhNubh)}(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}(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_ptrace_access_checkh]j)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM$ubj/)}(h.(struct task_struct *child, unsigned int mode)h](j5)}(hstruct task_struct *childh](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 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_ptrace_access_checkasbuh1hhj̞ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̞ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̞ubj)}(hchildh]hchild}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj̞ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjȞubj5)}(hunsigned int modeh](h)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hinth]hint}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hmodeh]hmode}(hjzhhhNhNubah}(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)}(hCheck if tracing is allowedh]hCheck if tracing 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&]uh1jhjhhhjhM$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjubj)}(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.chMhjߟubjD)}(hhh]j)}(htarget processh]htarget process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjߟubeh}(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}(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)}(hPTRACE_MODE flagsh]hPTRACE_MODE flags}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hMhjܟ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.chMhjubj)}(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 }(hjohhhNhNubj)}(h **child**h]hchild}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhX5 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.}(hjohhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_ptrace_traceme (C function)c.security_ptrace_tracemehNtauh1hhj whhhNhNubh)}(hhh](h)}(h8int security_ptrace_traceme (struct task_struct *parent)h]h)}(h7int security_ptrace_traceme(struct task_struct *parent)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.chM3ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӠhhhjhM3ubj)}(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 hjӠhhhjhM3ubj/)}(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 }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsjsbc.security_ptrace_tracemeasbuh1hhjubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjӠhhhjhM3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjϠhhhjhM3ubah}(h]jʠah ](jjeh"]h$]h&]jj)jhuh1hhjhM3hj̠hhubj)}(hhh]j)}(hCheck if tracing is allowedh]hCheck if tracing 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̠hhhjhM3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 *parent`` tracing process h](j()}(h``struct task_struct *parent``h]j.)}(hjءh]hstruct task_struct *parent}(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)}(htracing processh]htracing process}(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&]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 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}(hj1hhhNhNubah}(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}(hjChhhNhNubah}(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-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.chM1hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_capget (C function)c.security_capgethNtauh1hhj whhhNhNubh)}(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}(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_capgeth]j)}(hsecurity_capgeth]hsecurity_capget}(hjĢhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMFubj/)}(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)}jsjƢsbc.security_capgetasbuh1hhjܢubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjܢubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܢubj)}(htargeth]htarget}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjܢubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjآubj5)}(hkernel_cap_t *effectiveh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j5c.security_capgetasbuh1hhjiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h effectiveh]h effective}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjآubj5)}(hkernel_cap_t *inheritableh](h)}(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}]j5c.security_capgetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h inheritableh]h inheritable}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjآubj5)}(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}]j5c.security_capgetasbuh1hhjubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h permittedh]h permitted}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjآubeh}(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)}(h%Get the capability sets for a processh]h%Get the capability sets for a process}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM9hjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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")}(h4``const struct task_struct *target`` target process h](j()}(h$``const struct task_struct *target``h]j.)}(hjh]h const struct task_struct *target}(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)}(htarget processh]htarget process}(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")}(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&]uh1jhj hM;hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM;hjubj")}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j()}(h``kernel_cap_t *inheritable``h]j.)}(hj0h]hkernel_cap_t *inheritable}(hj2hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhM<hjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhM<hjubj")}(h5``kernel_cap_t *permitted`` permitted capability set h](j()}(h``kernel_cap_t *permitted``h]j.)}(hjih]hkernel_cap_t *permitted}(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.chM=hjcubjD)}(hhh]j)}(hpermitted capability seth]hpermitted capability set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hM=hjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hM=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.chM?hjubj)}(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 }(hjhhhNhNubj)}(h **effective**h]h effective}(hj¥hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**inheritable**h]h inheritable}(hjԥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and }(hjhhhNhNubj)}(h **permitted**h]h permitted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh capability sets for the }(hjhhhNhNubj)}(h **target**h]htarget}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hjhhhNhNubj)}(h **target**h]htarget}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh process.}(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.chMDhjubj)}(hh]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_capsetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(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 }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]jc.security_capsetasbuh1hhjubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst kernel_cap_t *effectiveh](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&]uh1jhjubah}(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 effectiveh]h effective}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst kernel_cap_t *inheritableh](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)}(h kernel_cap_th]h kernel_cap_t}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]jc.security_capsetasbuh1hhjubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h inheritableh]h inheritable}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst kernel_cap_t *permittedh](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}(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*}(hjΨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h permittedh]h permitted}(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.hjfhhhjxhM[ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbhhhjxhM[ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhM[hj_hhubj)}(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&]uh1jhj_hhhjxhM[ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.chMShj!ubj)}(hhh](j")}(h<``struct cred *new`` new credentials for the target process h](j()}(h``struct cred *new``h]j.)}(hjFh]hstruct cred *new}(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.chMPhj@ubjD)}(hhh]j)}(h&new credentials for the target processh]h&new credentials for the target process}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hMPhj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hMPhj=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}(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.chMQhjyubjD)}(hhh]j)}(h)current credentials of the target processh]h)current credentials of the target process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMQhjubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjhMQhj=ubj")}(h;``const kernel_cap_t *effective`` effective capability set h](j()}(h!``const kernel_cap_t *effective``h]j.)}(hjh]hconst kernel_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.chMRhjubjD)}(hhh]j)}(heffective capability seth]heffective capability set}(hjѩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͩhMRhjΩubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjͩhMRhj=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}(hj hhhNhNubah}(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}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hMThj@ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMThj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj)}(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.chMVhj!ubj)}(hbSet the **effective**, **inheritable**, and **permitted** capability sets for the current process.h](hSet the }(hj{hhhNhNubj)}(h **effective**h]h effective}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh, }(hj{hhhNhNubj)}(h**inheritable**h]h inheritable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh, and }(hj{hhhNhNubj)}(h **permitted**h]h permitted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh) capability sets for the current process.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhj!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.chMYhj!ubj)}(h6Returns 0 and update **new** if permission is granted.h](hReturns 0 and update }(hjتhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjتubh if permission is granted.}(hjتhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_capable (C function)c.security_capablehNtauh1hhj whhhNhNubh)}(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.chMqubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hMqubj)}(hsecurity_capableh]j)}(hsecurity_capableh]hsecurity_capable}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj'hMqubj/)}(hP(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hj~hhhNhNubah}(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_capableasbuh1hhjRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hcredh]hcred}(hjʫhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hstruct user_namespace *nsh](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)}(huser_namespaceh]huser_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_capableasbuh1hhj߫ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj߫ubj)}(hjh]h*}(hj-hhhNhNubah}(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-uh1j4hjNubj5)}(hint caph](h)}(hinth]hint}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hcaph]hcap}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hunsigned int optsh](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)}(hoptsh]hopts}(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'hMqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj'hMqubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMqhjhhubj)}(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'hMqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMfhjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMfhj"ubj")}(h-``struct user_namespace *ns`` user namespace h](j()}(h``struct user_namespace *ns``h]j.)}(hjdh]hstruct user_namespace *ns}(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.chMghj^ubjD)}(hhh]j)}(huser namespaceh]huser namespace}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMghjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMghj"ubj")}(h!``int cap`` capability requested h](j()}(h ``int cap``h]j.)}(hjh]hint cap}(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)}(hcapability requestedh]hcapability requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhhj"ubj")}(h/``unsigned int opts`` capability check options h](j()}(h``unsigned int opts``h]j.)}(hj֭h]hunsigned int opts}(hjحhhhNhNubah}(h]h ]h"]h$]h&]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)}(hcapability check optionsh]hcapability check options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChjЭubeh}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh+ capability in the indicated credentials. }(hj'hhhNhNubj)}(h**cap**h]hcap}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh7 contains the capability . }(hj'hhhNhNubj)}(h**opts**h]hopts}(hjehhhNhNubah}(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)}(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.chMohjubj)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hjhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_quotactl (C function)c.security_quotactlhNtauh1hhj whhhNhNubh)}(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}(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_quotactlh]j)}(hsecurity_quotactlh]hsecurity_quotactl}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjӮhMubj/)}(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}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(htypeh]htype}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct super_block *sbh](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 super_blockh]h super_block}(hjگhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjׯubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjܯmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_quotactlasbuh1hhjubh)}(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-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)}(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&]uh1jhjhhhjӮhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjWjjWjjjuh1hhhhj whNhNubj)}(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)}(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:287: ./security/security.chM~hj[ubj)}(hhh](j")}(h``int cmds`` commands h](j()}(h ``int cmds``h]j.)}(hjh]hint cmds}(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.chM{hjzubjD)}(hhh]j)}(hcommandsh]hcommands}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM{hjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhM{hjwubj")}(h``int type`` 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.chM|hjubjD)}(hhh]j)}(htypeh]htype}(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|hjwubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM}hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM}hjwubj")}(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.c hM~hj%ubjD)}(hhh]j)}(h filesystemh]h filesystem}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hM~hjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hM~hjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubj)}(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.chMhj[ubj)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hj|hhhNhNubj)}(h**sb**h]hsb}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_quota_on (C function)c.security_quota_onhNtauh1hhj whhhNhNubh)}(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}(hj!hhhNhNubah}(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 reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_quota_onasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(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)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(hjƲh]h Parameters}(hjȲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIJubah}(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`` 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.chMhj߲ubjD)}(hhh]j)}(hdentryh]hdentry}(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.chMhjubj)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hj6hhhNhNubj)}(h **dentry**h]hdentry}(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.chMhjubj)}(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.chMhjubj)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_syslog (C function)c.security_sysloghNtauh1hhj whhhNhNubh)}(hhh](h)}(hint security_syslog (int type)h]h)}(hint security_syslog(int 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_syslogh]j)}(hsecurity_syslogh]hsecurity_syslog}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h (int type)h]j5)}(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-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)}(h5Check if accessing the kernel message ring is allowedh]h5Check if accessing the kernel message ring 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhj whNhNubj)}(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)}(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"``int type`` SYSLOG_ACTION_* type h](j()}(h ``int type``h]j.)}(hjbh]hint type}(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)}(hSYSLOG_ACTION_* typeh]hSYSLOG_ACTION_* type}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMhjYubah}(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)}(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 }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh values.}(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)}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_settime64 (C function)c.security_settime64hNtauh1hhj whhhNhNubh)}(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&]uh1jhj8ubah}(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}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj;)}(hj>h]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j)}(h timespec64h]h timespec64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj>sbc.security_settime64asbuh1hhjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(htsh]hts}(hj̵hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubj5)}(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 }(hj hhhNhNubah}(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 reftargetj modnameN classnameNjwjz)}j}]jc.security_settime64asbuh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htzh]htz}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubeh}(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}(hjhhhNhNubah}(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&]uh1jhjhhhj)hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 timespec64 *ts`` new time h](j()}(h``const struct timespec64 *ts``h]j.)}(hj¶h]hconst struct timespec64 *ts}(hjĶhhhNhNubah}(h]h ]h"]h$]h&]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 timeh]hnew time}(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 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!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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hCheck permission to change the system time, struct timespec64 is defined in and timezone is defined in .h]hCheck permission to change the system time, struct timespec64 is defined in and timezone is defined in .}(hjLhhhNhNubah}(h]h ]h"]h$]h&]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.}(hjshhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhj whhhNhNubh)}(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}(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_vm_enough_memory_mmh]j)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hj÷hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h"(struct mm_struct *mm, long pages)h](j5)}(hstruct mm_struct *mmh](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 mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjŷsbc.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}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj۷ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj׷ubj5)}(h long pagesh](h)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hpagesh]hpages}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(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 allocating a new mem map is allowedh]h,Check if allocating a new mem map 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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 mm_struct *mm`` mm struct h](j()}(h``struct mm_struct *mm``h]j.)}(hjظh]hstruct mm_struct *mm}(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 mm structh]h mm struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjҸubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjϸubj")}(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.chMhj ubjD)}(hhh]j)}(hnumber of pagesh]hnumber of pages}(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)}(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.chMhjubj)}(hXCheck permissions for allocating a new virtual mapping. If all LSMs return a positive value, __vm_enough_memory() will be called with cap_sys_admin set. If at least one LSM returns 0 or negative, __vm_enough_memory() will be called with cap_sys_admin cleared.h]hXCheck permissions for allocating a new virtual mapping. If all LSMs return a positive value, __vm_enough_memory() will be called with cap_sys_admin set. If at least one LSM returns 0 or negative, __vm_enough_memory() will be called with cap_sys_admin cleared.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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.chMhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hcaller.h]hcaller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhj whhhNhNubh)}(hhh](h)}(hh]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 linux_binprmh]h linux_binprm}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsjsbc.security_bprm_creds_for_execasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbprmh]hbprm}(hjyhhhNhNubah}(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"Prepare the credentials for exec()h]h"Prepare the credentials for exec()}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjubj)}(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&]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)}(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 }(hj5hhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh properly for executing }(hj5hhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh , update the LSM’s portion of }(hj5hhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh 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 }(hj5hhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hj5hhhNhNubj)}(h**bprm**h]hbprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh% contains the linux_binprm structure.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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 }(hjhhhNhNubj)}(h**bprm**h]hbprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will always be dropped.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hjhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(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)}(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 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhj whhhNhNubh)}(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 }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj5hMubj)}(hsecurity_bprm_creds_from_fileh]j)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj5hMubj/)}(h4(struct linux_binprm *bprm, const struct file *file)h](j5)}(hstruct linux_binprm *bprmh](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)}(h linux_binprmh]h linux_binprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjJsbc.security_bprm_creds_from_fileasbuh1hhj`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-uh1j4hj\ubj5)}(hconst struct file *fileh](j;)}(hjh]hconst}(hjּhhhNhNubah}(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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_bprm_creds_from_fileasbuh1hhjҼ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}(hjHhhhNhNubah}(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)}(h'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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")}(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.chMhjubjD)}(hhh]j)}(hbinary program informationh]hbinary program information}(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 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!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)}(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}(hjEhhhNhNubah}(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}(hjWhhhNhNubah}(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}(hjihhhNhNubah}(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}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhJ any personality flags that should be cleared from current->personality. }(hj=hhhNhNubj)}(h**bprm**h]hbprm}(hjhhhNhNubah}(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.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 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_bprm_check (C function)c.security_bprm_checkhNtauh1hhj whhhNhNubh)}(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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_bprm_checkh]j)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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 }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_bprm_checkasbuh1hhj&ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(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-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)}(hMediate binary handler searchh]hMediate binary handler search}(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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjſjjſjjjuh1hhhhj whNhNubj)}(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)}(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")}(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&]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)}(hXlThis hook mediates the point when a search for a binary handler will begin. It allows a check against the **bprm->cred->security** value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in **bprm**. This hook may be called multiple times during a single execve. **bprm** contains the linux_binprm structure.h](hjThis hook mediates the point when a search for a binary handler will begin. It allows a check against the }(hj?hhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hj?hhhNhNubj)}(h**bprm**h]hbprm}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhC. This hook may be called multiple times during a single execve. }(hj?hhhNhNubj)}(h**bprm**h]hbprm}(hjkhhhNhNubah}(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.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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhj whhhNhNubh)}(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}(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_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 hjhhhjhM%ubj/)}(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}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]j)}jsjsb c.security_bprm_committing_credsasbuh1hhjubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbprmh]hbprm}(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)Install creds for a process during exec()h]h)Install creds for a process during exec()}(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&]uh1jhjhhhjhM%ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 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!hjhMhjubah}(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)}(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 }(hj8hhhNhNubj)}(h**current->cred**h]h current->cred}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh and the information set in }(hj8hhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh# by the bprm_creds_for_exec hook. }(hj8hhhNhNubj)}(h**bprm**h]hbprm}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhX  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().}(hj8hhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM5ubj)}(hsecurity_bprm_committed_credsh]j)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM5ubj/)}(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)}jsjsbc.security_bprm_committed_credsasbuh1hhjubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbprmh]hbprm}(hjNhhhNhNubah}(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)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 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.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&]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)}(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 }(hj hhhNhNubj)}(h**current->cred**h]h current->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh. }(hj hhhNhNubj)}(h**bprm**h]hbprm}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh 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().}(hj hhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhj whhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMCubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjkhMCubj)}(hsecurity_fs_context_submounth]j)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYhhhjkhMCubj/)}(h6(struct fs_context *fc, struct super_block *reference)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)}jsjsbc.security_fs_context_submountasbuh1hhjubh)}(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 super_block *referenceh](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 super_blockh]h super_block}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]jc.security_fs_context_submountasbuh1hhjubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h referenceh]h reference}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjYhhhjkhMCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUhhhjkhMCubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhMChjRhhubj)}(hhh]j)}(hInitialise fc->securityh]hInitialise fc->security}(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&]uh1jhjRhhhjkhMCubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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")}(h1``struct fs_context *fc`` new 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.chM<hjubjD)}(hhh]j)}(hnew filesystem contexth]hnew filesystem context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM<hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM<hjubj")}(hH``struct super_block *reference`` dentry reference for submount/remount h](j()}(h!``struct super_block *reference``h]j.)}(hjh]hstruct super_block *reference}(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)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hj hhhNhNubah}(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)}(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.chM?hjubj)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hjXhhhNhNubah}(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)}(hjih]hReturn}(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.chMAhjubj)}(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.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMSubj)}(hsecurity_fs_context_duph]j)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMSubj/)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.security_fs_context_dupasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfch]hfc}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct fs_context *src_fch](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)}(h fs_contexth]h fs_context}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]j%c.security_fs_context_dupasbuh1hhjYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hsrc_fch]hsrc_fc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMSubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMShjhhubj)}(hhh]j)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMSubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(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.chMJhjubjD)}(hhh]j)}(hdestination filesystem contexth]hdestination filesystem context}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMJhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMJhjubj")}(h8``struct fs_context *src_fc`` source filesystem context h](j()}(h``struct fs_context *src_fc``h]j.)}(hjXh]hstruct fs_context *src_fc}(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.chMKhjRubjD)}(hhh]j)}(hsource filesystem contexth]hsource filesystem context}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMKhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhMKhjubeh}(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.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. }(hjhhhNhNubj)}(h**fc**h]hfc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' indicates the new filesystem context. }(hjhhhNhNubj)}(h **src_fc**h]hsrc_fc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+ indicates the original filesystem context.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMMhjubj)}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhj whhhNhNubh)}(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}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj1hMdubj)}(hsecurity_fs_context_parse_paramh]j)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj1hMdubj/)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j5)}(hstruct fs_context *fch](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 fs_contexth]h fs_context}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjFsb!c.security_fs_context_parse_paramasbuh1hhj\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hfch]hfc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubj5)}(hstruct fs_parameter *paramh](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_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_paramasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparamh]hparam}(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.hjhhhj1hMdubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMdhjhhubj)}(hhh]j)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMdubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhj whNhNubj)}(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)}(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.chM]hjoubj)}(hhh](j")}(h-``struct fs_context *fc`` 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.chMZhjubjD)}(hhh]j)}(hfilesystem contexth]hfilesystem context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMZhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMZhjubj")}(h4``struct fs_parameter *param`` filesystem parameter h](j()}(h``struct fs_parameter *param``h]j.)}(hjh]hstruct fs_parameter *param}(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)}(hfilesystem parameterh]hfilesystem parameter}(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&]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:287: ./security/security.chM]hjoubj)}(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]hjoubj)}(h **Return**h]j)}(hj/h]hReturn}(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.chM`hjoubj)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjHubjD)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMahj[ubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjZhMahjEubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_alloc (C function)c.security_sb_allochNtauh1hhj whhhNhNubh)}(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}(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_alloch]j)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(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_allocasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hj4hhhNhNubah}(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 super_block LSM blobh]hAllocate a super_block LSM blob}(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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvjjvjjjuh1hhhhj whNhNubj)}(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)}(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:287: ./security/security.chMzhjzubj)}(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.chMwhjubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(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&]uh1jhjzubj)}(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.chMyhjzubj)}(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.chMyhjzubj)}(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}hjzubj)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM}hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_delete (C function)c.security_sb_deletehNtauh1hhj whhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhMubj)}(hsecurity_sb_deleteh]j)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjfhMubj/)}(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)}jsj{sbc.security_sb_deleteasbuh1hhjubh)}(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-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*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&]uh1jhjMhhhjfhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0jj0jjjuh1hhhhj whNhNubj)}(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)}(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.chMhj4ubj)}(hhh]j")}(h1``struct super_block *sb`` filesystem superblock h](j()}(h``struct super_block *sb``h]j.)}(hjYh]hstruct super_block *sb}(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.chMhjSubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjPubah}(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.chMhj4ubj)}(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). }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 contains the super_block structure being released.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_free (C function)c.security_sb_freehNtauh1hhj whhhNhNubh)}(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}(hj hhhNhNubah}(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}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(h super_blockh]h super_block}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_freeasbuh1hhj$ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjthhhNhNubah}(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-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)}(hFree a super_block LSM blobh]hFree 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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)}(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)}(hiDeallocate and clear the sb->s_security field. **sb** contains the super_block structure to be modified.h](h0Deallocate and clear the sb->s_security field. }(hj=hhhNhNubj)}(h**sb**h]hsb}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh3 contains the super_block structure to be modified.}(hj=hhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhj whhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjhMubj)}(hsecurity_sb_kern_mounth]j)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhjhMubj/)}(h(const struct super_block *sb)h]j5)}(hconst struct super_block *sbh](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 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_kern_mountasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj"hhhNhNubah}(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.hjzhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjshhubj)}(hhh]j)}(h"Check if a kernel mount is allowedh]h"Check if a kernel mount is allowed}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhj whNhNubj)}(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)}(hj{h]h Parameters}(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.chMhjuubj)}(hhh]j")}(h7``const struct super_block *sb`` filesystem superblock h](j()}(h ``const struct super_block *sb``h]j.)}(hjh]hconst struct 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&]uh1jhjuubj)}(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.chMhjuubj)}(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.chMhjuubj)}(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.chMhjuubj)}(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.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhj whhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhjahMubj)}(hsecurity_sb_show_optionsh]j)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOhhhjahMubj/)}(h,(struct seq_file *m, struct super_block *sb)h](j5)}(hstruct seq_file *mh](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)}(hseq_fileh]hseq_file}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjvsbc.security_sb_show_optionsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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 reftargetj!modnameN classnameNjwjz)}j}]jc.security_sb_show_optionsasbuh1hhjubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjXhhhNhNubah}(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)Output the mount options for a superblockh]h)Output the mount options for a superblock}(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&]uh1jhjHhhhjahMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 seq_file *m`` output file h](j()}(h``struct seq_file *m``h]j.)}(hjh]hstruct seq_file *m}(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 output fileh]h output file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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!hjhMhjubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h4Show (print on **m**) mount options for this **sb**.h](hShow (print on }(hjMhhhNhNubj)}(h**m**h]hm}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh) mount options for this }(hjMhhhNhNubj)}(h**sb**h]hsb}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh.}(hjMhhhNhNubeh}(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)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_statfs (C function)c.security_sb_statfshNtauh1hhj whhhNhNubh)}(hhh](h)}(h.int security_sb_statfs (struct dentry *dentry)h]h)}(h-int security_sb_statfs(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.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(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 hjhhhjhM ubj/)}(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}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$modnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_statfsasbuh1hhjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjPhhhNhNubah}(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.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h&Check if accessing fs stats is allowedh]h&Check if accessing fs stats 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&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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`` superblock handle 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)}(hsuperblock handleh]hsuperblock handle}(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 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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh mountpoint. }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hj3hhhNhNubah}(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.chMhjubj)}(h **Return**h]j)}(hjNh]hReturn}(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#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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_mount (C function)c.security_sb_mounthNtauh1hhj whhhNhNubh)}(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}(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_mounth]j)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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}(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)}(hdev_nameh]hdev_name}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct path *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)ubj;)}(hj>h]hstruct}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)ubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(hpathh]hpath}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_mountasbuh1hhj)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)}(hconst char *typeh](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)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h void *datah](h)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hdatah]hdata}(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*Check permission for mounting a filesystemh]h*Check permission for mounting a filesystem}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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``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.)}(hj5h]hconst struct path *path}(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.chMhj/ubjD)}(hhh]j)}(h mount pointh]h mount point}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhMhjubj")}(h%``const char *type`` filesystem type h](j()}(h``const char *type``h]j.)}(hjnh]hconst char *type}(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)}(hfilesystem typeh]hfilesystem type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h$``unsigned long flags`` mount flags h](j()}(h``unsigned long flags``h]j.)}(hjh]hunsigned long 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)}(h mount flagsh]h mount flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h(``void *data`` filesystem specific 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'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfilesystem specific datah]hfilesystem specific 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)}(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)}(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 }(hj1hhhNhNubj)}(h **dev_name**h]hdev_name}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh( is mounted on the mount point named by }(hj1hhhNhNubj)}(h**nd**h]hnd}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh. For an ordinary mount, }(hj1hhhNhNubj)}(h **dev_name**h]hdev_name}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhP identifies a device if the file system type requires a device. For a remount (}(hj1hhhNhNubj)}(h **flags**h]hflags}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh & MS_REMOUNT), }(hj1hhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh, is irrelevant. For a loopback/bind mount (}(hj1hhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh & MS_BIND), }(hj1hhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh5 identifies the pathname of the object being mounted.}(hj1hhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_umount (C function)c.security_sb_umounthNtauh1hhj whhhNhNubh)}(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}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(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}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsj(sbc.security_sb_umountasbuh1hhj>ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hmnth]hmnt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(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.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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(hj;h]hstruct vfsmount *mnt}(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.chM'hj5ubjD)}(hhh]j)}(hmounted filesystemh]hmounted filesystem}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM'hjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhM'hj2ubj")}(h``int flags`` unmount flags h](j()}(h ``int flags``h]j.)}(hjth]h int flags}(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.chM(hjnubjD)}(hhh]j)}(h unmount flagsh]h unmount flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM(hjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhM(hj2ubeh}(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 permission before the **mnt** file system is unmounted.h](hCheck permission before the }(hjhhhNhNubj)}(h**mnt**h]hmnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh file system is unmounted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhj whhhNhNubh)}(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}(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_sb_pivotrooth]j)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hM<ubj/)}(h:(const struct path *old_path, const struct path *new_path)h](j5)}(hconst struct path *old_pathh](j;)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjPsbc.security_sb_pivotrootasbuh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hold_pathh]hold_path}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(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}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]jc.security_sb_pivotrootasbuh1hhjubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_pathh]hnew_path}(hjihhhNhNubah}(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;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 permissions for pivoting the rootfsh]h)Check permissions for pivoting the rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hM<ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chM8hjubj)}(hhh](j")}(h@``const struct path *old_path`` new location for current rootfs h](j()}(h``const struct path *old_path``h]j.)}(hjh]hconst struct path *old_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjubjD)}(hhh]j)}(hnew location for current rootfsh]hnew location for current rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM5hjubj")}(h;``const struct path *new_path`` location of the new rootfs h](j()}(h``const struct path *new_path``h]j.)}(hj h]hconst struct path *new_path}(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.chM6hjubjD)}(hhh]j)}(hlocation of the new rootfsh]hlocation of the new rootfs}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hM6hj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hM6hjubeh}(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.chM8hjubj)}(h5Check permission before pivoting the root filesystem.h]h5Check permission before pivoting the root filesystem.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8hjubj)}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_move_mount (C function)c.security_move_mounthNtauh1hhj whhhNhNubh)}(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}(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_move_mounth]j)}(hsecurity_move_mounth]hsecurity_move_mount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM}ubj/)}(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}(hj hhhNhNubah}(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&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jsjsbc.security_move_mountasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h from_pathh]h from_path}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct path *to_pathh](j;)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jFc.security_move_mountasbuh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hto_pathh]hto_path}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(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 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&]uh1jhjhhhjhM}ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2jj2jjjuh1hhhhj whNhNubj)}(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)}(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.chMyhj6ubj)}(hhh](j")}(h4``const struct path *from_path`` source mount point h](j()}(h ``const struct path *from_path``h]j.)}(hj[h]hconst struct path *from_path}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjUubjD)}(hhh]j)}(hsource mount pointh]hsource mount point}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMvhjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphMvhjRubj")}(h7``const struct path *to_path`` destination mount point h](j()}(h``const struct path *to_path``h]j.)}(hjh]hconst struct path *to_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.chMwhjubjD)}(hhh]j)}(hdestination mount pointh]hdestination mount point}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhj6ubj)}(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.chMyhj6ubj)}(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{hj6ubj)}(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{hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_path_notify (C function)c.security_path_notifyhNtauh1hhj whhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhjIhMubj)}(hsecurity_path_notifyh]j)}(hsecurity_path_notifyh]hsecurity_path_notify}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7hhhjIhMubj/)}(h:(const struct path *path, u64 mask, unsigned int obj_type)h](j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj^sbc.security_path_notifyasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubj5)}(hu64 maskh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jc.security_path_notifyasbuh1hhjubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmaskh]hmask}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubj5)}(hunsigned int obj_typeh](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)}(hobj_typeh]hobj_type}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubeh}(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)}(h#Check if setting a watch is allowedh]h#Check if setting a watch 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&]uh1jhj0hhhjIhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 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}(hj hhhNhNubah}(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.)}(hj)h]hu64 mask}(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 event maskh]h event mask}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhjubj")}(h)``unsigned int obj_type`` file path type h](j()}(h``unsigned int obj_type``h]j.)}(hjbh]hunsigned int obj_type}(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)}(hfile path typeh]hfile path type}(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)}(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 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 }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, on an object at }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, whose type is defined by }(hjhhhNhNubj)}(h **obj_type**h]hobj_type}(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)}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_inode_alloc (C function)c.security_inode_allochNtauh1hhj whhhNhNubh)}(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}(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 }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;hhhjMhMubj)}(hsecurity_inode_alloch]j)}(hsecurity_inode_alloch]hsecurity_inode_alloc}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj;hhhjMhMubj/)}(h (struct inode *inode, gfp_t gfp)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hj|hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjbsbc.security_inode_allocasbuh1hhjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(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.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-uh1j4hjtubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj;hhhjMhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhMhj4hhubj)}(hhh]j)}(hAllocate an inode LSM blobh]hAllocate an inode LSM blob}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_jj_jjjuh1hhhhj whNhNubj)}(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)}(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 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}(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.)}(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 flagsh]hallocation 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&]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)}(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.chMhjcubj)}(h **Return**h]j)}(hj5h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjcubj)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hjKhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_inode_free (C function)c.security_inode_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h.void security_inode_free (struct inode *inode)h]h)}(h-void security_inode_free(struct inode *inode)h](h)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjhMubj)}(hsecurity_inode_freeh]j)}(hsecurity_inode_freeh]hsecurity_inode_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjhMubj/)}(h(struct inode *inode)h]j5)}(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}]j)}jsjsbc.security_inode_freeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(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)}(hFree an inode's LSM blobh]hFree an inode’s LSM blob}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhj whNhNubj)}(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)}(hj\h]h Parameters}(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.chMhjVubj)}(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-hjyubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjuubjD)}(hhh]j)}(h the inodeh]h the inode}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjVubj)}(hRelease any LSM resources associated with **inode**, although due to the inode's RCU protections it is possible that the resources will not be fully released until after the current RCU grace period has elapsed.h](h*Release any LSM resources associated with }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, although due to the inode’s RCU protections it is possible that the resources will not be fully released until after the current RCU grace period has elapsed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjVubj)}(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.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhj whhhNhNubh)}(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}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj<hMQubj)}(h!security_inode_init_security_anonh]j)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj*hhhj<hMQubj/)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j5)}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjQsb#c.security_inode_init_security_anonasbuh1hhjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(hconst struct qstr *nameh](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)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j#c.security_inode_init_security_anonasbuh1hhjubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(h!const struct inode *context_inodeh](j;)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j#c.security_inode_init_security_anonasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h context_inodeh]h context_inode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj*hhhj<hMQubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj<hMQubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMQhj#hhubj)}(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&]uh1jhj#hhhj<hMQubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMJhj ubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hjEh]hstruct inode *inode}(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.chMGhj?ubjD)}(hhh]j)}(h the inodeh]h the inode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMGhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhMGhj<ubj")}(h6``const struct qstr *name`` the anonymous inode class h](j()}(h``const struct qstr *name``h]j.)}(hj~h]hconst struct qstr *name}(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.chMHhjxubjD)}(hhh]j)}(hthe anonymous inode classh]hthe anonymous inode class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMHhj<ubj")}(h@``const struct inode *context_inode`` an optional related inode h](j()}(h%``const struct inode *context_inode``h]j.)}(hjh]h!const struct inode *context_inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(han optional related inodeh]han optional related inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMIhj<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.chMKhj ubj)}(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.chMKhj 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.chMNhj ubj)}(h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h]h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhj whhhNhNubh)}(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}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjlhMvubj)}(hsecurity_path_post_mknodh]j)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjlhMvubj/)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)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_path_post_mknodasbuh1hhjubh)}(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 dentry *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_path_post_mknodasbuh1hhj ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdentryh]hdentry}(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.hjZhhhjlhMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjlhMvubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMvhjShhubj)}(hhh]j)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMphjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMvubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMthjubj)}(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.chMqhjubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMqhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMqhjubj")}(h#``struct dentry *dentry`` new file h](j()}(h``struct dentry *dentry``h]j.)}(hjh]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.chMrhjubjD)}(hhh]j)}(hnew fileh]hnew file}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjubeh}(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.chMthjubj)}(hBUpdate inode security field after a regular file has been created.h]hBUpdate inode security field after a regular file has been created.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhj whhhNhNubh)}(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}(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_rmdirh]j)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h/(const struct path *dir, struct dentry *dentry)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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_rmdirasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *dentryh](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)}(hdentryh]hdentry}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]jc.security_path_rmdirasbuh1hhjNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(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(Check if removing a directory is allowedh]h(Check if removing a directory 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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj)hMhj ubj")}(h.``struct dentry *dentry`` directory to remove h](j()}(h``struct dentry *dentry``h]j.)}(hjMh]hstruct dentry *dentry}(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)}(hdirectory to removeh]hdirectory to remove}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhMhj 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)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_path_symlink (C function)c.security_path_symlinkhNtauh1hhj whhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj-ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj;)}(hj>h]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj-ubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hpathh]hpath}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_symlinkasbuh1hhj-ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(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_path_symlinkasbuh1hhjubh)}(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-uh1j4hj)ubj5)}(hconst char *old_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}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hold_nameh]hold_name}(hjrhhhNhNubah}(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 creating a symbolic link is allowedh]h,Check if creating 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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`` 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}(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 char *old_name`` file pathname h](j()}(h``const char *old_name``h]j.)}(hjOh]hconst char *old_name}(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.chMhjIubjD)}(hhh]j)}(h file pathnameh]h file pathname}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhMhjubeh}(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)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_path_link (C function)c.security_path_linkhNtauh1hhj whhhNhNubh)}(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}(hj3hhhNhNubah}(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}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_linkasbuh1hhj/ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hconst struct path *new_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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jmc.security_path_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hstruct dentry *new_dentryh](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)}(hdentryh]hdentry}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPmodnameN classnameNjwjz)}j}]jmc.security_path_linkasbuh1hhj,ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h new_dentryh]h new_dentry}(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.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}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 *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}(hj hhhNhNubah}(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.)}(hj+h]hconst struct path *new_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)}(hnew parent directoryh]hnew parent directory}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMhjubj")}(h'``struct dentry *new_dentry`` new link h](j()}(h``struct dentry *new_dentry``h]j.)}(hjdh]hstruct dentry *new_dentry}(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)}(hnew linkh]hnew link}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h;Check permission before creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_path_truncate (C function)c.security_path_truncatehNtauh1hhj whhhNhNubh)}(hhh](h)}(h4int security_path_truncate (const struct path *path)h]h)}(h3int security_path_truncate(const struct path *path)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_path_truncateh]j)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(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}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj;)}(hj>h]hstruct}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj.sbc.security_path_truncateasbuh1hhjDubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hpathh]hpath}(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.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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(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!``const struct path *path`` file h](j()}(h``const struct path *path``h]j.)}(hj'h]hconst struct path *path}(hj)hhhNhNubah}(h]h ]h"]h$]h&]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)}(hfileh]hfile}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMhjubah}(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&]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.}(hjxhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_path_chmod (C function)c.security_path_chmodhNtauh1hhj whhhNhNubh)}(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}(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_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 hjhhhjhM ubj/)}(h'(const struct path *path, umode_t mode)h](j5)}(hconst struct path *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 }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_chmodasbuh1hhjubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjrhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j`c.security_path_chmodasbuh1hhjubh)}(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-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 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&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj whNhNubj)}(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.chMhj ubj)}(hhh](j")}(h!``const struct path *path`` file h](j()}(h``const struct path *path``h]j.)}(hj2h]hconst struct path *path}(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:287: ./security/security.chMhj,ubjD)}(hhh]j)}(hfileh]hfile}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhj)ubj")}(h``umode_t mode`` new mode h](j()}(h``umode_t mode``h]j.)}(hjkh]h umode_t mode}(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.chMhjeubjD)}(hhh]j)}(hnew modeh]hnew mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(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:287: ./security/security.chMhj ubj)}(hCheck for permission to change a mode of the file **path**. The new mode is specified in **mode** which is a bitmask of constants from .h](h2Check for permission to change a mode of the file }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The new mode is specified in }(hjhhhNhNubj)}(h**mode**h]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB which is a bitmask of constants from .}(hjhhhNhNubeh}(h]h ]h"]h$]h&]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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_path_chown (C function)c.security_path_chownhNtauh1hhj whhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjDhMubj)}(hsecurity_path_chownh]j)}(hsecurity_path_chownh]hsecurity_path_chown}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj2hhhjDhMubj/)}(h1(const struct path *path, kuid_t uid, kgid_t gid)h](j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjYsbc.security_path_chownasbuh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubj5)}(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}]jc.security_path_chownasbuh1hhjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(huidh]huid}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubj5)}(h kgid_t gidh](h)}(hhh]j)}(hkgid_th]hkgid_t}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]jc.security_path_chownasbuh1hhjDubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hgidh]hgid}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj2hhhjDhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhjDhMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhj+hhubj)}(hhh]j)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group 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+hhhjDhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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``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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hMhjubj")}(h``kgid_t gid`` file group h](j()}(h``kgid_t gid``h]j.)}(hjTh]h kgid_t gid}(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)}(h file grouph]h file group}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihMhjubeh}(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)}(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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_path_chroot (C function)c.security_path_chroothNtauh1hhj whhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hM+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 hjhhhj hM+ubj/)}(h(const struct path *path)h]j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj;)}(hj>h]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(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_chrootasbuh1hhj4ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hpathh]hpath}(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 hM+ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hM+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM+hjhhubj)}(hhh]j)}(h/Check if changing the root directory is allowedh]h/Check if changing the root directory 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&]uh1jhjhhhj hM+ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(hj0hhhNhNubah}(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)}(hjRh]h Description}(hjThhhNhNubah}(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'hjubj)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMKubj)}(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&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMKubj/)}(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 }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j5$c.security_inode_post_create_tmpfileasbuh1hhjiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjhhubj)}(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&]uh1jhjhhhjhMKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.chMIhj ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj/h]hstruct mnt_idmap *idmap}(hj1hhhNhNubah}(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)}(hidmap of the mounth]hidmap of the mount}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhMFhjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhMFhj&ubj")}(h1``struct inode *inode`` inode of the new tmpfile h](j()}(h``struct inode *inode``h]j.)}(hjhh]hstruct inode *inode}(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.chMGhjbubjD)}(hhh]j)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hMGhj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hMGhj&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.chMIhj ubj)}(hh]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)}(hdentryh]hdentry}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]j)}jsj sbc.security_inode_linkasbuh1hhj!ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h old_dentryh]h old_dentry}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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_c.security_inode_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(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 *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&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j_c.security_inode_linkasbuh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjQhhhNhNubah}(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.hjhhhjhM]ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM]ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM]hjhhubj)}(hhh]j)}(h(Check if creating a hard link is allowedh]h(Check if creating 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.chMThjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM]ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMXhjubj)}(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.chMUhjubjD)}(hhh]j)}(h existing fileh]h existing file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMUhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMUhjubj")}(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!hjhMVhjubj")}(h'``struct dentry *new_dentry`` new link h](j()}(h``struct dentry *new_dentry``h]j.)}(hj;h]hstruct dentry *new_dentry}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhj5ubjD)}(hhh]j)}(hnew linkh]hnew link}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMWhjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhMWhjubeh}(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.chMYhjubj)}(h;Check permission before creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_inode_unlink (C function)c.security_inode_unlinkhNtauh1hhj whhhNhNubh)}(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&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMnubj)}(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 hjhhhjhMnubj/)}(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 }(hj,hhhNhNubah}(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)}jsjsbc.security_inode_unlinkasbuh1hhjubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}]jYc.security_inode_unlinkasbuh1hhjubh)}(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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMnubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMnhjhhubj)}(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&]uh1jhjhhhjhMnubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhj whNhNubj)}(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)}(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.chMjhj.ubj)}(hhh](j")}(h'``struct inode *dir`` parent directory h](j()}(h``struct inode *dir``h]j.)}(hjSh]hstruct inode *dir}(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.chMghjMubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMghjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhMghjJubj")}(h``struct dentry *dentry`` 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.chMhhjubjD)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhhjJubeh}(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.chMjhj.ubj)}(h5Check the permission to remove a hard link to a file.h]h5Check the permission to remove a hard link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhj.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.chMlhj.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.chMlhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_symlink (C function)c.security_inode_symlinkhNtauh1hhj whhhNhNubh)}(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}(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_symlinkh]j)}(hsecurity_inode_symlinkh]hsecurity_inode_symlink}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhMubj/)}(h@(struct inode *dir, struct dentry *dentry, const char *old_name)h](j5)}(hstruct inode *dirh](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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.security_inode_symlinkasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(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_symlinkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hconst char *old_nameh](j;)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjNubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubh)}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hold_nameh]hold_name}(hjhhhNhNubah}(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 creating a symbolic link is allowedh]h,Check if creating 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.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMzhjubj)}(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-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhjubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMwhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMwhjubj")}(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-hj8 ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMxhj4 ubjD)}(hhh]j)}(h symbolic linkh]h symbolic link}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO hMxhjP ubah}(h]h ]h"]h$]h&]uh1jChj4 ubeh}(h]h ]h"]h$]h&]uh1j!hjO hMxhjubj")}(h+``const char *old_name`` existing filename h](j()}(h``const char *old_name``h]j.)}(hjs h]hconst char *old_name}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjq ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjm ubjD)}(hhh]j)}(hexisting filenameh]hexisting filename}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMyhj ubah}(h]h ]h"]h$]h&]uh1jChjm ubeh}(h]h ]h"]h$]h&]uh1j!hj hMyhjubeh}(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.chM{hjubj)}(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.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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_inode_rmdir (C function)c.security_inode_rmdirhNtauh1hhj whhhNhNubh)}(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&]uh1jhj7 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}(hjW hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjS ubh)}(h h]h }(hjd hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjS ubh)}(hhh]j)}(hinodeh]hinode}(hju hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjw modnameN classnameNjwjz)}j}]j)}jsj= sbc.security_inode_rmdirasbuh1hhjS 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)}(hdirh]hdir}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjS ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjO 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_rmdirasbuh1hhj 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-uh1j4hjO 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}(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&]jjqjjb jjb jjjuh1hhhhj whNhNubj)}(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)}(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.chMhjf 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}(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")}(h2``struct dentry *dentry`` 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-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)}(hdirectory to be removedh]hdirectory to be removed}(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)}(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.chMhjf 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.chMhjf 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.chMhjf 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.chMhjf ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhj whhhNhNubh)}(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}(hjk hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjz hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg hhhjy 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 hjg hhhjy hMubj/)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)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_mknodasbuh1hhj 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)}(hdirh]hdir}(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}(hj8 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5 ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj: modnameN classnameNjwjz)}j}]j c.security_inode_mknodasbuh1hhj ubh)}(h h]h }(hjV hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjd hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdentryh]hdentry}(hjq hhhNhNubah}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hmodeh]hmode}(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.security_inode_mknodasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hdevh]hdev}(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.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)}(h+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(hj+hhhNhNubah}(h]h ]h"]h$]h&]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&]jjqjjCjjCjjjuh1hhhhj whNhNubj)}(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)}(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 inode *dir`` parent directory h](j()}(h``struct inode *dir``h]j.)}(hjlh]hstruct inode *dir}(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)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjcubj")}(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.chMhjubjD)}(hhh]j)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjcubj")}(h``umode_t mode`` new file mode h](j()}(h``umode_t mode``h]j.)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjcubj")}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubj)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(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.chMhjGubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjGubj)}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_inode_rename (C function)c.security_inode_renamehNtauh1hhj whhhNhNubh)}(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}(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_renameh]j)}(hsecurity_inode_renameh]hsecurity_inode_rename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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 }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_dirh]hold_dir}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *old_dentryh](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)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j5c.security_inode_renameasbuh1hhjiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct inode *new_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}]j5c.security_inode_renameasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_dirh]hnew_dir}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *new_dentryh](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)}(hdentryh]hdentry}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]j5c.security_inode_renameasbuh1hhjIubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h new_dentryh]h new_dentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhj whNhNubj)}(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)}(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:287: ./security/security.chMhj;ubj)}(hhh](j")}(h;``struct inode *old_dir`` parent directory of the old file h](j()}(h``struct inode *old_dir``h]j.)}(hj`h]hstruct inode *old_dir}(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)}(h parent directory of the old fileh]h parent directory of the old file}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhMhjWubj")}(h+``struct dentry *old_dentry`` the old 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 the old fileh]h the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjWubj")}(h;``struct inode *new_dir`` parent directory of the new file h](j()}(h``struct inode *new_dir``h]j.)}(hjh]hstruct inode *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 new fileh]h parent directory of the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjWubj")}(h+``struct dentry *new_dentry`` the new file h](j()}(h``struct dentry *new_dentry``h]j.)}(hj h]hstruct dentry *new_dentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]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 the new fileh]h the new file}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjWubj")}(h``unsigned int flags`` flags h](j()}(h``unsigned int flags``h]j.)}(hjDh]hunsigned int flags}(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)}(hflagsh]hflags}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hjYhMhjWubeh}(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:287: ./security/security.chMhj;ubj)}(h3Check for permission to rename a file or directory.h]h3Check for permission to rename a file or directory.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhj whhhNhNubh)}(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}(hj hhhNhNubah}(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}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hdentryh]hdentry}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_readlinkasbuh1hhj$ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjthhhNhNubah}(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 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+Check if reading a symbolic link is allowedh]h+Check if reading 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 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&]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 read the symbolic link.h]h/Check the permission to read the symbolic link.}(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)}(hjNh]hReturn}(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#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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhj whhhNhNubh)}(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}(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_follow_linkh]j)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)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_follow_linkasbuh1hhjubh)}(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-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}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j c.security_inode_follow_linkasbuh1hhj>ubh)}(h h]h }(hj~hhhNhNubah}(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-uh1j4hjubj5)}(hbool rcuh](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hrcuh]hrcu}(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 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(hj8h]hstruct dentry *dentry}(hj:hhhNhNubah}(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.chMhj2ubjD)}(hhh]j)}(h link dentryh]h link dentry}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhj/ubj")}(h#``struct inode *inode`` link inode h](j()}(h``struct inode *inode``h]j.)}(hjqh]hstruct inode *inode}(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:287: ./security/security.chMhjkubjD)}(hhh]j)}(h link inodeh]h link inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj/ubj")}(h&``bool rcu`` true if in RCU-walk mode h](j()}(h ``bool rcu``h]j.)}(hjh]hbool rcu}(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)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(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)}(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)}(hj0h]hReturn}(hj2hhhNhNubah}(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.}(hjFhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_inode_permission (C function)c.security_inode_permissionhNtauh1hhj whhhNhNubh)}(hhh](h)}(h=int security_inode_permission (struct inode *inode, int mask)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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_permissionasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(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)}(hint maskh](h)}(hinth]hint}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hmaskh]hmask}(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.hjqhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhjhM ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjjhhubj)}(hhh]j)}(h&Check if accessing an inode is allowedh]h&Check if accessing an inode is allowed}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjghhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 inode *inode`` 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.chM hjubjD)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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 hjubjD)}(hhh]j)}(h access maskh]h access mask}(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}(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)}(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.}(hj5hhhNhNubah}(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)}(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 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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_inode_post_setattr (C function)c.security_inode_post_setattrhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5 ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM5 ubj)}(hsecurity_inode_post_setattrh]j)}(hsecurity_inode_post_setattrh]hsecurity_inode_post_setattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM5 ubj/)}(h>(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)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_post_setattrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(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}(hj:hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(hdentryh]hdentry}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]jc.security_inode_post_setattrasbuh1hhj6ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int ia_validh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hia_validh]hia_valid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM5 ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM5 ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhM5 hjhhubj)}(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&]uh1jhjhhhjhM5 ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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 hj ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj1h]hstruct mnt_idmap *idmap}(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)}(hidmap of the mounth]hidmap of the mount}(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``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hjjh]hstruct dentry *dentry}(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.chM0 hjdubjD)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0 hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhM0 hj(ubj")}(h%``int ia_valid`` file attributes set h](j()}(h``int ia_valid``h]j.)}(hjh]h int ia_valid}(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.chM1 hjubjD)}(hhh]j)}(hfile attributes seth]hfile attributes set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM1 hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM1 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.chM3 hj ubj)}(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 hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhj whhhNhNubh)}(hhh](h)}(h4int security_inode_getattr (const struct path *path)h]h)}(h3int security_inode_getattr(const struct path *path)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.chME ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj1hME ubj)}(hsecurity_inode_getattrh]j)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj1hME ubj/)}(h(const struct path *path)h]j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj\ubh)}(h h]h }(hjmhhhNhNubah}(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)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjFsbc.security_inode_getattrasbuh1hhj\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-uh1j4hjXubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj1hME ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hME ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hME 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&]uh1jhjhhhj1hME ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMB hjubj)}(hhh]j")}(h!``const struct path *path`` file h](j()}(h``const struct path *path``h]j.)}(hj?h]hconst struct path *path}(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.chM? hj9ubjD)}(hhh]j)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThM? hjUubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hjThM? hj6ubah}(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.chMA hjubj)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hjhhhNhNubah}(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)}(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.chMC 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.chMC hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhj whhhNhNubh)}(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.chMf ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMf 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 hjhhhjhMf 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}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]j)}jsj sbc.security_inode_setxattrasbuh1hhjubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjohhhNhNubah}(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}(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_inode_setxattrasbuh1hhjubh)}(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-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}(hjI hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst void *valueh](j;)}(hjh]hconst}(hjb hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^ ubh)}(h h]h }(hjo 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)}(hvalueh]hvalue}(hj 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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j]c.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.hjhhhjhMf ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMf ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMf hjhhubj)}(hhh]j)}(h'Check if setting file xattrs is allowedh]h'Check if setting file xattrs is allowed}(hjM!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMM hjJ!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMf ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjje!jje!jjjuh1hhhhj whNhNubj)}(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)}(hjo!h]h Parameters}(hjq!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQ hji!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.chMN hj!ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMN hj!ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMN 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.chMO hj!ubjD)}(hhh]j)}(hfileh]hfile}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMO hj!ubah}(h]h ]h"]h$]h&]uh1jChj!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.)}(hj9"h]hconst void *value}(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:287: ./security/security.chMQ hj3"ubjD)}(hhh]j)}(h xattr valueh]h xattr value}(hjR"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN"hMQ hjO"ubah}(h]h ]h"]h$]h&]uh1jChj3"ubeh}(h]h ]h"]h$]h&]uh1j!hjN"hMQ hj!ubj")}(h$``size_t size`` size of xattr value h](j()}(h``size_t size``h]j.)}(hjr"h]h size_t size}(hjt"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjp"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hjl"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&]uh1jChjl"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMR hj!ubj")}(h``int flags`` 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'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMS hj"ubjD)}(hhh]j)}(hflagsh]hflags}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMS hj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMS hj!ubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMU hji!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 hji!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 hji!ubj)}(h **Return**h]j)}(hj.#h]hReturn}(hj0#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 hji!ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjD#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMd hji!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhj whhhNhNubh)}(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}(hjs#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo#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&]uh1hhjo#hhhj#hM ubj)}(hsecurity_inode_set_aclh]j)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjo#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}(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_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)}(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 reftargetjB$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*}(hjl$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hdentryh]hdentry}(hjy$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}(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#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*}(hj9%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hkaclh]hkacl}(hjF%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#hhhj#hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjk#hhhj#hM ubah}(h]jf#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hM hjh#hhubj)}(hhh]j)}(h&Check if setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hjp%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{ hjm%hhubah}(h]h ]h"]h$]h&]uh1jhjh#hhhj#hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhj whNhNubj)}(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)}(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}(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&]uh1jhj8&hM~ hj9&ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj8&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-hjZ&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjV&ubjD)}(hhh]j)}(h acl structh]h acl struct}(hju&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq&hM hjr&ubah}(h]h ]h"]h$]h&]uh1jChjV&ubeh}(h]h ]h"]h$]h&]uh1j!hjq&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)}(hfCheck permission before setting posix acls, the posix acls in **kacl** are identified by **acl_name**.h](h>Check permission before setting posix acls, the posix acls in }(hj&hhhNhNubj)}(h**kacl**h]hkacl}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh are identified by }(hj&hhhNhNubj)}(h **acl_name**h]hacl_name}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhj whhhNhNubh)}(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 }(hj6'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#'hhhj5'hM ubj)}(hsecurity_inode_post_set_aclh]j)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hjH'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#'hhhj5'hM ubj/)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjd'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj`'ubh)}(h h]h }(hjq'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)}jsjJ'sbc.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)}(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}(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\'ubj5)}(hstruct posix_acl *kaclh](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 posix_aclh]h posix_acl}(hjQ(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjN(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjS(modnameN classnameNjwjz)}j}]j'c.security_inode_post_set_aclasbuh1hhj/(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)}(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#'hhhj5'hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhj5'hM ubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj5'hM hj'hhubj)}(hhh]j)}(h)Update inode security from posix acls seth]h)Update inode security from posix acls set}(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'hhhj5'hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhj whNhNubj)}(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)}(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(ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hj.)h]hconst char *acl_name}(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.chM hj()ubjD)}(hhh]j)}(hacl nameh]hacl name}(hjG)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC)hM hjD)ubah}(h]h ]h"]h$]h&]uh1jChj()ubeh}(h]h ]h"]h$]h&]uh1j!hjC)hM hj(ubj")}(h&``struct posix_acl *kacl`` acl struct h](j()}(h``struct posix_acl *kacl``h]j.)}(hjg)h]hstruct posix_acl *kacl}(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.chM hja)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&]uh1jChja)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)}(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 }(hj)hhhNhNubj)}(h **dentry**h]hdentry}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh. The posix acls in }(hj)hhhNhNubj)}(h**kacl**h]hkacl}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh are identified by }(hj)hhhNhNubj)}(h **acl_name**h]hacl_name}(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(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhj whhhNhNubh)}(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}(hjZ*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjV*ubh)}(h h]h }(hjg*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjV*ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjx*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhju*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjz*modnameN classnameNjwjz)}j}]j)}jsj@*sbc.security_inode_get_aclasbuh1hhjV*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)}(hidmaph]hidmap}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjV*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjR*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_get_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-uh1j4hjR*ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj<+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8+ubh)}(h h]h }(hjI+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8+ubh)}(hcharh]hchar}(hjW+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8+ubh)}(h h]h }(hje+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8+ubj)}(hjh]h*}(hjs+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8+ubj)}(hacl_nameh]hacl_name}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjR*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}(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+jjjuh1hhhhj whNhNubj)}(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)}(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}(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&]uh1jhj9,hM hj:,ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj9,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 hjW,ubjD)}(hhh]j)}(hacl nameh]hacl name}(hjv,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr,hM hjs,ubah}(h]h ]h"]h$]h&]uh1jChjW,ubeh}(h]h ]h"]h$]h&]uh1j!hjr,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)}(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 }(hj,hhhNhNubj)}(h **acl_name**h]hacl_name}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhj whhhNhNubh)}(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}(hj7-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3-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}(hjS-hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjO-ubh)}(h h]h }(hj`-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjO-ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjq-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjn-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjs-modnameN classnameNjwjz)}j}]j)}jsj9-sbc.security_inode_remove_aclasbuh1hhjO-ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjO-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO-ubj)}(hidmaph]hidmap}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjO-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjK-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_remove_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-uh1j4hjK-ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj5.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1.ubh)}(h h]h }(hjB.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1.ubh)}(hcharh]hchar}(hjP.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1.ubh)}(h h]h }(hj^.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1.ubj)}(hjh]h*}(hjl.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1.ubj)}(hacl_nameh]hacl_name}(hjy.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjK-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}(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.jjjuh1hhhhj whNhNubj)}(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)}(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}(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}(hj6/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2/hM hj3/ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj2/hM hj.ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hjV/h]hconst char *acl_name}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjT/ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjP/ubjD)}(hhh]j)}(hacl nameh]hacl name}(hjo/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk/hM hjl/ubah}(h]h ]h"]h$]h&]uh1jChjP/ubeh}(h]h ]h"]h$]h&]uh1j!hjk/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)}(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 }(hj/hhhNhNubj)}(h **acl_name**h]hacl_name}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhj whhhNhNubh)}(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&]uh1hhj 0hhhX/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&]uh1hhj 0hhhj0hM ubj)}(hsecurity_inode_post_remove_aclh]j)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hj00hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj 0hhhj0hM ubj/)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjL0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjH0ubh)}(h h]h }(hjY0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH0ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjg0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjl0modnameN classnameNjwjz)}j}]j)}jsj20sb c.security_inode_post_remove_aclasbuh1hhjH0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH0ubj)}(hidmaph]hidmap}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjH0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjD0ubj5)}(hstruct dentry *dentryh](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)}(hdentryh]hdentry}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j0 c.security_inode_post_remove_aclasbuh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjD0ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj.1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*1ubh)}(h h]h }(hj;1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*1ubh)}(hcharh]hchar}(hjI1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*1ubh)}(h h]h }(hjW1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*1ubj)}(hjh]h*}(hje1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*1ubj)}(hacl_nameh]hacl_name}(hjr1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjD0ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj 0hhhj0hM 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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1jj1jjjuh1hhhhj whNhNubj)}(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)}(hj1h]h Parameters}(hj1hhhNhNubah}(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.chM hj1ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj1h]hstruct mnt_idmap *idmap}(hj1hhhNhNubah}(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.chM hj1ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj1hM hj1ubj")}(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}(hj/2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+2hM hj,2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj+2hM hj1ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hjO2h]hconst char *acl_name}(hjQ2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjM2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjI2ubjD)}(hhh]j)}(hacl nameh]hacl name}(hjh2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd2hM hje2ubah}(h]h ]h"]h$]h&]uh1jChjI2ubeh}(h]h ]h"]h$]h&]uh1j!hjd2hM hj1ubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj1ubj)}(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 }(hj2hhhNhNubj)}(h **dentry**h]hdentry}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh in }(hj2hhhNhNubj)}(h **idmap**h]hidmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh#. The posix acls are identified by }(hj2hhhNhNubj)}(h **acl_name**h]hacl_name}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhj whhhNhNubh)}(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}(hj&3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"3ubah}(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}(hjB3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>3ubh)}(h h]h }(hjO3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>3ubh)}(hhh]j)}(hdentryh]hdentry}(hj`3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjb3modnameN classnameNjwjz)}j}]j)}jsj(3sbc.security_inode_post_setxattrasbuh1hhj>3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>3ubj)}(hdentryh]hdentry}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:3ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hcharh]hchar}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hnameh]hname}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:3ubj5)}(hconst void *valueh](j;)}(hjh]hconst}(hj4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj 4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 4ubh)}(hvoidh]hvoid}(hj,4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj 4ubh)}(h h]h }(hj:4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 4ubj)}(hjh]h*}(hjH4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 4ubj)}(hvalueh]hvalue}(hjU4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:3ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjq4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjn4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjs4modnameN classnameNjwjz)}j}]j|3c.security_inode_post_setxattrasbuh1hhjj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjj4ubj)}(hsizeh]hsize}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:3ubj5)}(h int flagsh](h)}(hinth]hint}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hflagsh]hflags}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:3ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj3hhhj3hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj2hhhj3hM ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM hj2hhubj)}(hhh]j)}(h+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hj4hhhNhNubah}(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&]uh1jhj2hhhj3hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhj whNhNubj)}(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}(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.chM hj5ubj)}(hhh](j")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hj=5h]hstruct dentry *dentry}(hj?5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;5ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj75ubjD)}(hhh]j)}(hfileh]hfile}(hjV5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR5hM hjS5ubah}(h]h ]h"]h$]h&]uh1jChj75ubeh}(h]h ]h"]h$]h&]uh1j!hjR5hM hj45ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hjv5h]hconst char *name}(hjx5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjt5ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjp5ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jChjp5ubeh}(h]h ]h"]h$]h&]uh1j!hj5hM hj45ubj")}(h"``const void *value`` xattr value h](j()}(h``const void *value``h]j.)}(hj5h]hconst void *value}(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)}(h xattr valueh]h xattr value}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj5hM hj45ubj")}(h!``size_t size`` xattr value size h](j()}(h``size_t size``h]j.)}(hj5h]h size_t size}(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)}(hxattr value sizeh]hxattr value size}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj5hM hj45ubj")}(h``int flags`` flags h](j()}(h ``int flags``h]j.)}(hj!6h]h int flags}(hj#6hhhNhNubah}(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}(hj:6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj66hM hj76ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj66hM hj45ubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(h**Description**h]j)}(hj\6h]h Description}(hj^6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ6ubah}(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.}(hjr6hhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhj whhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj6hM ubj)}(hsecurity_inode_getxattrh]j)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6hhhj6hM ubj/)}(h)(struct dentry *dentry, const char *name)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(hdentryh]hdentry}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j)}jsj6sbc.security_inode_getxattrasbuh1hhj6ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hj*7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hdentryh]hdentry}(hj77hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjP7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjL7ubh)}(h h]h }(hj]7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL7ubh)}(hcharh]hchar}(hjk7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjL7ubh)}(h h]h }(hjy7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL7ubj)}(hnameh]hname}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjL7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj6hhhj6hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhj6hM ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hM hj6hhubj)}(hhh]j)}(h Check if xattr access is allowedh]h Check if xattr access is allowed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhj whNhNubj)}(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)}(hj7h]h Parameters}(hj7hhhNhNubah}(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.chM hj7ubj)}(hhh](j")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hj7h]hstruct dentry *dentry}(hj8hhhNhNubah}(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.chM hj7ubjD)}(hhh]j)}(hfileh]hfile}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hM hj8ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj8hM hj7ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hj88h]hconst char *name}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj68ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj28ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hjQ8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM8hM hjN8ubah}(h]h ]h"]h$]h&]uh1jChj28ubeh}(h]h ]h"]h$]h&]uh1j!hjM8hM hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubj)}(h**Description**h]j)}(hjs8h]h Description}(hju8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj7ubj)}(h`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hj8hhhNhNubj)}(h**name**h]hname}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh for }(hj8hhhNhNubj)}(h **dentry**h]hdentry}(hj8hhhNhNubah}(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.chM hj7ubj)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(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 hj7ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhj whhhNhNubh)}(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&]uh1hhj8hhhX/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&]uh1hhj8hhhj9hM ubj)}(hsecurity_inode_listxattrh]j)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hj$9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj8hhhj9hM ubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj@9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj<9ubh)}(h h]h }(hjM9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<9ubh)}(hhh]j)}(hdentryh]hdentry}(hj^9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj`9modnameN classnameNjwjz)}j}]j)}jsj&9sbc.security_inode_listxattrasbuh1hhj<9ubh)}(h h]h }(hj~9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<9ubj)}(hdentryh]hdentry}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj89ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj8hhhj9hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhj9hM ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM hj8hhubj)}(hhh]j)}(h"Check if listing xattrs is allowedh]h"Check if listing xattrs is allowed}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj9hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhj whNhNubj)}(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)}(hj9h]h Parameters}(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 hj9ubj)}(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 hj9ubjD)}(hhh]j)}(hfileh]hfile}(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 hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubj)}(h**Description**h]j)}(hj?:h]h Description}(hjA:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj9ubj)}(hVCheck permission before obtaining the list of extended attribute names for **dentry**.h](hKCheck permission before obtaining the list of extended attribute names for }(hjU:hhhNhNubj)}(h **dentry**h]hdentry}(hj]:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU:ubh.}(hjU:hhhNhNubeh}(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)}(hjx:h]hReturn}(hjz:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj9ubj)}(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 hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhj whhhNhNubh)}(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&]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_removexattrh]j)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:hhhj: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 }(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_removexattrasbuh1hhjh;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 *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-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 an xattr is allowedh]h%Check if removing an xattr 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<jjjuh1hhhhj whNhNubj)}(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)}(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 *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&]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)}(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 }(hjN=hhhNhNubj)}(h **dentry**h]hdentry}(hjV=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN=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.}(hjN=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf<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.}(hjo=hhhNhNubah}(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)}(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 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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhj whhhNhNubh)}(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}(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_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 hj=hhhj=hM: 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*}(hjN>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}(hjt>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjp>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp>ubh)}(hcharh]hchar}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp>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)}(hnameh]hname}(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=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 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&]uh1jhj=hhhj=hM: ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>jj>jjjuh1hhhhj whNhNubj)}(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}(hjubj)}(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.chM8 hj>ubj)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hj?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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhj whhhNhNubh)}(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&]uh1hhj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chML ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhj?hML 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 hj?hhhj?hML 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}(hj7@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9@modnameN classnameNjwjz)}j}]j)}jsj?sbc.security_inode_need_killprivasbuh1hhj@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)}(hdentryh]hdentry}(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?hML ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?hhhj?hML ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hML hj?hhubj)}(hhh]j)}(h+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMB hj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hML ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhj whNhNubj)}(hX**Parameters** ``struct dentry *dentry`` associated dentry **Description** Called when an inode has been changed to determine if security_inode_killpriv() should be called. **Return** Return <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h](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.chMF hj@ubj)}(hhh]j")}(h,``struct dentry *dentry`` associated dentry h](j()}(h``struct dentry *dentry``h]j.)}(hj@h]hstruct dentry *dentry}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hj@ubjD)}(hhh]j)}(hassociated dentryh]hassociated dentry}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMC hj@ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMC hj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(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 hj@ubj)}(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.}(hj.AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chME hj@ubj)}(h **Return**h]j)}(hj?Ah]hReturn}(hjAAhhhNhNubah}(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.chMH hj@ubj)}(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}(hj\AhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMI hjXAubjD)}(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.}(hjnAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjAhMI hjkAubah}(h]h ]h"]h$]h&]uh1jChjXAubeh}(h]h ]h"]h$]h&]uh1j!hjjAhMI hjUAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhj whhhNhNubh)}(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}(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_inode_killprivh]j)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhhjAhM\ ubj/)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j5)}(hstruct mnt_idmap *idmaph](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)}(h mnt_idmaph]h mnt_idmap}(hj BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj BmodnameN classnameNjwjz)}j}]j)}jsjAsbc.security_inode_killprivasbuh1hhjAubh)}(h h]h }(hj)BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hj7BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hidmaph]hidmap}(hjDBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj]BhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjYBubh)}(h h]h }(hjjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYBubh)}(hhh]j)}(hdentryh]hdentry}(hj{BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}BmodnameN classnameNjwjz)}j}]j%Bc.security_inode_killprivasbuh1hhjYBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubj)}(hdentryh]hdentry}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubeh}(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)}(h+The setuid bit is removed, update LSM stateh]h+The setuid bit is removed, update LSM state}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hjBhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhM\ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjBjjBjjjuh1hhhhj whNhNubj)}(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&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjBubj)}(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}(hj!ChhhNhNubah}(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}(hj8ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ChMS hj5Cubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj4ChMS hjCubj")}(h,``struct dentry *dentry`` associated dentry h](j()}(h``struct dentry *dentry``h]j.)}(hjXCh]hstruct dentry *dentry}(hjZChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMT hjRCubjD)}(hhh]j)}(hassociated dentryh]hassociated dentry}(hjqChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmChMT hjnCubah}(h]h ]h"]h$]h&]uh1jChjRCubeh}(h]h ]h"]h$]h&]uh1j!hjmChMT hjCubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjBubj)}(h}The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.h](hThe }(hjChhhNhNubj)}(h **dentry**h]hdentry}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhq’s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjBubj)}(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.chMY hjBubj)}(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}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMY hjCubjD)}(hhh]j)}(h%causing setuid bit removal is failed.h]h%causing setuid bit removal is failed.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZ hjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChMY hjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhj whhhNhNubh)}(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}(hjh]hstruct}(hjyDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuDubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsj_Dsbc.security_inode_getsecurityasbuh1hhjuDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuDubj)}(hidmaph]hidmap}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqDubj5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hinodeh]hinode}(hj EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj EmodnameN classnameNjwjz)}j}]jDc.security_inode_getsecurityasbuh1hhjDubh)}(h h]h }(hj'EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hj5EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hinodeh]hinode}(hjBEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqDubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj[EhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWEubh)}(h h]h }(hjhEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWEubh)}(hcharh]hchar}(hjvEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWEubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWEubj)}(hnameh]hname}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqDubj5)}(h void **bufferh](h)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hbufferh]hbuffer}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqDubj5)}(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}(hj"FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqDubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj8DhhhjJDhMr ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj4DhhhjJDhMr ubah}(h]j/Dah ](jjeh"]h$]h&]jj)jhuh1hhjJDhMr hj1Dhhubj)}(hhh]j)}(h(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(hjLFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc hjIFhhubah}(h]h ]h"]h$]h&]uh1jhj1DhhhjJDhMr ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjdFjjdFjjjuh1hhhhj whNhNubj)}(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)}(hjnFh]h Parameters}(hjpFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMg hjhFubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hjFh]hstruct mnt_idmap *idmap}(hjFhhhNhNubah}(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.chMd hjFubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMd hjFubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjFhMd hjFubj")}(h``struct inode *inode`` inode h](j()}(h``struct inode *inode``h]j.)}(hjFh]hstruct inode *inode}(hjFhhhNhNubah}(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.chMe hjFubjD)}(hhh]j)}(hinodeh]hinode}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMe hjFubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjFhMe hjFubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hjFh]hconst char *name}(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.chMf hjFubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMf hjGubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjGhMf hjFubj")}(h(``void **buffer`` security label buffer h](j()}(h``void **buffer``h]j.)}(hj8Gh]h void **buffer}(hj:GhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6Gubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMg hj2GubjD)}(hhh]j)}(hsecurity label bufferh]hsecurity label buffer}(hjQGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMGhMg hjNGubah}(h]h ]h"]h$]h&]uh1jChj2Gubeh}(h]h ]h"]h$]h&]uh1j!hjMGhMg hjFubj")}(h``bool alloc`` allocation flag h](j()}(h``bool alloc``h]j.)}(hjqGh]h bool alloc}(hjsGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoGubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMh hjkGubjD)}(hhh]j)}(hallocation flagh]hallocation flag}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMh hjGubah}(h]h ]h"]h$]h&]uh1jChjkGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMh hjFubeh}(h]h ]h"]h$]h&]uh1jhjhFubj)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(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.chMj hjhFubj)}(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 }(hjGhhhNhNubj)}(h**name**h]hname}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh for }(hjGhhhNhNubj)}(h **inode**h]hinode}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh via }(hjGhhhNhNubj)}(h **buffer**h]hbuffer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh . Note that }(hjGhhhNhNubj)}(h**name**h]hname}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubhT is the remainder of the attribute name after the security prefix has been removed. }(hjGhhhNhNubj)}(h **alloc**h]halloc}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh^ is used to specify if the call should return a value via the buffer or just the value length.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMj hjhFubj)}(h **Return**h]j)}(hj-Hh]hReturn}(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.chMp hjhFubj)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hjCHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMp hjhFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhj whhhNhNubh)}(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}(hjrHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnHhhhX/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&]uh1hhjnHhhhjHhM ubj)}(hsecurity_inode_setsecurityh]j)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjnHhhhjHhM 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}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j)}(hinodeh]hinode}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjHsbc.security_inode_setsecurityasbuh1hhjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hinodeh]hinode}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj!IhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIubh)}(h h]h }(hj.IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hcharh]hchar}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubh)}(hhh]j)}(hinodeh]hinode}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]j)}jsjLsbc.security_inode_getlsmpropasbuh1hhjLubh)}(h h]h }(hj.MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjh]hstruct}(hjbMhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^Mubh)}(h h]h }(hjoMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^Mubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]j*Mc.security_inode_getlsmpropasbuh1hhj^Mubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^Mubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Mubj)}(hproph]hprop}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^Mubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLubeh}(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)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(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&]jjqjjMjjMjjjuh1hhhhj whNhNubj)}(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 hjMubj)}(hhh](j")}(h``struct inode *inode`` inode h](j()}(h``struct inode *inode``h]j.)}(hj$Nh]hstruct inode *inode}(hj&NhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"Nubah}(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}(hj=NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9NhM hj:Nubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hj9NhM hjNubj")}(h=``struct lsm_prop *prop`` lsm specific information to return h](j()}(h``struct lsm_prop *prop``h]j.)}(hj]Nh]hstruct lsm_prop *prop}(hj_NhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[Nubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjWNubjD)}(hhh]j)}(h"lsm specific information to returnh]h"lsm specific information to return}(hjvNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrNhM hjsNubah}(h]h ]h"]h$]h&]uh1jChjWNubeh}(h]h ]h"]h$]h&]uh1j!hjrNhM hjNubeh}(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.chM hjMubj)}(h:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hjNhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhj whhhNhNubh)}(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}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhM ubj)}(hsecurity_kernfs_init_securityh]j)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhjNhM 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 }(hj'OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hj8OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5Oubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj:OmodnameN classnameNjwjz)}j}]j)}jsjOsbc.security_kernfs_init_securityasbuh1hhjOubh)}(h h]h }(hjXOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjfOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hkn_dirh]hkn_dir}(hjsOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubj5)}(hstruct kernfs_node *knh](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}]jTOc.security_kernfs_init_securityasbuh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hknh]hkn}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjNhhhjNhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjNhM ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhM hjNhhubj)}(hhh]j)}(h"Init LSM context for a kernfs nodeh]h"Init LSM context for a kernfs node}(hj PhhhNhNubah}(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&]uh1jhjNhhhjNhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%Pjj%Pjjjuh1hhhhj whNhNubj)}(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)}(hj/Ph]h Parameters}(hj1PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Pubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj)Pubj)}(hhh](j")}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j()}(h``struct kernfs_node *kn_dir``h]j.)}(hjNPh]hstruct kernfs_node *kn_dir}(hjPPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLPubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjHPubjD)}(hhh]j)}(hparent kernfs nodeh]hparent kernfs node}(hjgPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcPhM hjdPubah}(h]h ]h"]h$]h&]uh1jChjHPubeh}(h]h ]h"]h$]h&]uh1j!hjcPhM hjEPubj")}(h9``struct kernfs_node *kn`` the kernfs node to initialize h](j()}(h``struct kernfs_node *kn``h]j.)}(hjPh]hstruct kernfs_node *kn}(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)}(hthe kernfs node to initializeh]hthe kernfs node to initialize}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM hjPubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjPhM hjEPubeh}(h]h ]h"]h$]h&]uh1jhj)Pubj)}(h**Description**h]j)}(hjPh]h Description}(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 hj)Pubj)}(hlInitialize the security context of a newly created kernfs node based on its own and its parent's attributes.h]hnInitialize the security context of a newly created kernfs node based on its own and its parent’s attributes.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj)Pubj)}(h **Return**h]j)}(hjPh]hReturn}(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 hj)Pubj)}(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.chM hj)Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_file_permission (C function)c.security_file_permissionhNtauh1hhj whhhNhNubh)}(hhh](h)}(h:int security_file_permission (struct file *file, int mask)h]h)}(h9int security_file_permission(struct file *file, int mask)h](h)}(hinth]hint}(hj.QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*QhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj=QhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*Qhhhjh]hstruct}(hjkQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgQubh)}(h h]h }(hjxQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgQubh)}(hhh]j)}(hfileh]hfile}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjQQsbc.security_file_permissionasbuh1hhjgQubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgQubj)}(hfileh]hfile}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcQubj5)}(hint maskh](h)}(hinth]hint}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hmaskh]hmask}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcQubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj*Qhhhjh]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}Subh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Subh)}(hhh]j)}(hfileh]hfile}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsjgSsbc.security_file_allocasbuh1hhj}Subh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Subj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Subj)}(hfileh]hfile}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Subeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjySubah}(h]h ]h"]h$]h&]j,j-uh1j.hj@ShhhjRShM( ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjf_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)}(hj&Th]h Parameters}(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.chM$ hj Tubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjETh]hstruct file *file}(hjGThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCTubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM! hj?TubjD)}(hhh]j)}(hthe fileh]hthe file}(hj^ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZThM! hj[Tubah}(h]h ]h"]h$]h&]uh1jChj?Tubeh}(h]h ]h"]h$]h&]uh1j!hjZThM! hjf_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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM# hj Tubj)}(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.chM& hj Tubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM& hj Tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_file_release (C function)c.security_file_releasehNtauh1hhj whhhNhNubh)}(hhh](h)}(h.void security_file_release (struct file *file)h]h)}(h-void security_file_release(struct file *file)h](h)}(hvoidh]hvoid}(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_file_releaseh]j)}(hsecurity_file_releaseh]hsecurity_file_release}(hj UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Uubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjThM: ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hj)UhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%Uubh)}(h h]h }(hj6UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%Uubh)}(hhh]j)}(hfileh]hfile}(hjGUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjIUmodnameN classnameNjwjz)}j}]j)}jsjUsbc.security_file_releaseasbuh1hhj%Uubh)}(h h]h }(hjgUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%Uubj)}(hjh]h*}(hjuUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Uubj)}(hfileh]hfile}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%Uubeh}(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)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5 hjUhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThM: ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhj whNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Perform actions before releasing the last reference to a file.h](j)}(h**Parameters**h]j)}(hjUh]h Parameters}(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.chM9 hjUubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjUh]hstruct file *file}(hjUhhhNhNubah}(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.chM6 hjUubjD)}(hhh]j)}(hthe fileh]hthe file}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhM6 hjVubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjVhM6 hjUubah}(h]h ]h"]h$]h&]uh1jhjUubj)}(h**Description**h]j)}(hj(Vh]h Description}(hj*VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hjUubj)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hj>VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_file_free (C function)c.security_file_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h+void security_file_free (struct file *file)h]h)}(h*void security_file_free(struct file *file)h](h)}(hvoidh]hvoid}(hjmVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chME ubh)}(h h]h }(hj|VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiVhhhj{VhME ubj)}(hsecurity_file_freeh]j)}(hsecurity_file_freeh]hsecurity_file_free}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjiVhhhj{VhME ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](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)}(hfileh]hfile}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]j)}jsjVsbc.security_file_freeasbuh1hhjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hfileh]hfile}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubah}(h]h ]h"]h$]h&]j,j-uh1j.hjiVhhhj{VhME ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjeVhhhj{VhME ubah}(h]j`Vah ](jjeh"]h$]h&]jj)jhuh1hhj{VhME hjbVhhubj)}(hhh]j)}(hFree a file's LSM blobh]hFree a file’s LSM blob}(hj-WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@ hj*Whhubah}(h]h ]h"]h$]h&]uh1jhjbVhhhj{VhME ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEWjjEWjjjuh1hhhhj whNhNubj)}(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)}(hjOWh]h Parameters}(hjQWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMD hjIWubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjnWh]hstruct file *file}(hjpWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlWubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMA hjhWubjD)}(hhh]j)}(hthe fileh]hthe file}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMA hjWubah}(h]h ]h"]h$]h&]uh1jChjhWubeh}(h]h ]h"]h$]h&]uh1j!hjWhMA hjeWubah}(h]h ]h"]h$]h&]uh1jhjIWubj)}(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:287: ./security/security.chMC hjIWubj)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjIWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_mmap_file (C function)c.security_mmap_filehNtauh1hhj whhhNhNubh)}(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}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWhhhX/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&]uh1hhjWhhhjWhM ubj)}(hsecurity_mmap_fileh]j)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Xubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjWhhhjWhM ubj/)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hj+XhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj'Xubh)}(h h]h }(hj8XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'Xubh)}(hhh]j)}(hfileh]hfile}(hjIXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKXmodnameN classnameNjwjz)}j}]j)}jsjXsbc.security_mmap_fileasbuh1hhj'Xubh)}(h h]h }(hjiXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'Xubj)}(hjh]h*}(hjwXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Xubj)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'Xubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#Xubj5)}(hunsigned long proth](h)}(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)}(hproth]hprot}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#Xubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hlongh]hlong}(hj YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hflagsh]hflags}(hj&YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#Xubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjWhhhjWhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjWhM ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhM hjWhhubj)}(hhh]j)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjPYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjMYhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhYjjhYjjjuh1hhhhj whNhNubj)}(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)}(hjrYh]h Parameters}(hjtYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjlYubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjYh]hstruct file *file}(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:287: ./security/security.chM hjYubjD)}(hhh]j)}(hfileh]hfile}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM hjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhM hjYubj")}(h8``unsigned long prot`` protection applied by the kernel h](j()}(h``unsigned long prot``h]j.)}(hjYh]hunsigned long prot}(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:287: ./security/security.chM hjYubjD)}(hhh]j)}(h protection applied by the kernelh]h protection applied by the kernel}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM hjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhM hjYubj")}(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 hjYubjD)}(hhh]j)}(hflagsh]hflags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhM hjZubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjZhM hjYubeh}(h]h ]h"]h$]h&]uh1jhjlYubj)}(h**Description**h]j)}(hj>Zh]h Description}(hj@ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh]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)}jsjx\sbc.security_file_mprotectasbuh1hhj\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-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}(hjU]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ]ubh)}(h h]h }(hjc]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQ]ubh)}(hlongh]hlong}(hjq]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQ]ubj)}(hproth]hprot}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQ]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjQ\hhhjc\hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjM\hhhjc\hM ubah}(h]jH\ah ](jjeh"]h$]h&]jj)jhuh1hhjc\hM hjJ\hhubj)}(hhh]j)}(h/Check if changing memory protections is allowedh]h/Check if changing memory protections 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&]uh1jhjJ\hhhjc\hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]jj]jjjuh1hhhhj whNhNubj)}(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)}(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 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.)}(hj1^h]hunsigned long reqprot}(hj3^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}(hjJ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF^hM hjG^ubah}(h]h ]h"]h$]h&]uh1jChj+^ubeh}(h]h ]h"]h$]h&]uh1j!hjF^hM hj]ubj")}(h8``unsigned long prot`` protection applied by the kernel h](j()}(h``unsigned long prot``h]j.)}(hjj^h]hunsigned long prot}(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.chM hjd^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&]uh1jChjd^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)}(hh]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)}(hfileh]hfile}(hjl_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjn_modnameN classnameNjwjz)}j}]j)}jsj4_sbc.security_file_lockasbuh1hhjJ_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)}(hfileh]hfile}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJ_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjF_ubj5)}(hunsigned int 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_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-uh1j4hjF_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:`jjjuh1hhhhj whNhNubj)}(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)}(hjD`h]h Parameters}(hjF`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj>`ubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjc`h]hstruct file *file}(hje`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hja`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&]uh1jhjx`hM hjy`ubah}(h]h ]h"]h$]h&]uh1jChj]`ubeh}(h]h ]h"]h$]h&]uh1j!hjx`hM hjZ`ubj")}(h<``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) h](j()}(h``unsigned int cmd``h]j.)}(hj`h]hunsigned int 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&lock operation (e.g. F_RDLCK, F_WRLCK)h]h&lock operation (e.g. F_RDLCK, F_WRLCK)}(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 hjZ`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)}(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.}(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}(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 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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_file_fcntl (C function)c.security_file_fcntlhNtauh1hhj whhhNhNubh)}(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}(hjCahhhNhNubah}(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 }(hjRahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ahhhjQahM ubj)}(hsecurity_file_fcntlh]j)}(hsecurity_file_fcntlh]hsecurity_file_fcntl}(hjdahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`aubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?ahhhjQahM ubj/)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j5)}(hstruct file *fileh](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)}(hfileh]hfile}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jsjfasbc.security_file_fcntlasbuh1hhj|aubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|aubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|aubj)}(hfileh]hfile}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|aubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxaubj5)}(hunsigned int cmdh](h)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubh)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hcmdh]hcmd}(hj*bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxaubj5)}(hunsigned long argh](h)}(hunsignedh]hunsigned}(hjCbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?bubh)}(h h]h }(hjQbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?bubh)}(hlongh]hlong}(hj_bhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?bubh)}(h h]h }(hjmbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?bubj)}(hargh]harg}(hj{bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?bubeh}(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)}(hCheck if fcntl() op is allowedh]hCheck if fcntl() op is allowed}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjbhhubah}(h]h ]h"]h$]h&]uh1jhj8ahhhjQahM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhj whNhNubj)}(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)}(hjbh]h Parameters}(hjbhhhNhNubah}(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 hjbubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjbh]hstruct file *file}(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 hjbubjD)}(hhh]j)}(hfileh]hfile}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhM hjbubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hjbhM hjbubj")}(h#``unsigned int cmd`` fcntl command h](j()}(h``unsigned int cmd``h]j.)}(hjch]hunsigned int cmd}(hj!chhhNhNubah}(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}(hj8chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4chM hj5cubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj4chM hjbubj")}(h'``unsigned long arg`` command argument h](j()}(h``unsigned long arg``h]j.)}(hjXch]hunsigned long arg}(hjZchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVcubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRcubjD)}(hhh]j)}(hcommand argumenth]hcommand argument}(hjqchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmchM hjncubah}(h]h ]h"]h$]h&]uh1jChjRcubeh}(h]h ]h"]h$]h&]uh1j!hjmchM 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjbubj)}(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 }(hjchhhNhNubj)}(h**cmd**h]hcmd}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh" from being performed on the file }(hjchhhNhNubj)}(h**file**h]hfile}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh . Note that }(hjchhhNhNubj)}(h**arg**h]harg}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hjchhhNhNubj)}(h**arg**h]harg}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhQ represents a user space pointer, it should never be used by the security module.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjbubj)}(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 hjbubj)}(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 hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_file_set_fowner (C function)c.security_file_set_fownerhNtauh1hhj whhhNhNubh)}(hhh](h)}(h1void security_file_set_fowner (struct file *file)h]h)}(h0void security_file_set_fowner(struct file *file)h](h)}(hvoidh]hvoid}(hjGdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjVdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCdhhhjUdhM ubj)}(hsecurity_file_set_fownerh]j)}(hsecurity_file_set_fownerh]hsecurity_file_set_fowner}(hjhdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjddubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjCdhhhjUdhM ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jsjjdsbc.security_file_set_fownerasbuh1hhjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|dubah}(h]h ]h"]h$]h&]j,j-uh1j.hjCdhhhjUdhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?dhhhjUdhM ubah}(h]j:dah ](jjeh"]h$]h&]jj)jhuh1hhjUdhM hjsecurity) 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)}(hj)eh]h Parameters}(hj+ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'eubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj#eubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjHeh]hstruct file *file}(hjJehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFeubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjBeubjD)}(hhh]j)}(hthe fileh]hthe file}(hjaehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ehM hj^eubah}(h]h ]h"]h$]h&]uh1jChjBeubeh}(h]h ]h"]h$]h&]uh1j!hj]ehM hj?eubah}(h]h ]h"]h$]h&]uh1jhj#eubj)}(h**Description**h]j)}(hjeh]h Description}(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 hj#eubj)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj#eubj)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj#eubj)}(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.chM hj#eubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj#eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhj whhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhj fhM 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 hjehhhj fhM ubj/)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j5)}(hstruct task_struct *tskh](j;)}(hj>h]hstruct}(hj;fhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7fubh)}(h h]h }(hjHfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7fubh)}(hhh]j)}(h task_structh]h task_struct}(hjYfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[fmodnameN classnameNjwjz)}j}]j)}jsj!fsbc.security_file_send_sigiotaskasbuh1hhj7fubh)}(h h]h }(hjyfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7fubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7fubj)}(htskh]htsk}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7fubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3fubj5)}(hstruct fown_struct *fownh](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 fown_structh]h fown_struct}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]jufc.security_file_send_sigiotaskasbuh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hfownh]hfown}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3fubj5)}(hint sigh](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hj+ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hsigh]hsig}(hj9ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3fubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhj fhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhj fhM ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhj fhM hjehhubj)}(hhh]j)}(h(Check if sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG is allowed}(hjcghhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ghhubah}(h]h ]h"]h$]h&]uh1jhjehhhj fhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{gjj{gjjjuh1hhhhj whNhNubj)}(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)}(hjgh]h Parameters}(hjghhhNhNubah}(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.chM hjgubj)}(hhh](j")}(h(``struct task_struct *tsk`` target task h](j()}(h``struct task_struct *tsk``h]j.)}(hjgh]hstruct task_struct *tsk}(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.chM hjgubjD)}(hhh]j)}(h target taskh]h target task}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghM hjgubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjghM hjgubj")}(h+``struct fown_struct *fown`` signal sender h](j()}(h``struct fown_struct *fown``h]j.)}(hjgh]hstruct fown_struct *fown}(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.chM hjgubjD)}(hhh]j)}(h signal senderh]h signal sender}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghM hjgubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjghM hjgubj")}(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}(hj/hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hhM hj,hubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hj+hhM hjgubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjQhh]h Description}(hjShhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjgubj)}(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 }(hjghhhhNhNubj)}(h**fown**h]hfown}(hjohhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghubh( to send SIGIO or SIGURG to the process }(hjghhhhNhNubj)}(h**tsk**h]htsk}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghubhW. Note that this hook is sometimes called from interrupt. Note that the fown_struct, }(hjghhhhNhNubj)}(h**fown**h]hfown}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghubh, 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).}(hjghhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM 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.chM hjgubj)}(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 hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_file_receive (C function)c.security_file_receivehNtauh1hhj whhhNhNubh)}(hhh](h)}(h-int security_file_receive (struct file *file)h]h)}(h,int security_file_receive(struct file *file)h](h)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhX/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&]uh1hhjhhhhjihM 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 hjhhhhjihM ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hj0ihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,iubh)}(h h]h }(hj=ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,iubh)}(hhh]j)}(hfileh]hfile}(hjNihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPimodnameN classnameNjwjz)}j}]j)}jsjisbc.security_file_receiveasbuh1hhj,iubh)}(h h]h }(hjnihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,iubj)}(hjh]h*}(hj|ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,iubj)}(hfileh]hfile}(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.hjhhhhjihM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhjihM ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjihM hjhhhubj)}(hhh]j)}(h,Check if receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjihM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjijjijjjuh1hhhhj whNhNubj)}(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)}(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.chM hjiubj)}(hhh]j")}(h*``struct file *file`` file being received h](j()}(h``struct file *file``h]j.)}(hjih]hstruct file *file}(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:287: ./security/security.chM hjiubjD)}(hhh]j)}(hfile being receivedh]hfile being received}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj jhM hj jubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hj jhM hjiubah}(h]h ]h"]h$]h&]uh1jhjiubj)}(h**Description**h]j)}(hj/jh]h Description}(hj1jhhhNhNubah}(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.chM hjiubj)}(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.}(hjEjhhhNhNubah}(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)}(hjVjh]hReturn}(hjXjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjiubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjljhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_file_open (C function)c.security_file_openhNtauh1hhj whhhNhNubh)}(hhh](h)}(h*int security_file_open (struct file *file)h]h)}(h)int security_file_open(struct file *file)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 }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhjjhM( ubj)}(hsecurity_file_openh]j)}(hsecurity_file_openh]hsecurity_file_open}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhjjhM( ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](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)}(hfileh]hfile}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j)}jsjjsbc.security_file_openasbuh1hhjjubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hj$khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hfileh]hfile}(hj1khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhjjhM( ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjjhhhjjhM( ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhM( hjjhhubj)}(hhh]j)}(h.Save open() time state for late use by the LSMh]h.Save open() time state for late use by the LSM}(hj[khhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjXkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM( ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjskjjskjjjuh1hhhhj whNhNubj)}(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)}(hj}kh]h Parameters}(hjkhhhNhNubah}(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 hjwkubj)}(h``struct file *file``h]j.)}(hjkh]hstruct file *file}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM" hjwkubj)}(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.chM hjwkubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwkubj)}(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 .}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM" hjwkubj)}(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.chM& hjwkubj)}(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.chM& hjwkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_file_truncate (C function)c.security_file_truncatehNtauh1hhj whhhNhNubh)}(hhh](h)}(h.int security_file_truncate (struct file *file)h]h)}(h-int security_file_truncate(struct file *file)h](h)}(hinth]hint}(hj(lhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$lhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMH ubh)}(h h]h }(hj7lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$lhhhj6lhMH ubj)}(hsecurity_file_truncateh]j)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hjIlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjElubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$lhhhj6lhMH ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjelhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjalubh)}(h h]h }(hjrlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjalubh)}(hhh]j)}(hfileh]hfile}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j)}jsjKlsbc.security_file_truncateasbuh1hhjalubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjalubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjalubj)}(hfileh]hfile}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjalubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]lubah}(h]h ]h"]h$]h&]j,j-uh1j.hj$lhhhj6lhMH ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj lhhhj6lhMH ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhj6lhMH hjlhhubj)}(hhh]j)}(h%Check if truncating a file is allowedh]h%Check if truncating a file 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&]uh1jhjlhhhj6lhMH ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhj whNhNubj)}(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)}(hj mh]h Parameters}(hj mhhhNhNubah}(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.)}(hj)mh]hstruct file *file}(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@ hj#mubjD)}(hhh]j)}(hfileh]hfile}(hjBmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>mhM@ hj?mubah}(h]h ]h"]h$]h&]uh1jChj#mubeh}(h]h ]h"]h$]h&]uh1j!hj>mhM@ hj mubah}(h]h ]h"]h$]h&]uh1jhjmubj)}(h**Description**h]j)}(hjdmh]h Description}(hjfmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbmubah}(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 }(hjzmhhhNhNubj)}(h**path_truncate**h]h path_truncate}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzmubh hook.}(hjzmhhhNhNubeh}(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)}(hjmh]hReturn}(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.chMF hjmubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjmhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_task_alloc (C function)c.security_task_allochNtauh1hhj whhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjmhMV ubj)}(hsecurity_task_alloch]j)}(hsecurity_task_alloch]hsecurity_task_alloc}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjmhhhjmhMV 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 }(hj,nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h task_structh]h task_struct}(hj=nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:nubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?nmodnameN classnameNjwjz)}j}]j)}jsjnsbc.security_task_allocasbuh1hhjnubh)}(h h]h }(hj]nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjknhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(htaskh]htask}(hjxnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned long clone_flagsh](h)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h clone_flagsh]h clone_flags}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjmhhhjmhMV ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhjmhMV ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjmhMV hjmhhubj)}(hhh]j)}(hAllocate a task's LSM blobh]hAllocate a task’s LSM blob}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMN hjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhMV ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj ojj ojjjuh1hhhhj whNhNubj)}(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.)}(hj4oh]hstruct task_struct *task}(hj6ohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2oubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMO hj.oubjD)}(hhh]j)}(hthe taskh]hthe task}(hjMohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIohMO hjJoubah}(h]h ]h"]h$]h&]uh1jChj.oubeh}(h]h ]h"]h$]h&]uh1j!hjIohMO hj+oubj")}(hD``unsigned long clone_flags`` flags indicating what is being shared h](j()}(h``unsigned long clone_flags``h]j.)}(hjmoh]hunsigned long clone_flags}(hjoohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkoubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMP hjgoubjD)}(hhh]j)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMP hjoubah}(h]h ]h"]h$]h&]uh1jChjgoubeh}(h]h ]h"]h$]h&]uh1j!hjohMP hj+oubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(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:287: ./security/security.chMR hjoubj)}(h,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(hjohhhNhNubah}(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)}(hjoh]hReturn}(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.chMT hjoubj)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjohhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_task_free (C function)c.security_task_freehNtauh1hhj whhhNhNubh)}(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.chMi ubh)}(h h]h }(hj#phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhj"phMi ubj)}(hsecurity_task_freeh]j)}(hsecurity_task_freeh]hsecurity_task_free}(hj5phhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1pubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjphhhj"phMi ubj/)}(h(struct task_struct *task)h]j5)}(hstruct task_struct *taskh](j;)}(hj>h]hstruct}(hjQphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMpubh)}(h h]h }(hj^phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMpubh)}(hhh]j)}(h task_structh]h task_struct}(hjophhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqpmodnameN classnameNjwjz)}j}]j)}jsj7psbc.security_task_freeasbuh1hhjMpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMpubj)}(htaskh]htask}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIpubah}(h]h ]h"]h$]h&]j,j-uh1j.hjphhhj"phMi ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj phhhj"phMi ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhj"phMi hj phhubj)}(hhh]j)}(h,Free a task's LSM blob and related resourcesh]h.Free a task’s LSM blob and related resources}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc hjphhubah}(h]h ]h"]h$]h&]uh1jhj phhhj"phMi ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjpjjpjjjuh1hhhhj whNhNubj)}(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)}(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.chMg hjpubj)}(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}(hj.qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*qhMd hj+qubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hj*qhMd hj qubah}(h]h ]h"]h$]h&]uh1jhjpubj)}(h**Description**h]j)}(hjPqh]h Description}(hjRqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMf hjpubj)}(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.}(hjfqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMf hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhj whhhNhNubh)}(hhh](h)}(hh]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(hcredh]hcred}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jsjqsbc.security_cred_alloc_blankasbuh1hhjqubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hcredh]hcred}(hj+rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjGrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjIrmodnameN classnameNjwjz)}j}]j rc.security_cred_alloc_blankasbuh1hhj@rubh)}(h h]h }(hjerhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@rubj)}(hgfph]hgfp}(hjsrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@rubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(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)}(h.Allocate the min memory to allow cred_transferh]h.Allocate the min memory to allow cred_transfer}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMr hjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhM{ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhj whNhNubj)}(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)}(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.chMv hjrubj)}(hhh](j")}(h"``struct cred *cred`` credentials h](j()}(h``struct cred *cred``h]j.)}(hjrh]hstruct cred *cred}(hjrhhhNhNubah}(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.chMs hjrubjD)}(hhh]j)}(h credentialsh]h credentials}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhMs hjrubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjrhMs hjrubj")}(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}(hj0shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,shMt hj-subah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hj,shMt hjrubeh}(h]h ]h"]h$]h&]uh1jhjrubj)}(h**Description**h]j)}(hjRsh]h Description}(hjTshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMv hjrubj)}(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 }(hjhshhhNhNubj)}(h**cred**h]hcred}(hjpshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhsubh/ such that cred_transfer() will not get ENOMEM.}(hjhshhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMv 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.chMy hjrubj)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMy hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_cred_free (C function)c.security_cred_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h+void security_cred_free (struct cred *cred)h]h)}(h*void security_cred_free(struct cred *cred)h](h)}(hvoidh]hvoid}(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_cred_freeh]j)}(hsecurity_cred_freeh]hsecurity_cred_free}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjshhhjshM ubj/)}(h(struct cred *cred)h]j5)}(hstruct cred *credh](j;)}(hj>h]hstruct}(hj thhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj tubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj tubh)}(hhh]j)}(hcredh]hcred}(hj+thhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(tubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-tmodnameN classnameNjwjz)}j}]j)}jsjssbc.security_cred_freeasbuh1hhj tubh)}(h h]h }(hjKthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj tubj)}(hjh]h*}(hjYthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj tubj)}(hcredh]hcred}(hjfthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj tubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubah}(h]h ]h"]h$]h&]j,j-uh1j.hjshhhjshM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjshhhjshM ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshM hjshhubj)}(hhh]j)}(h1Free the cred's LSM blob and associated resourcesh]h3Free the cred’s LSM blob and associated resources}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhj whNhNubj)}(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)}(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 cred *cred`` credentials h](j()}(h``struct cred *cred``h]j.)}(hjth]hstruct cred *cred}(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)}(h credentialsh]h credentials}(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}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj uubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjtubj)}(hFDeallocate and clear the cred->security field in a set of credentials.h]hFDeallocate and clear the cred->security field in a set of credentials.}(hj"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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_prepare_creds (C function)c.security_prepare_credshNtauh1hhj whhhNhNubh)}(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}(hjQuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj`uhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMuhhhj_uhM ubj)}(hsecurity_prepare_credsh]j)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hjruhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMuhhhj_uhM ubj/)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j5)}(hstruct cred *newh](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)}(hcredh]hcred}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j)}jsjtusbc.security_prepare_credsasbuh1hhjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hnewh]hnew}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hj vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj;)}(hj>h]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hj(vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(hcredh]hcred}(hj9vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6vubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;vmodnameN classnameNjwjz)}j}]juc.security_prepare_credsasbuh1hhjuubh)}(h h]h }(hjWvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hjevhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(holdh]hold}(hjrvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]juc.security_prepare_credsasbuh1hhjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hgfph]hgfp}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjMuhhhj_uhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIuhhhj_uhM ubah}(h]jDuah ](jjeh"]h$]h&]jj)jhuh1hhj_uhM hjFuhhubj)}(hhh]j)}(h Prepare a new set of credentialsh]h Prepare a new set of credentials}(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&]uh1jhjFuhhhj_uhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvjjvjjjuh1hhhhj whNhNubj)}(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.)}(hj%wh]hstruct cred *new}(hj'whhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#wubah}(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}(hj>whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:whM hj;wubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hj:whM hjwubj")}(h0``const struct cred *old`` original credentials h](j()}(h``const struct cred *old``h]j.)}(hj^wh]hconst struct cred *old}(hj`whhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\wubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjXwubjD)}(hhh]j)}(horiginal credentialsh]horiginal credentials}(hjwwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjswhM hjtwubah}(h]h ]h"]h$]h&]uh1jChjXwubeh}(h]h ]h"]h$]h&]uh1j!hjswhM hjwubj")}(h``gfp_t gfp`` gfp flags h](j()}(h ``gfp_t gfp``h]j.)}(hjwh]h gfp_t gfp}(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)}(h gfp flagsh]h gfp flags}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhM hjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhM hjwubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(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: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.}(hjwhhhNhNubah}(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)}(hjwh]hReturn}(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)}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_transfer_creds (C function)c.security_transfer_credshNtauh1hhj whhhNhNubh)}(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}(hj>xhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:xhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjMxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:xhhhjLxhM ubj)}(hsecurity_transfer_credsh]j)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hj_xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[xubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:xhhhjLxhM ubj/)}(h*(struct cred *new, const struct cred *old)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hj{xhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjwxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwxubh)}(hhh]j)}(hcredh]hcred}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsjaxsbc.security_transfer_credsasbuh1hhjwxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwxubj)}(hnewh]hnew}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsxubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj;)}(hj>h]hstruct}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hhh]j)}(hcredh]hcred}(hj&yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#yubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(ymodnameN classnameNjwjz)}j}]jxc.security_transfer_credsasbuh1hhjxubh)}(h h]h }(hjDyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjRyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(holdh]hold}(hj_yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsxubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj:xhhhjLxhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6xhhhjLxhM ubah}(h]j1xah ](jjeh"]h$]h&]jj)jhuh1hhjLxhM hj3xhhubj)}(hhh]j)}(hTransfer credsh]hTransfer creds}(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&]uh1jhj3xhhhjLxhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhj whNhNubj)}(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)}(hjyh]h Parameters}(hjyhhhNhNubah}(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.chM hjyubj)}(hhh](j")}(h(``struct cred *new`` target credentials h](j()}(h``struct cred *new``h]j.)}(hjyh]hstruct cred *new}(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:287: ./security/security.chM hjyubjD)}(hhh]j)}(htarget credentialsh]htarget credentials}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhM hjyubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjyhM hjyubj")}(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 hjyubjD)}(hhh]j)}(horiginal credentialsh]horiginal credentials}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM hjzubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjzhM hjyubeh}(h]h ]h"]h$]h&]uh1jhjyubj)}(h**Description**h]j)}(hj>zh]h Description}(hj@zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh]hstruct}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(hcredh]hcred}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]j)}jsjzsbc.security_kernel_act_asasbuh1hhjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hj {hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hnewh]hnew}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubj5)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hj5{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7{modnameN classnameNjwjz)}j}]jzc.security_kernel_act_asasbuh1hhj.{ubh)}(h h]h }(hjS{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.{ubj)}(hsecidh]hsecid}(hja{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjzhhhjzhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{zhhhjzhM ubah}(h]jvzah ](jjeh"]h$]h&]jj)jhuh1hhjzhM hjxzhhubj)}(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&]uh1jhjxzhhhjzhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{jj{jjjuh1hhhhj whNhNubj)}(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)}(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`` 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)}(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``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 hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubj)}(h**Description**h]j)}(hj@|h]h Description}(hjB|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj{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 }(hjV|hhhNhNubj)}(h **secid**h]hsecid}(hj^|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV|ubh.}(hjV|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)}(hjy|h]hReturn}(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 hj{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 hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhj whhhNhNubh)}(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&]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_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 hj|hhhj|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 }(hj9}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hjh]h*}(hjG}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hnewh]hnew}(hjT}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}(hjm}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hji}ubh)}(h h]h }(hjz}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji}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}]j5}!c.security_kernel_create_files_asasbuh1hhji}ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji}ubj)}(hinodeh]hinode}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji}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(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&]uh1jhj|hhhj|hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhj whNhNubj)}(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}(hj1~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}(hjH~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD~hM hjE~ubah}(h]h ]h"]h$]h&]uh1jChj)~ubeh}(h]h ]h"]h$]h&]uh1j!hjD~hM hj&~ubj")}(h(``struct inode *inode`` reference inode h](j()}(h``struct inode *inode``h]j.)}(hjh~h]hstruct inode *inode}(hjj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjf~ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjb~ubjD)}(hhh]j)}(hreference inodeh]hreference inode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}~hM hj~~ubah}(h]h ]h"]h$]h&]uh1jChjb~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)}(hSet the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated **inode**.h](hSet the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated }(hj~hhhNhNubj)}(h **inode**h]hinode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]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)}(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 hj ~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhj whhhNhNubh)}(hhh](h)}(h4int security_kernel_module_request (char *kmod_name)h]h)}(h3int security_kernel_module_request(char *kmod_name)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.chM ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj/hM ubj)}(hsecurity_kernel_module_requesth]j)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj/hM ubj/)}(h(char *kmod_name)h]j5)}(hchar *kmod_nameh](h)}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h kmod_nameh]h kmod_name}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubah}(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$Check if loading a module is allowedh]h$Check if loading a module 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&]uh1jhjhhhj/hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 ``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}(hj hhhNhNubah}(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}(hj/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}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.}(hjChhhNhNubah}(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)}(hjTh]hReturn}(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)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjjhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMc ubj)}(hsecurity_task_fix_setuidh]j)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMc ubj/)}(h5(struct cred *new, const struct cred *old, int flags)h](j5)}(hstruct cred *newh](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)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_fix_setuidasbuh1hhjҀubh)}(h h]h }(hjhhhNhNubah}(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)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj;)}(hj>h]hstruct}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_task_fix_setuidasbuh1hhjDubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj΀ubj5)}(h int flagsh](h)}(hinth]hint}(hjӁhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjρubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjρubj)}(hflagsh]hflags}(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.hjhhhjhMc ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMc ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMc hjhhubj)}(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&]uh1jhjhhhjhMc ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1jj1jjjuh1hhhhj whNhNubj)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZ hj5ubj)}(hhh](j")}(h)``struct cred *new`` updated credentials h](j()}(h``struct cred *new``h]j.)}(hjZh]hstruct cred *new}(hj\hhhNhNubah}(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.chMW hjTubjD)}(hhh]j)}(hupdated credentialsh]hupdated credentials}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMW hjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohMW hjQubj")}(h6``const struct cred *old`` credentials being replaced h](j()}(h``const struct cred *old``h]j.)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMX hjubjD)}(hhh]j)}(hcredentials being replacedh]hcredentials being replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMX hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMX hjQubj")}(h&``int flags`` LSM_SETID_* flag values h](j()}(h ``int flags``h]j.)}(hĵh]h 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.chMY hjƂubjD)}(hhh]j)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMY hjubah}(h]h ]h"]h$]h&]uh1jChjƂubeh}(h]h ]h"]h$]h&]uh1j!hjhMY hjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(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[ hj5ubj)}(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}(hj7hhhNhNubah}(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}(hjIhhhNhNubah}(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[ hj5ubj)}(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.chMa hj5ubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMa hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMw ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMw ubj)}(hsecurity_task_fix_setgidh]j)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hjʃhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjƃubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMw 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)}jsj̃sbc.security_task_fix_setgidasbuh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj2hhhNhNubah}(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}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj;)}(hj>h]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.security_task_fix_setgidasbuh1hhjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(holdh]hold}(hjʄhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjރubj5)}(h int flagsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj߄ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj߄ubj)}(hflagsh]hflags}(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.hjhhhjhMw ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMw ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMw hjhhubj)}(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&]uh1jhjhhhjhMw ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj whNhNubj)}(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)}(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.chMn hjEubj)}(hhh](j")}(h)``struct cred *new`` updated credentials h](j()}(h``struct cred *new``h]j.)}(hjjh]hstruct cred *new}(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.chMk hjdubjD)}(hhh]j)}(hupdated credentialsh]hupdated credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMk hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMk hjaubj")}(h6``const struct cred *old`` credentials being replaced h](j()}(h``const struct cred *old``h]j.)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMl hjubjD)}(hhh]j)}(hcredentials being replacedh]hcredentials being replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMl hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMl hjaubj")}(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-hjڅubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMm hjօubjD)}(hhh]j)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMm hjubah}(h]h ]h"]h$]h&]uh1jChjօubeh}(h]h ]h"]h$]h&]uh1j!hjhMm hjaubeh}(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.chMo hjEubj)}(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}(hj5hhhNhNubah}(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}(hjGhhhNhNubah}(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}(hjYhhhNhNubah}(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 hjEubj)}(h **Return**h]j)}(hjth]hReturn}(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.chMu hjEubj)}(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.chMu hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhj whhhNhNubh)}(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}(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&]uh1hhjhhhjdžhM ubj)}(hsecurity_task_fix_setgroupsh]j)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hjچhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjֆubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjdžhM 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 }(hj4hhhNhNubah}(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)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j0c.security_task_fix_setgroupsasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hj͇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(holdh]hold}(hjڇhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjdžhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjdžhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjdžhM hjhhubj)}(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&]uh1jhjhhhjdžhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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 hj ubj)}(hhh](j")}(h)``struct cred *new`` updated credentials h](j()}(h``struct cred *new``h]j.)}(hjEh]hstruct cred *new}(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)}(hupdated credentialsh]hupdated credentials}(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``const struct cred *old`` credentials being replaced h](j()}(h``const struct cred *old``h]j.)}(hj~h]hconst struct cred *old}(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.chM hjxubjD)}(hhh]j)}(hcredentials being replacedh]hcredentials being replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(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)}(hUpdate the module's state after setting the supplementary group identity attributes of the current process. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](hoUpdate the module’s state after setting the supplementary group identity attributes of the current process. }(hjψhhhNhNubj)}(h**new**h]hnew}(hj׈hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjψubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjψhhhNhNubj)}(h**current->cred**h]h current->cred}(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.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)}(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 hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhj whhhNhNubh)}(hhh](h)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)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 task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjlsbc.security_task_setpgidasbuh1hhjubh)}(h h]h }(hjĉhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj҉hhhNhNubah}(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)}(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}]jc.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-uh1j4hj~ubeh}(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)}(h$Check if setting the pgid is allowedh]h$Check if setting the pgid is allowed}(hjPhhhNhNubah}(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&]uh1jhj>hhhjWhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhjjhjjjuh1hhhhj whNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(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 hjlubj)}(hhh](j")}(h.``struct task_struct *p`` task being modified 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)}(htask being modifiedh]htask being modified}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(h``pid_t pgid`` new pgid h](j()}(h``pid_t pgid``h]j.)}(hjʊh]h pid_t pgid}(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)}(hnew pgidh]hnew pgid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߊhM hjubah}(h]h ]h"]h$]h&]uh1jChjĊubeh}(h]h ]h"]h$]h&]uh1j!hjߊhM hjubeh}(h]h ]h"]h$]h&]uh1jhjlubj)}(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 hjlubj)}(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}(hj5hhhNhNubah}(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 hjlubj)}(h **Return**h]j)}(hjPh]hReturn}(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 hjlubj)}(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.chM hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_getpgid (C function)c.security_task_getpgidhNtauh1hhj whhhNhNubh)}(hhh](h)}(h1int security_task_getpgid (struct task_struct *p)h]h)}(h0int security_task_getpgid(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_getpgidh]j)}(hsecurity_task_getpgidh]hsecurity_task_getpgid}(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}(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 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_task_getpgidasbuh1hhj΋ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj΋ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΋ubj)}(hjh]hp}(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)}(h$Check if getting the pgid is allowedh]h$Check if getting the pgid is allowed}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjljjljjjuh1hhhhj whNhNubj)}(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)}(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.chM hjpubj)}(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&]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.chM hjpubj)}(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 hjpubj)}(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.chM hjpubj)}(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 hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_task_getsid (C function)c.security_task_getsidhNtauh1hhj whhhNhNubh)}(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}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJhhhX/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&]uh1hhjJhhhj\hM ubj)}(hsecurity_task_getsidh]j)}(hsecurity_task_getsidh]hsecurity_task_getsid}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJhhhj\hM 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 reftargetjmodnameN classnameNjwjz)}j}]j)}jsjqsbc.security_task_getsidasbuh1hhjubh)}(h h]h }(hjɍhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj׍hhhNhNubah}(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.hjJhhhj\hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjFhhhj\hM ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj\hM hjChhubj)}(hhh]j)}(h*Check if getting the session id is allowedh]h*Check if getting the session id is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhj whNhNubj)}(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}(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.chM hj)ubj)}(hhh]j")}(h``struct task_struct *p`` task 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.chM hjHubjD)}(hhh]j)}(htaskh]htask}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchM hjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchM hjEubah}(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)}(hLCheck permission before getting the session identifier of the process **p**.h](hFCheck permission before getting the session 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 hj)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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_setnice (C function)c.security_task_setnicehNtauh1hhj whhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j)}(h task_structh]h task_struct}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jsj*sbc.security_task_setniceasbuh1hhj@ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjhhhNhNubah}(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<ubj5)}(hint niceh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjÏhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hniceh]hnice}(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)}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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 hj6ubjD)}(hhh]j)}(h target taskh]h target task}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhM hjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhM hj3ubj")}(h``int nice`` nice value h](j()}(h ``int nice``h]j.)}(hjuh]hint nice}(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.chM hjoubjD)}(hhh]j)}(h nice valueh]h nice value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj3ubeh}(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)}(hDCheck permission before setting the nice value of **p** to **nice**.h](h2Check permission before setting the nice value of }(hjƐhhhNhNubj)}(h**p**h]hp}(hjΐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƐubh to }(hjƐhhhNhNubj)}(h**nice**h]hnice}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhj whhhNhNubh)}(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}(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 }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<hhhjNhM ubj)}(hsecurity_task_setioprioh]j)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj<hhhjNhM ubj/)}(h#(struct task_struct *p, int ioprio)h](j5)}(hstruct task_struct *ph](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)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjcsbc.security_task_setioprioasbuh1hhjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjɑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjh]hp}(hj֑hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubj5)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubeh}(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+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj1hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjLjjLjjjuh1hhhhj whNhNubj)}(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)}(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.chM hjPubj)}(hhh](j")}(h&``struct task_struct *p`` target task h](j()}(h``struct task_struct *p``h]j.)}(hjuh]hstruct task_struct *p}(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.chM hjoubjD)}(hhh]j)}(h target taskh]h target task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjlubj")}(h``int ioprio`` ioprio value h](j()}(h``int ioprio``h]j.)}(hjh]h int ioprio}(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 ioprio valueh]h ioprio 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 hjlubeh}(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.chM hjPubj)}(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 hjPubj)}(h **Return**h]j)}(hj4h]hReturn}(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.chM hjPubj)}(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 hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhj whhhNhNubh)}(hhh](h)}(h3int security_task_getioprio (struct task_struct *p)h]h)}(h2int security_task_getioprio(struct task_struct *p)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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhM ubj)}(hsecurity_task_getioprioh]j)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjhM 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 }(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_getioprioasbuh1hhjubh)}(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.hjuhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjhM ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjnhhubj)}(hhh]j)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hj8hhhNhNubah}(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&]uh1jhjnhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjPjjPjjjuh1hhhhj whNhNubj)}(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)}(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:287: ./security/security.chM hjTubj)}(hhh]j")}(h``struct task_struct *p`` task h](j()}(h``struct task_struct *p``h]j.)}(hjyh]hstruct task_struct *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:287: ./security/security.chM hjsubjD)}(hhh]j)}(htaskh]htask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjpubah}(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:287: ./security/security.chM hjTubj)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hjʔhhhNhNubj)}(h**p**h]hp}(hjҔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʔubh.}(hjʔhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjTubj)}(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 hjTubj)}(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 hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_prlimit (C function)c.security_task_prlimithNtauh1hhj whhhNhNubh)}(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}(hj2hhhNhNubah}(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 }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj@hM ubj)}(hsecurity_task_prlimith]j)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj@hM ubj/)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjkubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjkubh)}(h h]h }(hjhhhNhNubah}(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.security_task_prlimitasbuh1hhjkubh)}(h h]h }(hjȕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hj֕hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubj5)}(hconst struct cred *tcredh](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)}(hcredh]hcred}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7modnameN classnameNjwjz)}j}]jĕc.security_task_prlimitasbuh1hhjubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htcredh]htcred}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubj5)}(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-uh1j4hjgubeh}(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)}(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'hhhj@hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.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}(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")}(h5``const struct cred *tcred`` target task credentials h](j()}(h``const struct cred *tcred``h]j.)}(hjch]hconst struct cred *tcred}(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)}(htarget task credentialsh]htarget task credentials}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhj!ubj")}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both 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)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(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)}(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)}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhj whhhNhNubh)}(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}(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_task_setrlimith]j)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?hhhjQhMubj/)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j5)}(hstruct task_struct *ph](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)}jsjfsbc.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)}(hjh]hp}(hj٘hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(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}(hj hhhNhNubah}(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-uh1j4hjxubj5)}(hstruct rlimit *new_rlimh](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)}(hrlimith]hrlimit}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]jc.security_task_setrlimitasbuh1hhj>ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hnew_rlimh]hnew_rlim}(hjhhhNhNubah}(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?hhhjQhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj)}(hhh]j)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hjÙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjۙjjۙjjjuh1hhhhj whNhNubj)}(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.chMhjߙubj)}(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.chMhj7ubjD)}(hhh]j)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhjubj")}(h/``struct rlimit *new_rlim`` new resource limit h](j()}(h``struct rlimit *new_rlim``h]j.)}(hjvh]hstruct rlimit *new_rlim}(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)}(hnew resource limith]hnew resource limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjߙubj)}(hCheck permission before setting the resource limits of process **p** for **resource** to **new_rlim**. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).h](h?Check permission before setting the resource limits of process }(hjǚhhhNhNubj)}(h**p**h]hp}(hjϚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǚubh for }(hjǚhhhNhNubj)}(h **resource**h]hresource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǚubh to }(hjǚhhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǚubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hjǚhhhNhNubeh}(h]h ]h"]h$]h&]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&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhj whhhNhNubh)}(hhh](h)}(h6int security_task_setscheduler (struct task_struct *p)h]h)}(h5int security_task_setscheduler(struct task_struct *p)h](h)}(hinth]hint}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhjahM*ubj)}(hsecurity_task_setschedulerh]j)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOhhhjahM*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 reftargetjmodnameN classnameNjwjz)}j}]j)}jsjvsbc.security_task_setschedulerasbuh1hhjubh)}(h h]h }(hjΛhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjܛhhhNhNubah}(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.hjOhhhjahM*ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhjahM*ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahM*hjHhhubj)}(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&]uh1jhjHhhhjahM*ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhj whNhNubj)}(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)}(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.chM&hj.ubj)}(hhh]j")}(h&``struct task_struct *p`` target task h](j()}(h``struct task_struct *p``h]j.)}(hjSh]hstruct task_struct *p}(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.chM#hjMubjD)}(hhh]j)}(h target taskh]h target task}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM#hjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhM#hjJubah}(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)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of 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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhj whhhNhNubh)}(hhh](h)}(h6int security_task_getscheduler (struct task_struct *p)h]h)}(h5int security_task_getscheduler(struct task_struct *p)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.chM7ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM7ubj)}(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 hjhhhjhM7ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjIhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjEubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubh)}(hhh]j)}(h task_structh]h task_struct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]j)}jsj/sbc.security_task_getschedulerasbuh1hhjEubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubah}(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 getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hj˝hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0hjȝhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(hj h]hstruct task_struct *p}(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.chM1hjubjD)}(hhh]j)}(h target taskh]h target task}(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)}(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.chM3hjubj)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hj]hhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(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.chM3hjubj)}(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.chM5hjubj)}(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.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_task_movememory (C function)c.security_task_movememoryhNtauh1hhj whhhNhNubh)}(hhh](h)}(h4int security_task_movememory (struct task_struct *p)h]h)}(h3int security_task_movememory(struct task_struct *p)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.chMDubh)}(h h]h }(hjԞhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjӞhMDubj)}(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 hjhhhjӞhMDubj/)}(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}(hj hhhNhNubah}(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 }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(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.hjhhhjӞhMDubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjӞhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjӞhMDhjhhubj)}(hhh]j)}(h!Check if moving memory is allowedh]h!Check if moving memory 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&]uh1jhjhhhjӞhMDubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMAhjubj)}(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.chM>hjubjD)}(hhh]j)}(htaskh]htask}(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>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 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@hjubj)}(h **Return**h]j)}(hj9h]hReturn}(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.chMBhjubj)}(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.chMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_task_kill (C function)c.security_task_killhNtauh1hhj whhhNhNubh)}(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}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjhMXubj)}(hsecurity_task_killh]j)}(hsecurity_task_killh]hsecurity_task_kill}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhjhMXubj/)}(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}(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.security_task_killasbuh1hhjubh)}(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-uh1j4hjubj5)}(hstruct kernel_siginfo *infoh](j;)}(hj>h]hstruct}(hj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubh)}(hhh]j)}(hkernel_siginfoh]hkernel_siginfo}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjLmodnameN classnameNjwjz)}j}]jc.security_task_killasbuh1hhj(ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint sigh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsigh]hsig}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}(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}]jc.security_task_killasbuh1hhj͡ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͡ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͡ubj)}(hcredh]hcred}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͡ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjzhhhjhMXubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjhMXubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMXhjshhubj)}(hhh]j)}(h$Check if sending a signal is allowedh]h$Check if sending a signal is allowed}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhjjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMXubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMNhjubj)}(hhh](j")}(h)``struct task_struct *p`` target process 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.chMKhjubjD)}(hhh]j)}(htarget processh]htarget process}(hjǢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjâhMKhjĢubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjâhMKhjubj")}(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!hjhMLhjubj")}(h``int sig`` signal value h](j()}(h ``int sig``h]j.)}(hj h]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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMMhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMMhjubj")}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j()}(h``const struct cred *cred``h]j.)}(hjYh]hconst struct cred *cred}(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.chMNhjSubjD)}(hhh]j)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hjrhhhNhNubj)}(h **current**h]hcurrent}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjnhMNhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMNhjubeh}(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.chMPhjubj)}(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 }(hjhhhNhNubj)}(h**sig**h]hsig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**p**h]hp}(hjңhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**info**h]hinfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hjhhhNhNubj)}(h**info**h]hinfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMPhjubj)}(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.chMVhjubj)}(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.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_task_prctl (C function)c.security_task_prctlhNtauh1hhj whhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMlubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhjdhMlubj)}(hsecurity_task_prctlh]j)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhhjdhMlubj/)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j5)}(h int optionh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoptionh]hoption}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long arg2h](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)}(harg2h]harg2}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjĤubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(harg3h]harg3}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long arg4h](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)}(harg4h]harg4}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long arg5h](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)}(harg5h]harg5}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjRhhhjdhMlubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjdhMlubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMlhjKhhubj)}(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&]uh1jhjKhhhjdhMlubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhj whNhNubj)}(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}(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.chMchj9ubj)}(hhh](j")}(h``int option`` operation h](j()}(h``int option``h]j.)}(hj^h]h int option}(hj`hhhNhNubah}(h]h ]h"]h$]h&]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)}(h operationh]h operation}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshM`hjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshM`hjUubj")}(h ``unsigned long arg2`` argument h](j()}(h``unsigned long arg2``h]j.)}(hjh]hunsigned long arg2}(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)}(hargumenth]hargument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMahjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMahjUubj")}(h ``unsigned long arg3`` argument h](j()}(h``unsigned long arg3``h]j.)}(hjЦh]hunsigned long arg3}(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)}(hargumenth]hargument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMbhjubah}(h]h ]h"]h$]h&]uh1jChjʦubeh}(h]h ]h"]h$]h&]uh1j!hjhMbhjUubj")}(h ``unsigned long arg4`` argument h](j()}(h``unsigned long arg4``h]j.)}(hj h]hunsigned long arg4}(hj hhhNhNubah}(h]h ]h"]h$]h&]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!hjhMchjUubj")}(h ``unsigned long arg5`` argument h](j()}(h``unsigned long arg5``h]j.)}(hjBh]hunsigned long arg5}(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.chMdhj<ubjD)}(hhh]j)}(hargumenth]hargument}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMdhjXubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hjWhMdhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubj)}(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.chMfhj9ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhj9ubj)}(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.chMihj9ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjubjD)}(hhh]j)}(h7to cause prctl() to return immediately with that value.h]h7to cause prctl() to return immediately with that value.}(hjӧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjЧubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjϧhMihjubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_task_to_inode (C function)c.security_task_to_inodehNtauh1hhj whhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(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}(hjQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j)}(h task_structh]h task_struct}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jsj7sbc.security_task_to_inodeasbuh1hhjMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubj5)}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjݨubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_task_to_inodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj"hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hMhj hhubj)}(hhh]j)}(h-Set the security attributes of a task's inodeh]h/Set the security attributes of a task’s inode}(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 hhhj"hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[jj[jjjuh1hhhhj whNhNubj)}(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)}(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 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.chMhj~ubjD)}(hhh]j)}(htaskh]htask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj{ubj")}(h``struct inode *inode`` 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)}(hinodeh]hinode}(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)}(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.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_create_user_ns (C function)c.security_create_user_nshNtauh1hhj whhhNhNubh)}(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&]uh1hhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjKhMubj)}(hsecurity_create_user_nsh]j)}(hsecurity_create_user_nsh]hsecurity_create_user_ns}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhjKhMubj/)}(h(const struct cred *cred)h]j5)}(hconst struct cred *credh](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)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj`sbc.security_create_user_nsasbuh1hhjvubh)}(h h]h }(hjӪhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubah}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhjKhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj2hhubj)}(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&]uh1jhj2hhhjKhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0jj0jjjuh1hhhhj whNhNubj)}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubj)}(hhh]j")}(h+``const struct cred *cred`` prepared creds h](j()}(h``const struct cred *cred``h]j.)}(hjYh]hconst struct cred *cred}(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.chMhjSubjD)}(hhh]j)}(hprepared credsh]hprepared creds}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjPubah}(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.chMhj4ubj)}(h8Check permission prior to creating a new user namespace.h]h8Check permission prior to creating a new user namespace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubj)}(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.chMhj4ubj)}(h2Returns 0 if successful, otherwise < 0 error code.h]h2Returns 0 if successful, otherwise < 0 error code.}(hjѫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_ipc_permission (C function)c.security_ipc_permissionhNtauh1hhj whhhNhNubh)}(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}(hj!hhhNhNubah}(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:hj9ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj#sbc.security_ipc_permissionasbuh1hhj9ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hipcph]hipcp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(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}(hjˬhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubeh}(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&]jjqjj jj jjjuh1hhhhj whNhNubj)}(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.)}(hj6h]hstruct kern_ipc_perm *ipcp}(hj8hhhNhNubah}(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.chMhj0ubjD)}(hhh]j)}(hipc permission structureh]hipc permission structure}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhMhj-ubj")}(h%``short flag`` requested permissions h](j()}(h``short flag``h]j.)}(hjoh]h short flag}(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.chMhjiubjD)}(hhh]j)}(hrequested permissionsh]hrequested permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(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)}(h$Check permissions for access to IPC.h]h$Check permissions for access to IPC.}(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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_ipc_getlsmprop (C function)c.security_ipc_getlsmprophNtauh1hhj whhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(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}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsj9sbc.security_ipc_getlsmpropasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hipcph]hipcp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubj5)}(hstruct lsm_prop *proph](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)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_ipc_getlsmpropasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproph]hprop}(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)}(h Get the sysv ipc object LSM datah]h Get the sysv ipc object LSM data}(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 hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhj whNhNubj)}(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)}(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")}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure 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'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hipc permission structureh]hipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj~ubj")}(h5``struct lsm_prop *prop`` pointer to lsm information h](j()}(h``struct lsm_prop *prop``h]j.)}(hjh]hstruct lsm_prop *prop}(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)}(hpointer to lsm informationh]hpointer to lsm information}(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&]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)}(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.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_msg_msg_alloc (C function)c.security_msg_msg_allochNtauh1hhj whhhNhNubh)}(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}(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_msg_msg_alloch]j)}(hsecurity_msg_msg_alloch]hsecurity_msg_msg_alloc}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj<hhhjNhMubj/)}(h(struct msg_msg *msg)h]j5)}(hstruct msg_msg *msgh](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)}(hmsg_msgh]hmsg_msg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjcsbc.security_msg_msg_allocasbuh1hhjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjɰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hmsgh]hmsg}(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<hhhjNhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhMhj5hhubj)}(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&]uh1jhj5hhhjNhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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&]uh1jhj ubah}(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.)}(hjAh]hstruct msg_msg *msg}(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)}(hmessage structureh]hmessage structure}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hjVhMhj8ubah}(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: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.}(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 and permission is granted.h]h?Return 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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhj whhhNhNubh)}(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}(hj hhhNhNubah}(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:hj!ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]j)}jsj sbc.security_msg_msg_freeasbuh1hhj!ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(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-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}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.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.chMhjIJubj)}(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&]uh1jhjIJubj)}(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.chMhjIJubj)}(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.chMhjIJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhj whhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjwhMubj)}(hsecurity_msg_queue_alloch]j)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjwhMubj/)}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjijhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjƳmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_allocasbuh1hhjubh)}(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-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjwhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj^hhubj)}(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&]uh1jhj^hhhjwhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj whNhNubj)}(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)}(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")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hjjh]hstruct kern_ipc_perm *msq}(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)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjaubah}(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)}(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 }(hjhhhNhNubj)}(h**msg**h]hmsg}(hjôhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP. 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.chMhjEubj)}(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.chMhjEubj)}(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.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhj whhhNhNubh)}(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 }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj1hMubj)}(hsecurity_msg_queue_freeh]j)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj1hMubj/)}(h(struct kern_ipc_perm *msq)h]j5)}(hstruct kern_ipc_perm *msqh](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 kern_ipc_permh]h kern_ipc_perm}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjFsbc.security_msg_queue_freeasbuh1hhj\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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj1hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhjhhubj)}(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&]uh1jhjhhhj1hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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&]uh1jhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhjubah}(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:287: ./security/security.chMhjubj)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjuhhhNhNubj)}(h**perm->security**h]hperm->security}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh for the message queue.}(hjuhhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhj whhhNhNubh)}(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}(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_msg_queue_associateh]j)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hj׶hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӶubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjĶhMubj/)}(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)}jsjٶsbc.security_msg_queue_associateasbuh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int msqflgh](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hmsqflgh]hmsqflg}(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)Check if a msg queue operation is allowedh]h)Check if a msg queue 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&]uh1jhjhhhjĶhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj÷jj÷jjjuh1hhhhj whNhNubj)}(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)}(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 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&]uh1jhjǷubj)}(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.chMhjǷubj)}(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.}(hjvhhhNhNubah}(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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhj whhhNhNubh)}(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}(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_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 hjȸhhhjڸhMubj/)}(h$(struct kern_ipc_perm *msq, int cmd)h](j5)}(hstruct kern_ipc_perm *msqh](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 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 }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint cmdh](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(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ڸhMhjhhubj)}(hhh]j)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue 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&]uh1jhjhhhjڸhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjٹjjٹjjjuh1hhhhj whNhNubj)}(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-hj9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj5ubjD)}(hhh]j)}(h operationh]h operation}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM hjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhM hjubeh}(h]h ]h"]h$]h&]uh1jhjݹubj)}(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.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 }(hjhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: is to be performed on the message queue with permissions.}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhj whhhNhNubh)}(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.chM"ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM"ubj)}(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 hjhhhjhM"ubj/)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j5)}(hstruct kern_ipc_perm *msqh](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)}(h kern_ipc_permh]h kern_ipc_perm}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_msgsndasbuh1hhj-ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hmsqh]hmsq}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(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 reftargetjûmodnameN classnameNjwjz)}j}]jkc.security_msg_queue_msgsndasbuh1hhjubh)}(h h]h }(hj߻hhhNhNubah}(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-uh1j4hj)ubj5)}(h int msqflgh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj!hhhNhNubah}(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.hjhhhjhM"ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM"ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM"hjhhubj)}(hhh]j)}(h.Check if sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM"ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhj whNhNubj)}(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)}(hj{h]h Parameters}(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.chMhjuubj)}(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 ``struct msg_msg *msg`` message h](j()}(h``struct msg_msg *msg``h]j.)}(hjӼh]hstruct msg_msg *msg}(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)}(hmessageh]hmessage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjͼubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``int msqflg`` operation flags h](j()}(h``int msqflg``h]j.)}(hj h]h int msqflg}(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)}(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&]uh1jhjuubj)}(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.chMhjuubj)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hj]hhhNhNubj)}(h**msg**h]hmsg}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubhA, is enqueued on the message queue with permissions specified in }(hj]hhhNhNubj)}(h**msq**h]hmsq}(hjwhhhNhNubah}(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.chMhjuubj)}(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 hjuubj)}(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 hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhj whhhNhNubh)}(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}(hj׽hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjӽhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM7ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӽhhhjhM7ubj)}(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 hjӽhhhjhM7ubj/)}(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 }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_msgrcvasbuh1hhjubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct msg_msg *msgh](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)}(hmsg_msgh]hmsg_msg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jNc.security_msg_queue_msgrcvasbuh1hhjubh)}(h h]h }(hj¾hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjоhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hjݾhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(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}]jNc.security_msg_queue_msgrcvasbuh1hhjubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htargeth]htarget}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h long typeh](h)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hint modeh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(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.hjӽhhhjhM7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjϽhhhjhM7ubah}(h]jʽah ](jjeh"]h$]h&]jj)jhuh1hhjhM7hj̽hhubj)}(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&]uh1jhj̽hhhjhM7ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(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.chM*hjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hM*hj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hM*hjubj")}(h ``struct msg_msg *msg`` message h](j()}(h``struct msg_msg *msg``h]j.)}(hj[h]hstruct msg_msg *msg}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjUubjD)}(hhh]j)}(hmessageh]hmessage}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphM+hjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphM+hjubj")}(h+``struct task_struct *target`` target task h](j()}(h``struct task_struct *target``h]j.)}(hjh]hstruct task_struct *target}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM,hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM,hjubj")}(h(``long type`` type of message requested h](j()}(h ``long type``h]j.)}(hjh]h long 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.chM-hjubjD)}(hhh]j)}(htype of message requestedh]htype of message requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM-hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(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)}(hjAh]h Description}(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.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, }(hjWhhhNhNubj)}(h**msg**h]hmsg}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh), is removed from the message queue. The }(hjWhhhNhNubj)}(h **target**h]htarget}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh 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).}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0hjubj)}(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.chM5hjubj)}(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.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_shm_alloc (C function)c.security_shm_allochNtauh1hhj whhhNhNubh)}(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}(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_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 hjhhhjhMFubj/)}(h(struct kern_ipc_perm *shp)h]j5)}(hstruct kern_ipc_perm *shph](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}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]j)}jsjsbc.security_shm_allocasbuh1hhj ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hshph]hshp}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(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)}(hAllocate a sysv shm LSM blobh]hAllocate 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.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMBhjubj)}(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.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?hjubah}(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.chMAhjubj)}(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 }(hj#hhhNhNubj)}(h**shp**h]hshp}(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.chMAhjubj)}(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.chMDhjubj)}(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.chMDhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_shm_free (C function)c.security_shm_freehNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMXubj)}(hsecurity_shm_freeh]j)}(hsecurity_shm_freeh]hsecurity_shm_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMXubj/)}(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_freeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(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.hjhhhjhMXubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMXubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMXhjhhubj)}(hhh]j)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMXubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhj whNhNubj)}(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)}(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.chMWhjgubj)}(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.chMThjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMThjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMThjubah}(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.chMVhjgubj)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hjhhhNhNubj)}(h**perm->security**h]hperm->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for the memory segment.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_shm_associate (C function)c.security_shm_associatehNtauh1hhj whhhNhNubh)}(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.chMkubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hMkubj)}(hsecurity_shm_associateh]j)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj,hMkubj/)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j5)}(hstruct kern_ipc_perm *shph](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 kern_ipc_permh]h kern_ipc_perm}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j)}jsjAsbc.security_shm_associateasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubj5)}(h int shmflgh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hshmflgh]hshmflg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubeh}(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(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&]uh1jhjhhhj,hMkubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj+jj+jjjuh1hhhhj whNhNubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhj/ubj)}(hhh](j")}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *shp``h]j.)}(hjTh]hstruct kern_ipc_perm *shp}(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.chMahjNubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMahjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihMahjKubj")}(h``int shmflg`` operation flags h](j()}(h``int shmflg``h]j.)}(hjh]h int shmflg}(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.chMbhjubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMbhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMbhjKubeh}(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.chMdhj/ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhj/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.chMihj/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.chMihj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhj whhhNhNubh)}(hhh](h)}(hh]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(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)}jsjWsbc.security_shm_shmctlasbuh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(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-uh1j4hjiubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhjBhMzubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,hhhjBhMzubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhMzhj)hhubj)}(hhh]j)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMqhj&hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMzubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj whNhNubj)}(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)}(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.chMuhjEubj)}(hhh](j")}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *shp``h]j.)}(hjjh]hstruct kern_ipc_perm *shp}(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.chMrhjdubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjaubj")}(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.chMshjubjD)}(hhh]j)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMshjaubeh}(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.chMuhjEubj)}(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.chMuhjEubj)}(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.chMxhjEubj)}(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.chMxhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_shm_shmat (C function)c.security_shm_shmathNtauh1hhj whhhNhNubh)}(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}(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_shm_shmath]j)}(hsecurity_shm_shmath]hsecurity_shm_shmat}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhj|hMubj/)}(h=(struct kern_ipc_perm *shp, char __user *shmaddr, 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_shmatasbuh1hhjubh)}(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-uh1j4hjubj5)}(hchar __user *shmaddrh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshmaddrh]hshmaddr}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int shmflgh](h)}(hinth]hint}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hshmflgh]hshmflg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(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 a sysv shm attach operation is allowedh]h/Check if a sysv shm attach 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&]uh1jhjchhhj|hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 *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&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubj")}(h<``char __user *shmaddr`` address of memory region to attach h](j()}(h``char __user *shmaddr``h]j.)}(hj1h]hchar __user *shmaddr}(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.chMhj+ubjD)}(hhh]j)}(h"address of memory region to attachh]h"address of memory region to attach}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhMhjubj")}(h``int shmflg`` operation flags h](j()}(h``int shmflg``h]j.)}(hjjh]h int shmflg}(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)}(hoperation flagsh]hoperation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(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 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 }(hjhhhNhNubj)}(h**shp**h]hshp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS to the data segment of the calling process. The attaching address is specified by }(hjhhhNhNubj)}(h **shmaddr**h]hshmaddr}(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)}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sem_alloc (C function)c.security_sem_allochNtauh1hhj whhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhjChMubj)}(hsecurity_sem_alloch]j)}(hsecurity_sem_alloch]hsecurity_sem_alloc}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhjChMubj/)}(h(struct kern_ipc_perm *sma)h]j5)}(hstruct kern_ipc_perm *smah](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 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)}jsjXsbc.security_sem_allocasbuh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubah}(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)}(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&]uh1jhj*hhhjChMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj whNhNubj)}(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.)}(hj6h]hstruct kern_ipc_perm *sma}(hj8hhhNhNubah}(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.chMhj0ubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhMhj-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: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 }(hjhhhNhNubj)}(h**sma**h]hsma}(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.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 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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sem_free (C function)c.security_sem_freehNtauh1hhj whhhNhNubh)}(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&]uh1jhj ubah}(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}(hj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjLmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sem_freeasbuh1hhj(ubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(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-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)}(hFree a sysv semaphore LSM blobh]hFree 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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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}(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)}(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)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hjAhhhNhNubj)}(h**sma->security**h]h sma->security}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh for the semaphore.}(hjAhhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_sem_associate (C function)c.security_sem_associatehNtauh1hhj whhhNhNubh)}(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}(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_sem_associateh]j)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhjhMubj/)}(h'(struct kern_ipc_perm *sma, int semflg)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_associateasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int semflgh](h)}(hinth]hint}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hsemflgh]hsemflg}(hjMhhhNhNubah}(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-juh1hjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(hhh]j)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore 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&]uh1jhjwhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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!hjhMhjubj")}(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}(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:287: ./security/security.chMhjubj)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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.chMhjubj)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhj whhhNhNubh)}(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 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_semctlasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint cmdh](h)}(hinth]hint}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hcmdh]hcmd}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(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 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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!hjhMhjubj")}(h``int cmd`` operation h](j()}(h ``int cmd``h]j.)}(hjh]hint cmd}(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)}(h operationh]h operation}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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 }(hjXhhhNhNubj)}(h**cmd**h]hcmd}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh% is to be performed on the semaphore.}(hjXhhhNhNubeh}(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&]uh1jhjyubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sem_semop (C function)c.security_sem_semophNtauh1hhj whhhNhNubh)}(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}(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_semoph]j)}(hsecurity_sem_semoph]hsecurity_sem_semop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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 }(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 reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sem_semopasbuh1hhjubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sembuf *sopsh](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)}(hsembufh]hsembuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j7c.security_sem_semopasbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hsopsh]hsops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned nsopsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnsopsh]hnsops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int alterh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(halterh]halter}(hj0hhhNhNubah}(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 sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhj whNhNubj)}(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)}(hj|h]h Parameters}(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.chMhjvubj)}(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!hjhMhjubj")}(h.``struct sembuf *sops`` operations to perform h](j()}(h``struct sembuf *sops``h]j.)}(hjh]hstruct sembuf *sops}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hoperations to performh]hoperations to perform}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h(``unsigned nsops`` number of operations h](j()}(h``unsigned nsops``h]j.)}(hj h]hunsigned nsops}(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)}(hnumber of operationsh]hnumber of operations}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhjubj")}(h3``int alter`` flag indicating changes will be made h](j()}(h ``int alter``h]j.)}(hjFh]h int alter}(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.chMhj@ubjD)}(hhh]j)}(h$flag indicating changes will be madeh]h$flag indicating changes will be made}(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&]uh1jhjvubj)}(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.chMhjvubj)}(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 }(hjhhhNhNubj)}(h **alter**h]halter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 flag is nonzero, the semaphore set may be modified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjvubj)}(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.chMhjvubj)}(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.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_getselfattr (C function)c.security_getselfattrhNtauh1hhj whhhNhNubh)}(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&]uh1hhjhhhj hMubj)}(hsecurity_getselfattrh]j)}(hsecurity_getselfattrh]hsecurity_getselfattr}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMubj/)}(hM(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j5)}(hunsigned int attrh](h)}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hinth]hint}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hattrh]hattr}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(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)}jsj"sbc.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)}(huctxh]huctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(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}]jc.security_getselfattrasbuh1hhj ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh__user}(hj hhhNhNubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsizeh]hsize}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]jc.security_getselfattrasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(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-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(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&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.chMhj ubjD)}(hhh]j)}(hwhich attribute to returnh]hwhich attribute to return}(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")}(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.)}(hjKh]hstruct lsm_ctx __user *uctx}(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.chMhjEubjD)}(hhh]j)}(h7the user-space destination for the information, or NULLh]h7the user-space destination for the information, or NULL}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhj ubj")}(hP``u32 __user *size`` pointer to the size of space available to receive the data h](j()}(h``u32 __user *size``h]j.)}(hjh]hu32 __user *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.chMhj~ubjD)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj ubj")}(h``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. h](j()}(h ``u32 flags``h]j.)}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported.h](hzspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed }(hjhhhNhNubj)}(h**ctx**h]hctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh be reported.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj 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&]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 }(hj!hhhNhNubj)}(h**uctx**h]huctx}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubhK can be used to get both the number of attributes and the size of the data.}(hj!hhhNhNubeh}(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. }(hjBhhhNhNubj)}(h**size**h]hsize}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh, is reset to the total size of the data. If }(hjBhhhNhNubj)}(h**size**h]hsize}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh8 is insufficient to contain the data -E2BIG is returned.}(hjBhhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_setselfattr (C function)c.security_setselfattrhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMbubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMbubj)}(hsecurity_setselfattrh]j)}(hsecurity_setselfattrh]hsecurity_setselfattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMbubj/)}(hE(unsigned int attr, struct lsm_ctx __user *uctx, u32 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}(hj hhhNhNubah}(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:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_setselfattrasbuh1hhjubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huctxh]huctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hu32 sizeh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j]c.security_setselfattrasbuh1hhjubh)}(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 u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j]c.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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMbubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMbhjhhubj)}(hhh]j)}(h,Set an LSM attribute on the current process.h]h,Set an LSM attribute on the current process.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUhjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMbubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhj whNhNubj)}(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)}(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.chMYhjdubj)}(hhh](j")}(h-``unsigned int attr`` which attribute to set 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.chMVhjubjD)}(hhh]j)}(hwhich attribute to seth]hwhich attribute to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMVhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMVhjubj")}(hJ``struct lsm_ctx __user *uctx`` the user-space source for the information h](j()}(h``struct lsm_ctx __user *uctx``h]j.)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h)the user-space source for the informationh]h)the user-space source for the information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMWhjubj")}(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!hjhMXhjubj")}(h1``u32 flags`` reserved for future use, must be 0 h](j()}(h ``u32 flags``h]j.)}(hj4h]h u32 flags}(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.chMYhj.ubjD)}(hhh]j)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMYhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMYhjubeh}(h]h ]h"]h$]h&]uh1jhjdubj)}(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[hjdubj)}(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 }(hjhhhNhNubj)}(h**uctx**h]huctx}(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[hjdubj)}(hReturns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.h]hReturns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM^hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_getprocattr (C function)c.security_getprocattrhNtauh1hhj whhhNhNubh)}(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}(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_getprocattrh]j)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(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}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]j)}jsjsbc.security_getprocattrasbuh1hhjubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h int lsmidh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlsmidh]hlsmid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hconst char *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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h char **valueh](h)}(hcharh]hchar}(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)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hjKhhhNhNubah}(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)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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`` the 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.chMhjubjD)}(hhh]j)}(hthe taskh]hthe task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.)}(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.chMhj"ubjD)}(hhh]j)}(hattribute nameh]hattribute name}(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!``char **value`` attribute value h](j()}(h``char **value``h]j.)}(hjah]h char **value}(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)}(hattribute valueh]hattribute value}(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)}(hNRead attribute **name** for task **p** and store it into **value** if allowed.h](hRead attribute }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for task }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and store it into }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_setprocattr (C function)c.security_setprocattrhNtauh1hhj whhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLhhhX/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&]uh1hhjLhhhj^hMubj)}(hsecurity_setprocattrh]j)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhj^hMubj/)}(h7(int lsmid, const char *name, void *value, size_t size)h](j5)}(h int lsmidh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlsmidh]hlsmid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h void *valueh](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)}(hvalueh]hvalue}(hjHhhhNhNubah}(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}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j)}jsjssbc.security_setprocattrasbuh1hhj]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-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)}(hSet an attribute for a taskh]hSet 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&]uh1jhjEhhhj^hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 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.)}(hj6h]hconst char *name}(hj8hhhNhNubah}(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.chMhj0ubjD)}(hhh]j)}(hattribute nameh]hattribute name}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhMhjubj")}(h ``void *value`` attribute value h](j()}(h``void *value``h]j.)}(hjoh]h void *value}(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.chMhjiubjD)}(hhh]j)}(hattribute valueh]hattribute value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h%``size_t size`` attribute value size h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 value sizeh]hattribute value 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&]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)}(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}(hj%hhhNhNubah}(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.chMhjubj)}(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.chMhjubj)}(h=Returns bytes written on success, a negative value otherwise.h]h=Returns bytes written on success, a negative value otherwise.}(hjVhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_netlink_send (C function)c.security_netlink_sendhNtauh1hhj whhhNhNubh)}(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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(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 hjhhhjhMubj/)}(h&(struct sock *sk, struct sk_buff *skb)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_netlink_sendasbuh1hhjubh)}(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 sk_buff *skbh](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)}(hsk_buffh]hsk_buff}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]jc.security_netlink_sendasbuh1hhj0ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(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]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjzhhubj)}(hhh]j)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending 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&]uh1jhjzhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 sock *sk`` sending 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.chMhjubjD)}(hhh]j)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubj")}(h(``struct sk_buff *skb`` netlink message h](j()}(h``struct sk_buff *skb``h]j.)}(hj/h]hstruct sk_buff *skb}(hj1hhhNhNubah}(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)}(hnetlink messageh]hnetlink message}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhMhjubeh}(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)}(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.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)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hallowed to be transmitted.h]hallowed to be transmitted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_post_notification (C function)c.security_post_notificationhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMmubj)}(hsecurity_post_notificationh]j)}(hsecurity_post_notificationh]hsecurity_post_notification}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMmubj/)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j5)}(hconst struct cred *w_credh](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)}jsj$sbc.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-uh1j4hj6ubj5)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_post_notificationasbuh1hhjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6ubj5)}(hstruct watch_notification *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)}(hwatch_notificationh]hwatch_notification}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]jc.security_post_notificationasbuh1hhjRubh)}(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-uh1j4hj6ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMmubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjhhubj)}(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.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.chMhhjubj)}(hhh](j")}(hI``const struct cred *w_cred`` credentials of the task that set the watch h](j()}(h``const struct cred *w_cred``h]j.)}(hjh]hconst struct cred *w_cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h*credentials of the task that set the watchh]h*credentials of the task that set the watch}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMehj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMehjubj")}(hN``const struct cred *cred`` credentials of the task which triggered the watch h](j()}(h``const struct cred *cred``h]j.)}(hjPh]hconst struct cred *cred}(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.chMfhjJubjD)}(hhh]j)}(h1credentials of the task which triggered the watchh]h1credentials of the task which triggered the watch}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMfhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMfhjubj")}(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.chMghjubjD)}(hhh]j)}(hthe notificationh]hthe notification}(hjhhhNhNubah}(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)}(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.chMihjubj)}(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.chMihjubj)}(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.chMkhjubj)}(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.chMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_watch_key (C function)c.security_watch_keyhNtauh1hhj whhhNhNubh)}(hhh](h)}(h(int security_watch_key (struct key *key)h]h)}(h'int security_watch_key(struct key *key)h](h)}(hinth]hint}(hj0hhhNhNubah}(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_watch_keyh]j)}(hsecurity_watch_keyh]hsecurity_watch_key}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj,hhhj>hMubj/)}(h(struct key *key)h]j5)}(hstruct key *keyh](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)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjSsbc.security_watch_keyasbuh1hhjiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjeubah}(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)}(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.chMwhjhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 key *key`` the key to watch h](j()}(h``struct key *key``h]j.)}(hj1h]hstruct key *key}(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.chMxhj+ubjD)}(hhh]j)}(hthe key to watchh]hthe key to watch}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMxhjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhMxhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(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.chMzhj ubj)}(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.chMzhj 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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_socket_create (C function)c.security_socket_createhNtauh1hhj whhhNhNubh)}(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}(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_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 hjhhhjhMubj/)}(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 }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfamilyh]hfamily}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hint typeh](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(htypeh]htype}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h int protocolh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hint kernh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hkernh]hkern}(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 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(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!hjPhMhj2ubj")}(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!hjhMhj2ubj")}(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!hjhMhj2ubj")}(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!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)}(h1Check permissions prior to creating a new socket.h]h1Check permissions prior to creating a new socket.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhj whhhNhNubh)}(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}(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_post_createh]j)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hC(struct socket *sock, int family, int type, int protocol, int kern)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_post_createasbuh1hhjubh)}(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)}(h int familyh](h)}(hinth]hint}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hfamilyh]hfamily}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint typeh](h)}(hinth]hint}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int protocolh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint kernh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hkernh]hkern}(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!Initialize a newly created socketh]h!Initialize a newly created socket}(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&]jjqjj9jj9jjjuh1hhhhj whNhNubj)}(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)}(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``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hjbh]hstruct socket *sock}(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)}(hsocketh]hsocket}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMhjYubj")}(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!hjhMhjYubj")}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjYubj")}(h$``int protocol`` requested protocol h](j()}(h``int protocol``h]j.)}(hj h]h int protocol}(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)}(hrequested protocolh]hrequested protocol}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhjYubj")}(h6``int kern`` set to 1 if a kernel socket is requested h](j()}(h ``int kern``h]j.)}(hjFh]hint kern}(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.chMhj@ubjD)}(hhh]j)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hMhjYubeh}(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)}(hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn't available when the inode was allocated.h]hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn’t available when the inode was allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_socket_bind (C function)c.security_socket_bindhNtauh1hhj whhhNhNubh)}(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&]uh1jhj ubah}(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}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(hsocketh]hsocket}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_bindasbuh1hhj&ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubj5)}(hstruct sockaddr *addressh](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)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jdc.security_socket_bindasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubj5)}(h int addrlenh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(haddrlenh]haddrlen}(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 a socket bind operation is allowedh]h+Check if a socket bind operation is allowed}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjnubj)}(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")}(h4``struct sockaddr *address`` requested bind address h](j()}(h``struct sockaddr *address``h]j.)}(hjh]hstruct sockaddr *address}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 bind addressh]hrequested bind address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnubj)}(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.chMhjnubj)}(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 }(hjVhhhNhNubj)}(h**sock**h]hsock}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh* is bound to the address specified in the }(hjVhhhNhNubj)}(h **address**h]haddress}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh parameter.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjnubj)}(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.chMhjnubj)}(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.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_socket_connect (C function)c.security_socket_connecthNtauh1hhj whhhNhNubh)}(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}(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_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 hjhhhjhMubj/)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j5)}(hstruct socket *sockh](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)}(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_connectasbuh1hhj ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsockh]hsock}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sockaddr *addressh](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)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jGc.security_socket_connectasbuh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(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}(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 a socket connect operation is allowedh]h.Check if a socket connect operation is allowed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjMjjMjjjuh1hhhhj whNhNubj)}(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)}(hjWh]h Parameters}(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.chM hjQubj)}(hhh](j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hjvh]hstruct socket *sock}(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)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjmubj")}(h@``struct sockaddr *address`` address of remote connection point h](j()}(h``struct sockaddr *address``h]j.)}(hjh]hstruct sockaddr *address}(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"address of remote connection pointh]h"address of remote connection point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjmubj")}(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 hjmubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjQubj)}(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 }(hj9hhhNhNubj)}(h**sock**h]hsock}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh to a remote address, }(hj9hhhNhNubj)}(h **address**h]haddress}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjQubj)}(h **Return**h]j)}(hjnh]hReturn}(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.chMhjQubj)}(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.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_socket_listen (C function)c.security_socket_listenhNtauh1hhj whhhNhNubh)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_listenasbuh1hhjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int backlogh](h)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hbacklogh]hbacklog}(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.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 socket is allowed to listenh]h&Check if a socket is allowed to listen}(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&]uh1jhjhhhjhM!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 backlog`` connection queue size h](j()}(h``int backlog``h]j.)}(hj"h]h int backlog}(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)}(hconnection queue sizeh]hconnection queue size}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hMhjubeh}(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 permission before socket protocol layer listen operation.h]h?Check permission before socket protocol layer listen operation.}(hjshhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_socket_accept (C function)c.security_socket_accepthNtauh1hhj whhhNhNubh)}(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}(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)}(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 hjhhhjhM1ubj/)}(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}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&modnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_acceptasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjRhhhNhNubah}(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 socket *newsockh](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)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j@c.security_socket_acceptasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnewsockh]hnewsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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)}(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&]uh1jhjhhhjhM1ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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.)}(hj:h]hstruct socket *sock}(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.chM(hj4ubjD)}(hhh]j)}(hlistening socketh]hlistening socket}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhM(hjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhM(hj1ubj")}(h<``struct socket *newsock`` newly creation connection socket h](j()}(h``struct socket *newsock``h]j.)}(hjsh]hstruct socket *newsock}(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.chM)hjmubjD)}(hhh]j)}(h newly creation connection socketh]h newly creation connection socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM)hjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhM)hj1ubeh}(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 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, }(hjhhhNhNubj)}(h **newsock**h]hnewsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubho, has been created and some information copied to it, but the accept operation has not actually been performed.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_socket_sendmsg (C function)c.security_socket_sendmsghNtauh1hhj whhhNhNubh)}(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}(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_socket_sendmsgh]j)}(hsecurity_socket_sendmsgh]hsecurity_socket_sendmsg}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj(hhhj:hM@ubj/)}(h3(struct socket *sock, struct msghdr *msg, int size)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjeubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjOsbc.security_socket_sendmsgasbuh1hhjeubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubj5)}(hstruct msghdr *msgh](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)}(hmsghdrh]hmsghdr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_socket_sendmsgasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubj5)}(hint sizeh](h)}(hinth]hint}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hsizeh]hsize}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj(hhhj: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 sending a message is allowedh]h%Check if sending a message is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hM@ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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`` sending 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.chM8hjubjD)}(hhh]j)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM8hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM8hjubj")}(h'``struct msghdr *msg`` message to send h](j()}(h``struct msghdr *msg``h]j.)}(hj h]hstruct msghdr *msg}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(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}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM9hj!ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM9hjubj")}(h``int size`` size of message h](j()}(h ``int size``h]j.)}(hjDh]hint 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:287: ./security/security.chM:hj>ubjD)}(hhh]j)}(hsize of messageh]hsize of message}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM:hjZubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hjYhM:hjubeh}(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)}(hACheck permission before transmitting a message to another socket.h]hACheck permission before transmitting a message to another socket.}(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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhj whhhNhNubh)}(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.chMPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMPubj)}(hsecurity_socket_recvmsgh]j)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMPubj/)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hsocketh]hsocket}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_recvmsgasbuh1hhj$ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct msghdr *msgh](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)}(hmsghdrh]hmsghdr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jbc.security_socket_recvmsgasbuh1hhjubh)}(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-uh1j4hj ubj5)}(hint sizeh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsizeh]hsize}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h int flagsh](h)}(hinth]hint}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubh)}(h h]h }(hjMhhhNhNubah}(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.hjhhhjhMPubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMPubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMPhjhhubj)}(hhh]j)}(h'Check if receiving a message is allowedh]h'Check if receiving a message 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&]uh1jhjhhhjhMPubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 socket *sock`` receiving 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.chMGhjubjD)}(hhh]j)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMGhjubj")}(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!hjhMHhjubj")}(h``int size`` size of message h](j()}(h ``int size``h]j.)}(hj8h]hint size}(hj:hhhNhNubah}(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.chMIhj2ubjD)}(hhh]j)}(hsize of messageh]hsize of message}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMIhjNubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hjMhMIhjubj")}(h ``int flags`` operational flags h](j()}(h ``int flags``h]j.)}(hjqh]h int flags}(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:287: ./security/security.chMJhjkubjD)}(hhh]j)}(hoperational flagsh]hoperational flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMJhjubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjhMJhjubeh}(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.chMLhjubj)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMLhjubj)}(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 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.chMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhj whhhNhNubh)}(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.chM_ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj&hM_ubj)}(hsecurity_socket_getsocknameh]j)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj&hM_ubj/)}(h(struct socket *sock)h]j5)}(hstruct socket *sockh](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)}(hsocketh]hsocket}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j)}jsj;sbc.security_socket_getsocknameasbuh1hhjQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubah}(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_hj hhubj)}(hhh]j)}(h+Check if reading the socket addr is allowedh]h+Check if reading the socket addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hM_ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hMXhj/ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj.hMXhjubah}(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.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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjubj)}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhj whhhNhNubh)}(hhh](h)}(h5int security_socket_getpeername (struct socket *sock)h]h)}(h4int security_socket_getpeername(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.chMlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMlubj)}(hsecurity_socket_getpeernameh]j)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMlubj/)}(h(struct socket *sock)h]j5)}(hstruct socket *sockh](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}(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 }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(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+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMehj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 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.chMfhjubjD)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMfhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMfhjubah}(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.chMhhjubj)}(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.chMhhjubj)}(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.chMjhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj9hhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhj whhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhX/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&]uh1hhjdhhhjvhM|ubj)}(hsecurity_socket_getsockopth]j)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdhhhjvhM|ubj/)}(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_getsockoptasbuh1hhjubh)}(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 levelh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlevelh]hlevel}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int optnameh](h)}(hinth]hint}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hoptnameh]hoptname}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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)}(h+Check if reading a socket option is allowedh]h+Check if reading a socket option is allowed}(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&]uh1jhj]hhhjvhM|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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")}(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.chMshjubjD)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMshjubj")}(h&``int level`` option's protocol level h](j()}(h ``int level``h]j.)}(hj h]h int level}(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.chMthjubjD)}(hhh]j)}(hoption's protocol levelh]hoption’s protocol level}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMthj"ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj!hMthjubj")}(h``int optname`` option name h](j()}(h``int optname``h]j.)}(hjEh]h int optname}(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.chMuhj?ubjD)}(hhh]j)}(h option nameh]h option name}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMuhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhMuhjubeh}(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.chMwhjubj)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hjhhhNhNubj)}(h**sock**h]hsock}(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.chMwhjubj)}(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.chMzhjubj)}(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.chMzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhj whhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(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 hjhhhj hMubj/)}(h-(struct socket *sock, int level, int optname)h](j5)}(hstruct socket *sockh](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)}(hsocketh]hsocket}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[modnameN classnameNjwjz)}j}]j)}jsj!sbc.security_socket_setsockoptasbuh1hhj7ubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(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-uh1j4hj3ubj5)}(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-uh1j4hj3ubeh}(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 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&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@ jj@ jjjuh1hhhhj whNhNubj)}(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)}(hjJ h]h Parameters}(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:287: ./security/security.chMhjD ubj)}(hhh](j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hji h]hstruct socket *sock}(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:287: ./security/security.chMhjc ubjD)}(hhh]j)}(hsocketh]hsocket}(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")}(h&``int level`` option's protocol level h](j()}(h ``int level``h]j.)}(hj h]h int level}(hj hhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj 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-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 option nameh]h option name}(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&]uh1jhjD 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.chMhjD 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}(hj4 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.chMhjD ubj)}(h **Return**h]j)}(hjO h]hReturn}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjD ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjD ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhj whhhNhNubh)}(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}(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_shutdownh]j)}(hsecurity_socket_shutdownh]hsecurity_socket_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 socket *sock, int how)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 sbc.security_socket_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)}(hsockh]hsock}(hj* hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hint howh](h)}(hinth]hint}(hjC hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj? ubh)}(h h]h }(hjQ 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-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-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 hhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj whNhNubj)}(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)}(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 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 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)}(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 }(hjT hhhNhNubj)}(h**sock**h]hsock}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT ubh is shut down.}(hjT 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)}(hjw h]hReturn}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhj whhhNhNubh)}(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&]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)}(h!security_socket_getpeersec_streamh]j)}(h!security_socket_getpeersec_streamh]h!security_socket_getpeersec_stream}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj 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 }(hj7 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjE hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsockh]hsock}(hjR 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}(hjn hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjp modnameN classnameNjwjz)}j}]j3 #c.security_socket_getpeersec_streamasbuh1hhjg ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg ubj)}(hoptvalh]hoptval}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjg ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hsockptr_t optlenh](h)}(hhh]j)}(h sockptr_th]h sockptr_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j3 #c.security_socket_getpeersec_streamasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hoptlenh]hoptlen}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hunsigned int lenh](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 }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hlenh]hlen}(hj3hhhNhNubah}(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)}(hGet the remote peer labelh]hGet the remote peer label}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjujjujjjuh1hhhhj whNhNubj)}(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}(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.chMhjyubj)}(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(``sockptr_t optval`` destination buffer h](j()}(h``sockptr_t optval``h]j.)}(hjh]hsockptr_t optval}(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)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.chMhj ubjD)}(hhh]j)}(h)size of peer label copied into the bufferh]h)size of peer label copied into the 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%hMhjubj")}(h<``unsigned int len`` maximum size of the destination buffer h](j()}(h``unsigned int len``h]j.)}(hjIh]hunsigned int len}(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.chMhjCubjD)}(hhh]j)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhjubeh}(h]h ]h"]h$]h&]uh1jhjyubj)}(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.chMhjyubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjyubj)}(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.chMhjyubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hvalues.h]hvalues.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhj whhhNhNubh)}(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 }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj)hMubj)}(hlsm_sock_alloch]j)}(hlsm_sock_alloch]hlsm_sock_alloc}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj)hMubj/)}(h(struct sock *sock, gfp_t gfp)h](j5)}(hstruct sock *sockh](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)}(hsockh]hsock}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsj>sbc.lsm_sock_allocasbuh1hhjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubj5)}(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_sock_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-uh1j4hjPubeh}(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)}(hallocate a composite sock blobh]hallocate a composite sock 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&]uh1jhjhhhj)hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhj whNhNubj)}(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)}(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")}(h1``struct sock *sock`` the sock that needs a blob h](j()}(h``struct sock *sock``h]j.)}(hjdh]hstruct sock *sock}(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)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj[ubj")}(h``gfp_t gfp`` allocation mode h](j()}(h ``gfp_t gfp``h]j.)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 modeh]hallocation mode}(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:287: ./security/security.chMhj?ubj)}(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.chMhj?ubj)}(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.chMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sk_alloc (C function)c.security_sk_allochNtauh1hhj whhhNhNubh)}(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}(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_sk_alloch]j)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj(hhhj:hMubj/)}(h-(struct sock *sk, int family, gfp_t priority)h](j5)}(hstruct sock *skh](j;)}(hj>h]hstruct}(hjihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjeubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjOsbc.security_sk_allocasbuh1hhjeubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubj5)}(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-uh1j4hjaubj5)}(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}]jc.security_sk_allocasbuh1hhj ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hpriorityh]hpriority}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubeh}(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)Allocate and initialize a sock's LSM blobh]h+Allocate and initialize a sock’s LSM blob}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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 sock *sk`` sock 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.chMhjubjD)}(hhh]j)}(hsockh]hsock}(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.)}(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``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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhjubeh}(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)}(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.}(hjmhhhNhNubah}(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 on success, error on failure.h]h'Returns 0 on success, error on failure.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sk_free (C function)c.security_sk_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h'void security_sk_free (struct sock *sk)h]h)}(h&void security_sk_free(struct sock *sk)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_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 hjhhhjhMubj/)}(h(struct sock *sk)h]j5)}(hstruct sock *skh](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 reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.security_sk_freeasbuh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjYhhhNhNubah}(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 the sock's LSM blobh]hFree the sock’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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.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 sock *sk`` sock 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.chMhjubjD)}(hhh]j)}(hsockh]hsock}(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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhj whhhNhNubh)}(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}(hjDhhhNhNubah}(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 }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhjRhM\ubj)}(hsecurity_inet_csk_cloneh]j)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhjRhM\ubj/)}(h4(struct sock *newsk, const struct request_sock *req)h](j5)}(hstruct sock *newskh](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)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjgsbc.security_inet_csk_cloneasbuh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hnewskh]hnewsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubj5)}(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}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]jc.security_inet_csk_cloneasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hreqh]hreq}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@hhhjRhM\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj<hhhjRhM\ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhM\hj9hhubj)}(hhh]j)}(h,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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)}(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.chMZhjubj)}(hhh](j")}(h ``struct sock *newsk`` new sock h](j()}(h``struct sock *newsk``h]j.)}(hjh]hstruct sock *newsk}(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 sockh]hnew sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMWhjubj")}(h;``const struct request_sock *req`` connection request_sock h](j()}(h"``const struct request_sock *req``h]j.)}(hj h]hconst struct request_sock *req}(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.chMXhjubjD)}(hhh]j)}(hconnection request_sockh]hconnection request_sock}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMXhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(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.chMZhjubj)}(h@Set that LSM state of **sock** using the LSM state from **req**.h](hSet that LSM state of }(hjZhhhNhNubj)}(h**sock**h]hsock}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh using the LSM state from }(hjZhhhNhNubj)}(h**req**h]hreq}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh.}(hjZhhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhj whhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMGubj)}(hsecurity_mptcp_add_subflowh]j)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMGubj/)}(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 reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.security_mptcp_add_subflowasbuh1hhjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sock *sskh](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)}(hsockh]hsock}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j$c.security_mptcp_add_subflowasbuh1hhjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hsskh]hssk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(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]j)}(h+Inherit the LSM label from the MPTCP socketh]h+Inherit the LSM label from the MPTCP socket}(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&]uh1jhjhhhjhMGubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj whNhNubj)}(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}(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)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hM=hj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hM=hjubj")}(h%``struct sock *ssk`` the new subflow h](j()}(h``struct sock *ssk``h]j.)}(hjWh]hstruct sock *ssk}(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.chM>hjQubjD)}(hhh]j)}(hthe new subflowh]hthe new subflow}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhM>hjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhM>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.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.}(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.chMEhjubj)}(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.chMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhj whhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(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 hjhhhj hMubj/)}(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}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[modnameN classnameNjwjz)}j}]j)}jsj!sbc.security_xfrm_policy_cloneasbuh1hhj7ubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hold_ctxh]hold_ctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hstruct xfrm_sec_ctx **new_ctxph](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}]juc.security_xfrm_policy_cloneasbuh1hhjubh)}(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)}(hnew_ctxph]hnew_ctxp}(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 hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]j)}(hClone xfrm policy LSM stateh]hClone xfrm policy LSM state}(hj;hhhNhNubah}(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&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjWubj)}(hhh](j")}(h7``struct xfrm_sec_ctx *old_ctx`` xfrm security context h](j()}(h ``struct xfrm_sec_ctx *old_ctx``h]j.)}(hj|h]hstruct xfrm_sec_ctx *old_ctx}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjvubjD)}(hhh]j)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjsubj")}(h@``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context h](j()}(h"``struct xfrm_sec_ctx **new_ctxp``h]j.)}(hjh]hstruct xfrm_sec_ctx **new_ctxp}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 xfrm security contexth]htarget xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjsubeh}(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)}(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.chMhjWubj)}(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.chMhjWubj)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hj-hhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhj whhhNhNubh)}(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}(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_xfrm_policy_deleteh]j)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjjhMubj/)}(h(struct xfrm_sec_ctx *ctx)h]j5)}(hstruct xfrm_sec_ctx *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_deleteasbuh1hhjubh)}(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-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*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&]uh1jhjQhhhjjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4jj4jjjuh1hhhhj whNhNubj)}(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)}(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.chMhj8ubj)}(hhh]j")}(h3``struct xfrm_sec_ctx *ctx`` 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.chMhjWubjD)}(hhh]j)}(hxfrm security contexth]hxfrm security context}(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**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.chMhj8ubj)}(h"Authorize deletion of a SPD entry.h]h"Authorize deletion of a SPD entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj8ubj)}(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.chMhj8ubj)}(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.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhj whhhNhNubh)}(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}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(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}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(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 reftargetjamodnameN classnameNjwjz)}j}]j)}jsj'sb#c.security_xfrm_state_alloc_acquireasbuh1hhj=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]hx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(hstruct xfrm_sec_ctx *polsech](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{#c.security_xfrm_state_alloc_acquireasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpolsech]hpolsec}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(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 }(hjC hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hsecidh]hsecid}(hjQ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubeh}(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.chMhjx hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj whNhNubj)}(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.chMhj ubj)}(hhh](j")}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](j()}(h``struct xfrm_state *x``h]j.)}(hj h]hstruct xfrm_state *x}(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!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(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")}(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 !hMhj ubj")}(h"``u32 secid`` secid from the flow h](j()}(h ``u32 secid``h]j.)}(hj.!h]h u32 secid}(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.chMhj(!ubjD)}(hhh]j)}(hsecid from the flowh]hsecid from the flow}(hjG!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC!hMhjD!ubah}(h]h ]h"]h$]h&]uh1jChj(!ubeh}(h]h ]h"]h$]h&]uh1j!hjC!hMhj 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj 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.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 operation was successful.h]h&Returns 0 if operation was successful.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhj whhhNhNubh)}(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}(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_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 hj!hhhj!hM ubj/)}(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}(hj0"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2"modnameN classnameNjwjz)}j}]j)}jsj!sbc.security_xfrm_state_freeasbuh1hhj"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)}(hj=h]hx}(hjk"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)}(hFree a xfrm stateh]hFree a xfrm state}(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!hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"jj"jjjuh1hhhhj whNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.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 h](j()}(h``struct xfrm_state *x``h]j.)}(hj"h]hstruct xfrm_state *x}(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 xfrm stateh]h xfrm state}(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.chM hj"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 hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhj whhhNhNubh)}(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}(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 }(hjd#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQ#hhhjc#hMubj)}(hsecurity_xfrm_policy_lookuph]j)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hjv#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQ#hhhjc#hMubj/)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j5)}(hstruct xfrm_sec_ctx *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 xfrm_sec_ctxh]h xfrm_sec_ctx}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]j)}jsjx#sbc.security_xfrm_policy_lookupasbuh1hhj#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)}(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}]j#c.security_xfrm_policy_lookupasbuh1hhj$ubh)}(h h]h }(hj%$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hfl_secidh]hfl_secid}(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.hjQ#hhhjc#hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjM#hhhjc#hMubah}(h]jH#ah ](jjeh"]h$]h&]jj)jhuh1hhjc#hMhjJ#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.chMhjZ$hhubah}(h]h ]h"]h$]h&]uh1jhjJ#hhhjc#hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjju$jju$jjjuh1hhhhj whNhNubj)}(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.chMhjy$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.chMhj$ubjD)}(hhh]j)}(htarget xfrm security contexth]htarget xfrm 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$hMhj$ubj")}(h5``u32 fl_secid`` flow secid used to authorize access h](j()}(h``u32 fl_secid``h]j.)}(hj$h]h u32 fl_secid}(hj$hhhNhNubah}(h]h ]h"]h$]h&]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#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&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhj$ubeh}(h]h ]h"]h$]h&]uh1jhjy$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.chMhjy$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.chMhjy$ubj)}(h **Return**h]j)}(hj9%h]hReturn}(hj;%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjy$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}(hjV%hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjR%ubjD)}(hhh]j)}(h other errors.h]h other errors.}(hjh%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhje%ubah}(h]h ]h"]h$]h&]uh1jChjR%ubeh}(h]h ]h"]h$]h&]uh1j!hjd%hMhjO%ubah}(h]h ]h"]h$]h&]uh1jhjy$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhj whhhNhNubh)}(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}(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)}(h"security_xfrm_state_pol_flow_matchh]j)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%hhhj%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)}jsj%sb$c.security_xfrm_state_pol_flow_matchasbuh1hhj%ubh)}(h h]h }(hj$&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hj2&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hj=h]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}(hjW&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjS&ubh)}(h h]h }(hjd&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjS&ubh)}(hhh]j)}(h xfrm_policyh]h xfrm_policy}(hju&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjw&modnameN classnameNjwjz)}j}]j &$c.security_xfrm_state_pol_flow_matchasbuh1hhjS&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)}(hxph]hxp}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjS&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(hconst struct flowi_common *flich](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 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_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)}(hflich]hflic}(hj9'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 for a xfrm matchh]hCheck for a xfrm match}(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{'jjjuh1hhhhj whNhNubj)}(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.)}(hj'h]hstruct xfrm_state *x}(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)}(hxfrm state to matchh]hxfrm state to 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'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$hj'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&]uh1jChj'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)}(hjQ(h]h Description}(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'hj'ubj)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hjg(hhhNhNubj)}(h**xp**h]hxp}(hjo(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg(ubh and }(hjg(hhhNhNubj)}(h**flic**h]hflic}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg(ubh for a match with }(hjg(hhhNhNubj)}(h**x**h]hx}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg(ubh.}(hjg(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)}(hReturns 1 if there is a match.h]hReturns 1 if there is a match.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhj whhhNhNubh)}(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.chMKubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(hhhj)hMKubj)}(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)hMKubj/)}(h!(struct sk_buff *skb, u32 *secid)h](j5)}(hstruct sk_buff *skbh](j;)}(hj>h]hstruct}(hj0)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}(hjN)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjK)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjP)modnameN classnameNjwjz)}j}]j)}jsj)sbc.security_xfrm_decode_sessionasbuh1hhj,)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)}(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}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]jj)c.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)}(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)hMKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj(hhhj)hMKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMKhj(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)hMKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj *jj *jjjuh1hhhhj whNhNubj)}(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.)}(hjI*h]hstruct sk_buff *skb}(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:287: ./security/security.chMDhjC*ubjD)}(hhh]j)}(h xfrm packeth]h xfrm packet}(hjb*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^*hMDhj_*ubah}(h]h ]h"]h$]h&]uh1jChjC*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&]uh1jhj*hMEhj*ubah}(h]h ]h"]h$]h&]uh1jChj|*ubeh}(h]h ]h"]h$]h&]uh1j!hj*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 }(hj*hhhNhNubj)}(h**skb**h]hskb}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh" and return the security label in }(hj*hhhNhNubj)}(h **secid**h]hsecid}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_key_alloc (C function)c.security_key_allochNtauh1hhj whhhNhNubh)}(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}(hjM+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfubh)}(h h]h }(hj\+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI+hhhj[+hMfubj)}(hsecurity_key_alloch]j)}(hsecurity_key_alloch]hsecurity_key_alloc}(hjn+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjj+ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjI+hhhj[+hMfubj/)}(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 }(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)}jsjp+sbc.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)}(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}(hj5,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7,modnameN classnameNjwjz)}j}]j+c.security_key_allocasbuh1hhj+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)}(hcredh]hcred}(hjn,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 }(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)}(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.hjI+hhhj[+hMfubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjE+hhhj[+hMfubah}(h]j@+ah ](jjeh"]h$]h&]jj)jhuh1hhj[+hMfhjB+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&]uh1jhjB+hhhj[+hMfubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-jj-jjjuh1hhhhj whNhNubj)}(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}(hjC-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.)}(hjc-h]hconst struct cred *cred}(hje-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hja-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&]uh1jhjx-hM^hjy-ubah}(h]h ]h"]h$]h&]uh1jChj]-ubeh}(h]h ]h"]h$]h&]uh1j!hjx-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_hj-ubjD)}(hhh]j)}(hallocation flagsh]hallocation flags}(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.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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_key_free (C function)c.security_key_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h(void security_key_free (struct key *key)h]h)}(h'void security_key_free(struct key *key)h](h)}(hvoidh]hvoid}(hjC.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyubh)}(h h]h }(hjR.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?.hhhjQ.hMyubj)}(hsecurity_key_freeh]j)}(hsecurity_key_freeh]hsecurity_key_free}(hjd.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`.ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?.hhhjQ.hMyubj/)}(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)}jsjf.sbc.security_key_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)}(hkeyh]hkey}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjx.ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj?.hhhjQ.hMyubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;.hhhjQ.hMyubah}(h]j6.ah ](jjeh"]h$]h&]jj)jhuh1hhjQ.hMyhj8.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&]uh1jhj8.hhhjQ.hMyubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/jj/jjjuh1hhhhj whNhNubj)}(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.)}(hjD/h]hstruct key *key}(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.chMuhj>/ubjD)}(hhh]j)}(hkeyh]hkey}(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;/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.chMwhj/ubj)}(h0Notification of destruction; free security data.h]h0Notification of destruction; free security data.}(hj/hhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_key_permission (C function)c.security_key_permissionhNtauh1hhj whhhNhNubh)}(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}(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_key_permissionh]j)}(hsecurity_key_permissionh]hsecurity_key_permission}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhj/hMubj/)}(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)}jsj/sbc.security_key_permissionasbuh1hhj/ubh)}(h h]h }(hj$0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hkey_refh]hkey_ref}(hj20hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubj5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjK0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjG0ubh)}(h h]h }(hjX0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjG0ubj;)}(hj>h]hstruct}(hjf0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjG0ubh)}(h h]h }(hjs0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjG0ubh)}(hhh]j)}(hcredh]hcred}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j 0c.security_key_permissionasbuh1hhjG0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjG0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG0ubj)}(hcredh]hcred}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjG0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubj5)}(henum key_need_perm need_permh](j;)}(hjh]henum}(hj0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(h key_need_permh]h key_need_perm}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j 0c.security_key_permissionasbuh1hhj0ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h need_permh]h need_perm}(hj 1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(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 kernel key operation is allowedh]h*Check if a kernel key operation is allowed}(hjJ1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjG1hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjb1jjb1jjjuh1hhhhj whNhNubj)}(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)}(hjl1h]h Parameters}(hjn1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjf1ubj)}(hhh](j")}(h$``key_ref_t key_ref`` key reference h](j()}(h``key_ref_t key_ref``h]j.)}(hj1h]hkey_ref_t key_ref}(hj1hhhNhNubah}(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.chMhj1ubjD)}(hhh]j)}(h key referenceh]h key reference}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhj1ubj")}(hC``const struct cred *cred`` credentials of actor requesting access h](j()}(h``const struct cred *cred``h]j.)}(hj1h]hconst struct cred *cred}(hj1hhhNhNubah}(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.chMhj1ubjD)}(hhh]j)}(h&credentials of actor requesting accessh]h&credentials of actor requesting access}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhj1ubj")}(h7``enum key_need_perm need_perm`` requested permissions h](j()}(h ``enum key_need_perm need_perm``h]j.)}(hj1h]henum key_need_perm need_perm}(hj1hhhNhNubah}(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.chMhj1ubjD)}(hhh]j)}(hrequested permissionsh]hrequested permissions}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhj1ubeh}(h]h ]h"]h$]h&]uh1jhjf1ubj)}(h**Description**h]j)}(hj82h]h Description}(hj:2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj62ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjf1ubj)}(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.}(hjN2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjf1ubj)}(h **Return**h]j)}(hj_2h]hReturn}(hja2hhhNhNubah}(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.chMhjf1ubj)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hju2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjf1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhj whhhNhNubh)}(hhh](h)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]h)}(hh]hstruct}(hj2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j)}(hkeyh]hkey}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j)}jsj2sbc.security_key_getsecurityasbuh1hhj2ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hj-3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hkeyh]hkey}(hj:3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubj5)}(h char **bufferh](h)}(hcharh]hchar}(hjS3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjO3ubh)}(h h]h }(hja3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjO3ubj)}(hjh]h*}(hjo3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO3ubj)}(hjh]h*}(hj|3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO3ubj)}(hbufferh]hbuffer}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjO3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj2hhhj2hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMhj2hhubj)}(hhh]j)}(hGet the key's security labelh]hGet the key’s security label}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj3jj3jjjuh1hhhhj whNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(hhh](j")}(h``struct key *key`` key h](j()}(h``struct key *key``h]j.)}(hj3h]hstruct key *key}(hj3hhhNhNubah}(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.chMhj3ubjD)}(hhh]j)}(hkeyh]hkey}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 4hMhj 4ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj 4hMhj3ubj")}(h(``char **buffer`` security label buffer h](j()}(h``char **buffer``h]j.)}(hj-4h]h char **buffer}(hj/4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj+4ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj'4ubjD)}(hhh]j)}(hsecurity label bufferh]hsecurity label buffer}(hjF4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB4hMhjC4ubah}(h]h ]h"]h$]h&]uh1jChj'4ubeh}(h]h ]h"]h$]h&]uh1j!hjB4hMhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubj)}(h**Description**h]j)}(hjh4h]h Description}(hjj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(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.}(hj~4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(h **Return**h]j)}(hj4h]hReturn}(hj4hhhNhNubah}(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.chMhj3ubj)}(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 }(hj4hhhNhNubj)}(h **buffer**h]hbuffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh& (including terminating NUL) or -ve if}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubjD)}(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.}(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&]uh1jhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/security_key_post_create_or_update (C function)$c.security_key_post_create_or_updatehNtauh1hhj whhhNhNubh)}(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&]uh1hhj 5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 5hhhj5hMubj)}(h"security_key_post_create_or_updateh]j)}(h"security_key_post_create_or_updateh]h"security_key_post_create_or_update}(hj15hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj 5hhhj5hMubj/)}(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}(hjM5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjI5ubh)}(h h]h }(hjZ5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI5ubh)}(hhh]j)}(hkeyh]hkey}(hjk5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjh5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjm5modnameN classnameNjwjz)}j}]j)}jsj35sb$c.security_key_post_create_or_updateasbuh1hhjI5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI5ubj)}(hkeyringh]hkeyring}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE5ubj5)}(hstruct key *keyh](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}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]j5$c.security_key_post_create_or_updateasbuh1hhj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hj 6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hkeyh]hkey}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE5ubj5)}(hconst void *payloadh](j;)}(hjh]hconst}(hj/6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+6ubh)}(h h]h }(hj<6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+6ubh)}(hvoidh]hvoid}(hjJ6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+6ubh)}(h h]h }(hjX6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+6ubj)}(hjh]h*}(hjf6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+6ubj)}(hpayloadh]hpayload}(hjs6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE5ubj5)}(hsize_t payload_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j5$c.security_key_post_create_or_updateasbuh1hhj6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(h payload_lenh]h payload_len}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE5ubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hflagsh]hflags}(hj 7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE5ubj5)}(h bool createh](h)}(hjoh]hbool}(hj%7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!7ubh)}(h h]h }(hj27hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!7ubj)}(hcreateh]hcreate}(hj@7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjE5ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj 5hhhj5hMubeh}(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}(hjj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjg7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhj whNhNubj)}(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)}(hj7h]h Parameters}(hj7hhhNhNubah}(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.chMhj7ubj)}(hhh](j")}(h>``struct key *keyring`` keyring to which the key is linked to h](j()}(h``struct key *keyring``h]j.)}(hj7h]hstruct key *keyring}(hj7hhhNhNubah}(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.chMhj7ubjD)}(hhh]j)}(h%keyring to which the key is linked toh]h%keyring to which the key is linked to}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMhj7ubj")}(h+``struct key *key`` created or updated key h](j()}(h``struct key *key``h]j.)}(hj7h]hstruct key *key}(hj7hhhNhNubah}(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.chMhj7ubjD)}(hhh]j)}(hcreated or updated keyh]hcreated or updated key}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMhj7ubj")}(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}(hj68hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28hMhj38ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj28hMhj7ubj")}(h)``size_t payload_len`` length of payload h](j()}(h``size_t payload_len``h]j.)}(hjV8h]hsize_t payload_len}(hjX8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjT8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjP8ubjD)}(hhh]j)}(hlength of payloadh]hlength of payload}(hjo8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk8hMhjl8ubah}(h]h ]h"]h$]h&]uh1jChjP8ubeh}(h]h ]h"]h$]h&]uh1j!hjk8hMhj7ubj")}(h"``unsigned long flags`` key flags h](j()}(h``unsigned long flags``h]j.)}(hj8h]hunsigned long flags}(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 key flagsh]h key flags}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hMhj7ubj")}(hG``bool create`` flag indicating whether the key was created or updated h](j()}(h``bool create``h]j.)}(hj8h]h bool create}(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)}(h6flag indicating whether the key was created or updatedh]h6flag indicating whether the key was created or updated}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubj)}(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.chMhj7ubj)}(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.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhj whhhNhNubh)}(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}(hjH9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjD9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjW9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD9hhhjV9hMubj)}(hsecurity_audit_rule_inith]j)}(hsecurity_audit_rule_inith]hsecurity_audit_rule_init}(hji9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhje9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjD9hhhjV9hMubj/)}(h=(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j5)}(h u32 fieldh](h)}(hhh]j)}(hu32h]hu32}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j)}jsjk9sbc.security_audit_rule_initasbuh1hhj9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hfieldh]hfield}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}9ubj5)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j9c.security_audit_rule_initasbuh1hhj9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hoph]hop}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}9ubj5)}(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*}(hj3: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}9ubj5)}(hvoid **lsmruleh](h)}(hvoidh]hvoid}(hjY:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU:ubh)}(h h]h }(hjg:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU:ubj)}(hjh]h*}(hju:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU:ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU:ubj)}(hlsmruleh]hlsmrule}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjU:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}9ubj5)}(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}]j9c.security_audit_rule_initasbuh1hhj: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}9ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjD9hhhjV9hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@9hhhjV9hMubah}(h]j;9ah ](jjeh"]h$]h&]jj)jhuh1hhjV9hMhj=9hhubj)}(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&]uh1jhj=9hhhjV9hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhj whNhNubj)}(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.)}(hjB;h]h u32 field}(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)}(h audit actionh]h audit action}(hj[;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW;hMhjX;ubah}(h]h ]h"]h$]h&]uh1jChj<;ubeh}(h]h ]h"]h$]h&]uh1j!hjW;hMhj9;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-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 rule operatorh]h rule operator}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jChju;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhj9;ubj")}(h``char *rulestr`` rule context h](j()}(h``char *rulestr``h]j.)}(hj;h]h char *rulestr}(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 contexth]h rule 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;hMhj9;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<hMhj9;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;<hMhj9;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubj)}(h**Description**h]j)}(hja<h]h Description}(hjc<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;ubj)}(h4Allocate and initialize an LSM audit rule structure.h]h4Allocate and initialize an LSM audit rule structure.}(hjw<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 }(hj<hhhNhNubj)}(h **lsmrule**h]hlsmrule}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh. has been successfully set, -EINVAL in case of}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj<ubjD)}(hhh]j)}(han invalid rule.h]han invalid rule.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhj whhhNhNubh)}(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}(hjG=hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjC=ubh)}(h h]h }(hjT=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjC=ubh)}(hhh]j)}(h audit_kruleh]h audit_krule}(hje=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjb=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjg=modnameN classnameNjwjz)}j}]j)}jsj-=sbc.security_audit_rule_knownasbuh1hhjC=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)}(hkruleh]hkrule}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjC=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}(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=jjjuh1hhhhj whNhNubj)}(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)}(hjF>h]h Description}(hjH>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD>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}(hjd>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.}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h-void security_audit_rule_free (void *lsmrule)h]h)}(h,void security_audit_rule_free(void *lsmrule)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.chMubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhj>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>hhhj>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>hhhj>hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj>hhhj>hMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj>hhubj)}(hhh]j)}(hFree an LSM audit rule structh]hFree an LSM audit rule struct}(hjT?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjQ?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjl?jjl?jjjuh1hhhhj whNhNubj)}(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)}(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.chMhjp?ubj)}(hhh]j")}(h$``void *lsmrule`` audit rule struct h](j()}(h``void *lsmrule``h]j.)}(hj?h]h void *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)}(haudit rule structh]haudit 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?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.chMhjp?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.chMhjp?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhj whhhNhNubh)}(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}(hj6@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2@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}(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)}(hlsm_proph]hlsm_prop}(hjp@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjr@modnameN classnameNjwjz)}j}]j)}jsj8@sbc.security_audit_rule_matchasbuh1hhjN@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)}(hproph]hprop}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjN@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJ@ubj5)}(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@c.security_audit_rule_matchasbuh1hhj@ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hfieldh]hfield}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJ@ubj5)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j@c.security_audit_rule_matchasbuh1hhjAubh)}(h h]h }(hj-AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hoph]hop}(hj;AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJ@ubj5)}(h void *lsmruleh](h)}(hvoidh]hvoid}(hjTAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPAubh)}(h h]h }(hjbAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPAubj)}(hjh]h*}(hjpAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPAubj)}(hlsmruleh]hlsmrule}(hj}AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJ@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}(hjAhhhNhNubah}(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 @hhhj#@hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjAubj)}(hhh](j")}(h)``struct lsm_prop *prop`` security label h](j()}(h``struct lsm_prop *prop``h]j.)}(hjAh]hstruct lsm_prop *prop}(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.chMhjAubjD)}(hhh]j)}(hsecurity labelh]hsecurity label}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhjAubj")}(h``u32 field`` LSM audit field h](j()}(h ``u32 field``h]j.)}(hj!Bh]h u32 field}(hj#BhhhNhNubah}(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}(hj:BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6BhMhj7Bubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj6BhMhjAubj")}(h``u32 op`` matching operator h](j()}(h ``u32 op``h]j.)}(hjZBh]hu32 op}(hj\BhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXBubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjTBubjD)}(hhh]j)}(hmatching operatorh]hmatching operator}(hjsBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoBhMhjpBubah}(h]h ]h"]h$]h&]uh1jChjTBubeh}(h]h ]h"]h$]h&]uh1j!hjoBhMhjAubj")}(h``void *lsmrule`` audit rule h](j()}(h``void *lsmrule``h]j.)}(hjBh]h void *lsmrule}(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)}(h audit ruleh]h audit rule}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhjAubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjAubj)}(h_Determine if given **secid** matches a rule previously approved by security_audit_rule_known().h](hDetermine if given }(hjBhhhNhNubj)}(h **secid**h]hsecid}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubhC matches a rule previously approved by security_audit_rule_known().}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjAubj)}(h **Return**h]j)}(hjCh]hReturn}(hj ChhhNhNubah}(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.chMhjAubj)}(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}(hj$ChhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj CubjD)}(hhh]j)}(hfailure.h]hfailure.}(hj6ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3Cubah}(h]h ]h"]h$]h&]uh1jChj Cubeh}(h]h ]h"]h$]h&]uh1j!hj2ChMhjCubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_bpf (C function)c.security_bpfhNtauh1hhj whhhNhNubh)}(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}(hjwChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsChhhjChMubj)}(h security_bpfh]j)}(h security_bpfh]h security_bpf}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjsChhhjChMubj/)}(h?(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j5)}(hint cmdh](h)}(hinth]hint}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hcmdh]hcmd}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(hunion bpf_attr *attrh](j;)}(hunionh]hunion}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjCubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj DmodnameN classnameNjwjz)}j}]j)}jsjCsbc.security_bpfasbuh1hhjCubh)}(h h]h }(hj(DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hj6DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hattrh]hattr}(hjCDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(hunsigned int sizeh](h)}(hunsignedh]hunsigned}(hj\DhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXDubh)}(h h]h }(hjjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXDubh)}(hinth]hint}(hjxDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXDubj)}(hsizeh]hsize}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(h bool kernelh](h)}(hjoh]hbool}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hkernelh]hkernel}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjsChhhjChMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjoChhhjChMubah}(h]jjCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjlChhubj)}(hhh]j)}(h-Check if the bpf syscall operation is allowedh]h-Check if the bpf syscall operation is allowed}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjlChhhjChMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj Ejj Ejjjuh1hhhhj whNhNubj)}(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.)}(hj3Eh]hint cmd}(hj5EhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1Eubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj-EubjD)}(hhh]j)}(hcommandh]hcommand}(hjLEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHEhMhjIEubah}(h]h ]h"]h$]h&]uh1jChj-Eubeh}(h]h ]h"]h$]h&]uh1j!hjHEhMhj*Eubj")}(h'``union bpf_attr *attr`` bpf attribute h](j()}(h``union bpf_attr *attr``h]j.)}(hjlEh]hunion bpf_attr *attr}(hjnEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjEubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjfEubjD)}(hhh]j)}(h bpf attributeh]h bpf attribute}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjfEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhj*Eubj")}(h``unsigned int size`` size h](j()}(h``unsigned int size``h]j.)}(hjEh]hunsigned int size}(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)}(hsizeh]hsize}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhj*Eubj")}(h;``bool kernel`` whether or not call originated from kernel h](j()}(h``bool kernel``h]j.)}(hjEh]h bool kernel}(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)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhj*Eubeh}(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.}(hj/FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(h **Return**h]j)}(hj@Fh]hReturn}(hjBFhhhNhNubah}(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.chMhjEubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjVFhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_bpf_map (C function)c.security_bpf_maphNtauh1hhj whhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhjFhMubj)}(hsecurity_bpf_maph]j)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFhhhjFhMubj/)}(h$(struct bpf_map *map, fmode_t fmode)h](j5)}(hstruct bpf_map *maph](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)}(hbpf_maph]hbpf_map}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjFsbc.security_bpf_mapasbuh1hhjFubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hmaph]hmap}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(h fmode_t fmodeh](h)}(hhh]j)}(hfmode_th]hfmode_t}(hj7GhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4Gubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9GmodnameN classnameNjwjz)}j}]jFc.security_bpf_mapasbuh1hhj0Gubh)}(h h]h }(hjUGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0Gubj)}(hfmodeh]hfmode}(hjcGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0Gubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjFhhhjFhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj}FhhhjFhMubah}(h]jxFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhjzFhhubj)}(hhh]j)}(h'Check if access to a bpf map is allowedh]h'Check if access to a bpf map is allowed}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjGhhubah}(h]h ]h"]h$]h&]uh1jhjzFhhhjFhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjGjjGjjjuh1hhhhj whNhNubj)}(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)}(hjGh]h Parameters}(hjGhhhNhNubah}(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.chMhjGubj)}(hhh](j")}(h ``struct bpf_map *map`` bpf map h](j()}(h``struct bpf_map *map``h]j.)}(hjGh]hstruct bpf_map *map}(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.chM hjGubjD)}(hhh]j)}(hbpf maph]hbpf map}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhM hjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhM hjGubj")}(h``fmode_t fmode`` mode h](j()}(h``fmode_t fmode``h]j.)}(hjHh]h fmode_t fmode}(hj HhhhNhNubah}(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}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjGubj)}(h**Description**h]j)}(hjBHh]h Description}(hjDHhhhNhNubah}(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.chMhjGubj)}(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.}(hjXHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjGubj)}(h **Return**h]j)}(hjiHh]hReturn}(hjkHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgHubah}(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.}(hjHhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_bpf_prog (C function)c.security_bpf_proghNtauh1hhj whhhNhNubh)}(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}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHhhhX/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&]uh1hhjHhhhjHhM#ubj)}(hsecurity_bpf_progh]j)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjHhhhjHhM#ubj/)}(h(struct bpf_prog *prog)h]j5)}(hstruct bpf_prog *progh](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)}(hbpf_progh]hbpf_prog}(hj IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj ImodnameN classnameNjwjz)}j}]j)}jsjHsbc.security_bpf_progasbuh1hhjHubh)}(h h]h }(hj)IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hj7IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hprogh]hprog}(hjDIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHubah}(h]h ]h"]h$]h&]j,j-uh1j.hjHhhhjHhM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjHhhhjHhM#ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjHhM#hjHhhubj)}(hhh]j)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjnIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIjjIjjjuh1hhhhj whNhNubj)}(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)}(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.chMhjIubj)}(hhh]j")}(h&``struct bpf_prog *prog`` bpf program h](j()}(h``struct bpf_prog *prog``h]j.)}(hjIh]hstruct bpf_prog *prog}(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:287: ./security/security.chMhjIubjD)}(hhh]j)}(h bpf programh]h bpf program}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(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:287: ./security/security.chMhjIubj)}(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.chMhjIubj)}(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!hjIubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj'JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM!hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhj whhhNhNubh)}(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}(hjVJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4ubh)}(h h]h }(hjeJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRJhhhjdJhM4ubj)}(hsecurity_bpf_map_createh]j)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjwJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRJhhhjdJhM4ubj/)}(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}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjyJsbc.security_bpf_map_createasbuh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hmaph]hmap}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(hunion bpf_attr *attrh](j;)}(hjCh]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}(hj#KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Kubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%KmodnameN classnameNjwjz)}j}]jJc.security_bpf_map_createasbuh1hhjKubh)}(h h]h }(hjAKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hjh]h*}(hjOKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hattrh]hattr}(hj\KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(hstruct bpf_token *tokenh](j;)}(hj>h]hstruct}(hjuKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqKubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]jJc.security_bpf_map_createasbuh1hhjqKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqKubj)}(htokenh]htoken}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(h bool kernelh](h)}(hjoh]hbool}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hkernelh]hkernel}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjRJhhhjdJhM4ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNJhhhjdJhM4ubah}(h]jIJah ](jjeh"]h$]h&]jj)jhuh1hhjdJhM4hjKJhhubj)}(hhh]j)}(h$Check if BPF map creation is allowedh]h$Check if BPF map creation is allowed}(hj*LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hj'Lhhubah}(h]h ]h"]h$]h&]uh1jhjKJhhhjdJhM4ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjBLjjBLjjjuh1hhhhj whNhNubj)}(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)}(hjLLh]h Parameters}(hjNLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjFLubj)}(hhh](j")}(h'``struct bpf_map *map`` BPF map object h](j()}(h``struct bpf_map *map``h]j.)}(hjkLh]hstruct bpf_map *map}(hjmLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiLubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjeLubjD)}(hhh]j)}(hBPF map objecth]hBPF map object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhM*hjLubah}(h]h ]h"]h$]h&]uh1jChjeLubeh}(h]h ]h"]h$]h&]uh1j!hjLhM*hjbLubj")}(hG``union bpf_attr *attr`` BPF syscall attributes used to create BPF map h](j()}(h``union bpf_attr *attr``h]j.)}(hjLh]hunion bpf_attr *attr}(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.chM+hjLubjD)}(hhh]j)}(h-BPF syscall attributes used to create BPF maph]h-BPF syscall attributes used to create BPF map}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhM+hjLubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjLhM+hjbLubj")}(h@``struct bpf_token *token`` BPF token used to grant user access h](j()}(h``struct bpf_token *token``h]j.)}(hjLh]hstruct bpf_token *token}(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.chM,hjLubjD)}(hhh]j)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhM,hjLubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjLhM,hjbLubj")}(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}(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-hjbLubeh}(h]h ]h"]h$]h&]uh1jhjFLubj)}(h**Description**h]j)}(hjQMh]h Description}(hjSMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hjFLubj)}(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.}(hjgMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hjFLubj)}(h **Return**h]j)}(hjxMh]hReturn}(hjzMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2hjFLubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2hjFLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhj whhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhjMhMGubj)}(hsecurity_bpf_prog_loadh]j)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMhhhjMhMGubj/)}(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}(hjMhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjMsbc.security_bpf_prog_loadasbuh1hhjMubh)}(h h]h }(hj8NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjFNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hprogh]hprog}(hjSNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(hunion bpf_attr *attrh](j;)}(hjCh]hunion}(hjlNhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhNubh)}(h h]h }(hjyNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhNubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j4Nc.security_bpf_prog_loadasbuh1hhjhNubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhNubj)}(hattrh]hattr}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(hstruct bpf_token *tokenh](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 bpf_tokenh]h bpf_token}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j4Nc.security_bpf_prog_loadasbuh1hhjNubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hjh]h*}(hj&OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(htokenh]htoken}(hj3OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(h bool kernelh](h)}(hjoh]hbool}(hjLOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHOubh)}(h h]h }(hjYOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHOubj)}(hkernelh]hkernel}(hjgOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjMhhhjMhMGubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjMhhhjMhMGubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjMhMGhjMhhubj)}(hhh]j)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;hjOhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMGubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOjjOjjjuh1hhhhj whNhNubj)}(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)}(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.chM?hjOubj)}(hhh](j")}(h-``struct bpf_prog *prog`` BPF program object h](j()}(h``struct bpf_prog *prog``h]j.)}(hjOh]hstruct bpf_prog *prog}(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.chM<hjOubjD)}(hhh]j)}(hBPF program objecth]hBPF program object}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhM<hjOubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjOhM<hjOubj")}(hK``union bpf_attr *attr`` BPF syscall attributes used to create BPF program h](j()}(h``union bpf_attr *attr``h]j.)}(hj Ph]hunion bpf_attr *attr}(hj PhhhNhNubah}(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.chM=hjPubjD)}(hhh]j)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hj$PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj PhM=hj!Pubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hj PhM=hjOubj")}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j()}(h``struct bpf_token *token``h]j.)}(hjDPh]hstruct bpf_token *token}(hjFPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBPubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hj>PubjD)}(hhh]j)}(h4BPF token used to grant user access to BPF subsystemh]h4BPF token used to grant user access to BPF subsystem}(hj]PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYPhM>hjZPubah}(h]h ]h"]h$]h&]uh1jChj>Pubeh}(h]h ]h"]h$]h&]uh1j!hjYPhM>hjOubj")}(h;``bool kernel`` whether or not call originated from kernel h](j()}(h``bool kernel``h]j.)}(hj}Ph]h bool kernel}(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.chM?hjwPubjD)}(hhh]j)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM?hjPubah}(h]h ]h"]h$]h&]uh1jChjwPubeh}(h]h ]h"]h$]h&]uh1j!hjPhM?hjOubeh}(h]h ]h"]h$]h&]uh1jhjOubj)}(h**Description**h]j)}(hjPh]h Description}(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.chMAhjOubj)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjOubj)}(h **Return**h]j)}(hjPh]hReturn}(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.chMEhjOubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhj whhhNhNubh)}(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}(hj$QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj QhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXubh)}(h h]h }(hj3QhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Qhhhj2QhMXubj)}(hsecurity_bpf_token_createh]j)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(hjEQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj Qhhhj2QhMXubj/)}(hH(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j5)}(hstruct bpf_token *tokenh](j;)}(hj>h]hstruct}(hjaQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj]Qubh)}(h h]h }(hjnQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]Qubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|Qubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjGQsbc.security_bpf_token_createasbuh1hhj]Qubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]Qubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Qubj)}(htokenh]htoken}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]Qubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYQubj5)}(hunion bpf_attr *attrh](j;)}(hjCh]hunion}(hjQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjQubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]jQc.security_bpf_token_createasbuh1hhjQubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hattrh]hattr}(hj*RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYQubj5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjCRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?Rubh)}(h h]h }(hjPRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Rubj;)}(hj>h]hstruct}(hj^RhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?Rubh)}(h h]h }(hjkRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Rubh)}(hhh]j)}(hpathh]hpath}(hj|RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~RmodnameN classnameNjwjz)}j}]jQc.security_bpf_token_createasbuh1hhj?Rubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Rubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Rubj)}(hpathh]hpath}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?Rubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYQubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj Qhhhj2QhMXubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhj2QhMXubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhj2QhMXhjQhhubj)}(hhh]j)}(h)Check if creating of BPF token is allowedh]h)Check if creating of BPF token is allowed}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjRhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhj2QhMXubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhj whNhNubj)}(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&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMRhjRubj)}(hhh](j")}(h-``struct bpf_token *token`` BPF token object h](j()}(h``struct bpf_token *token``h]j.)}(hj Sh]hstruct bpf_token *token}(hj"ShhhNhNubah}(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}(hj9ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ShMOhj6Subah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hj5ShMOhjSubj")}(hI``union bpf_attr *attr`` BPF syscall attributes used to create BPF token h](j()}(h``union bpf_attr *attr``h]j.)}(hjYSh]hunion bpf_attr *attr}(hj[ShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMPhjSSubjD)}(hhh]j)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjrShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnShMPhjoSubah}(h]h ]h"]h$]h&]uh1jChjSSubeh}(h]h ]h"]h$]h&]uh1j!hjnShMPhjSubj")}(h```const struct path *path`` path pointing to BPF FS mount point from which BPF token is created h](j()}(h``const struct path *path``h]j.)}(hjSh]hconst struct path *path}(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.chMQhjSubjD)}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMQhjSubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjShMQhjSubeh}(h]h ]h"]h$]h&]uh1jhjRubj)}(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.chMShjRubj)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjRubj)}(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.chMVhjRubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhj whhhNhNubh)}(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}(hj9ThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMiubh)}(h h]h }(hjHThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ThhhjGThMiubj)}(hsecurity_bpf_token_cmdh]j)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hjZThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5ThhhjGThMiubj/)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j5)}(hconst struct bpf_token *tokenh](j;)}(hjh]hconst}(hjvThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrTubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrTubj;)}(hj>h]hstruct}(hjThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrTubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrTubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]j)}jsj\Tsbc.security_bpf_token_cmdasbuh1hhjrTubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrTubj)}(htokenh]htoken}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnTubj5)}(henum bpf_cmd cmdh](j;)}(hjh]henum}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j)}(hbpf_cmdh]hbpf_cmd}(hj!UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#UmodnameN classnameNjwjz)}j}]jTc.security_bpf_token_cmdasbuh1hhjTubh)}(h h]h }(hj?UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hcmdh]hcmd}(hjMUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnTubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5ThhhjGThMiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1ThhhjGThMiubah}(h]j,Tah ](jjeh"]h$]h&]jj)jhuh1hhjGThMihj.Thhubj)}(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}(hjwUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_hjtUhhubah}(h]h ]h"]h$]h&]uh1jhj.ThhhjGThMiubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhj whNhNubj)}(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)}(hjUh]h Parameters}(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.chMchjUubj)}(hhh](j")}(h3``const struct bpf_token *token`` BPF token object h](j()}(h!``const struct bpf_token *token``h]j.)}(hjUh]hconst struct bpf_token *token}(hjUhhhNhNubah}(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.chMahjUubjD)}(hhh]j)}(hBPF token objecth]hBPF token object}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhMahjUubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjUhMahjUubj")}(hP``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token h](j()}(h``enum bpf_cmd cmd``h]j.)}(hjUh]henum bpf_cmd cmd}(hjUhhhNhNubah}(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.chMbhjUubjD)}(hhh]j)}(h:BPF syscall command requested to be delegated by BPF tokenh]h:BPF syscall command requested to be delegated by BPF token}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMbhjVubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjVhMbhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubj)}(h**Description**h]j)}(hj,Vh]h Description}(hj.VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjUubj)}(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.}(hjBVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjUubj)}(h **Return**h]j)}(hjSVh]hReturn}(hjUVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghjUubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjiVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhj whhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjVhMyubj)}(hsecurity_bpf_token_capableh]j)}(hsecurity_bpf_token_capableh]hsecurity_bpf_token_capable}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhjVhMyubj/)}(h((const struct bpf_token *token, int cap)h](j5)}(hconst struct bpf_token *tokenh](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)}(h bpf_tokenh]h bpf_token}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Wubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsjVsbc.security_bpf_token_capableasbuh1hhjVubh)}(h h]h }(hj.WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjh]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}(hj$YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!Yubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&YmodnameN classnameNjwjz)}j}]j)}jsjXsbc.security_bpf_map_freeasbuh1hhjYubh)}(h h]h }(hjDYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjRYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hmaph]hmap}(hj_YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubah}(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)}(hFree a bpf map's LSM blobh]hFree a bpf map’s LSM blob}(hjYhhhNhNubah}(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&]uh1jhjXhhhjXhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYjjYjjjuh1hhhhj whNhNubj)}(h|**Parameters** ``struct bpf_map *map`` bpf map **Description** Clean up the security information stored inside bpf map.h](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(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.chMhjYubj)}(hhh]j")}(h ``struct bpf_map *map`` bpf map h](j()}(h``struct bpf_map *map``h]j.)}(hjYh]hstruct bpf_map *map}(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:287: ./security/security.chMhjYubjD)}(hhh]j)}(hbpf maph]hbpf map}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhMhjYubah}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjYubj)}(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.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhj whhhNhNubh)}(hhh](h)}(h3void security_bpf_prog_free (struct bpf_prog *prog)Rh]h)}(h2void security_bpf_prog_free(struct bpf_prog *prog)h](h)}(hvoidh]hvoid}(hjJZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjYZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFZhhhjXZhMubj)}(hsecurity_bpf_prog_freeh]j)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hjkZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFZhhhjXZhMubj/)}(h(struct bpf_prog *prog)h]j5)}(hstruct bpf_prog *progh](j;)}(hj>h]hstruct}(hjZhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]j)}jsjmZsbc.security_bpf_prog_freeasbuh1hhjZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hprogh]hprog}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubah}(h]h ]h"]h$]h&]j,j-uh1j.hjFZhhhjXZhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjBZhhhjXZhMubah}(h]j=Zah ](jjeh"]h$]h&]jj)jhuh1hhjXZhMhj?Zhhubj)}(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&]uh1jhj?ZhhhjXZhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"[jj"[jjjuh1hhhhj whNhNubj)}(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.)}(hjK[h]hstruct bpf_prog *prog}(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.chMhjE[ubjD)}(hhh]j)}(hBPF program structh]hBPF program struct}(hjd[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`[hMhja[ubah}(h]h ]h"]h$]h&]uh1jChjE[ubeh}(h]h ]h"]h$]h&]uh1j!hj`[hMhjB[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 }(hjF\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hjT\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(htokenh]htoken}(hja\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)}(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[hhhj[hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhj whNhNubj)}(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)}(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_token *token`` BPF token struct h](j()}(h``struct bpf_token *token``h]j.)}(hj\h]hstruct bpf_token *token}(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 token structh]hBPF token 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)}(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.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_perf_event_open (C function)c.security_perf_event_openhNtauh1hhj whhhNhNubh)}(hhh](h)}(h'int security_perf_event_open (int type)h]h)}(h&int security_perf_event_open(int type)h](h)}(hinth]hint}(hjL]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjH]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&]uh1hhjH]hhhjZ]hMubj)}(hsecurity_perf_event_openh]j)}(hsecurity_perf_event_openh]hsecurity_perf_event_open}(hjm]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjH]hhhjZ]hMubj/)}(h (int type)h]j5)}(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]ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjH]hhhjZ]hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjD]hhhjZ]hMubah}(h]j?]ah ](jjeh"]h$]h&]jj)jhuh1hhjZ]hMhjA]hhubj)}(hhh]j)}(h%Check if a perf event open is allowedh]h%Check if a perf event open is allowed}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jhjA]hhhjZ]hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]jj]jjjuh1hhhhj whNhNubj)}(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)}(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.chMhj]ubj)}(hACheck whether the **type** of perf_event_open syscall is allowed.h](hCheck whether the }(hja^hhhNhNubj)}(h**type**h]htype}(hji^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja^ubh' of perf_event_open syscall is allowed.}(hja^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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_perf_event_alloc (C function)c.security_perf_event_allochNtauh1hhj whhhNhNubh)}(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}(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_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 hj^hhhj^hMubj/)}(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 }(hjD_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hjh]h*}(hjR_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.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 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^hhhj^hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_jj_jjjuh1hhhhj whNhNubj)}(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)}(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 perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hj_h]hstruct perf_event *event}(hj_hhhNhNubah}(h]h ]h"]h$]h&]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 perf eventh]h perf 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)}(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.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 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjB`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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_perf_event_free (C function)c.security_perf_event_freehNtauh1hhj whhhNhNubh)}(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}(hjq`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjm`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&]uh1hhjm`hhhj`hM+ubj)}(hsecurity_perf_event_freeh]j)}(hsecurity_perf_event_freeh]hsecurity_perf_event_free}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjm`hhhj`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_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)}(heventh]hevent}(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.hjm`hhhj`hM+ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhji`hhhj`hM+ubah}(h]jd`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM+hjf`hhubj)}(hhh]j)}(hFree a perf event LSM blobh]hFree a perf event LSM blob}(hj1ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hj.ahhubah}(h]h ]h"]h$]h&]uh1jhjf`hhhj`hM+ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIajjIajjjuh1hhhhj whNhNubj)}(ht**Parameters** ``struct perf_event *event`` perf event **Description** Release (free) perf_event security info.h](j)}(h**Parameters**h]j)}(hjSah]h Parameters}(hjUahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjMaubj)}(hhh]j")}(h(``struct perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hjrah]hstruct perf_event *event}(hjtahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpaubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hjlaubjD)}(hhh]j)}(h perf eventh]h perf event}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahM'hjaubah}(h]h ]h"]h$]h&]uh1jChjlaubeh}(h]h ]h"]h$]h&]uh1j!hjahM'hjiaubah}(h]h ]h"]h$]h&]uh1jhjMaubj)}(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.chM)hjMaubj)}(h(Release (free) perf_event security info.h]h(Release (free) perf_event security info.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hjMaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_perf_event_read (C function)c.security_perf_event_readhNtauh1hhj whhhNhNubh)}(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}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM9ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjbhM9ubj)}(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 hjahhhjbhM9ubj/)}(h(struct perf_event *event)h]j5)}(hstruct perf_event *eventh](j;)}(hj>h]hstruct}(hj/bhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+bubh)}(h h]h }(hjh]hstruct}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j)}jsjcsbc.security_perf_event_writeasbuh1hhjcubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hj#dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(heventh]hevent}(hj0dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubah}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhjchMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhjchMFubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchMFhjchhubj)}(hhh]j)}(h.Check if writing a perf event label is allowedh]h.Check if writing a perf event label is allowed}(hjZdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjWdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrdjjrdjjjuh1hhhhj whNhNubj)}(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)}(hj|dh]h Parameters}(hj~dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMChjvdubj)}(hhh]j")}(h(``struct perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hjdh]hstruct perf_event *event}(hjdhhhNhNubah}(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.chM@hjdubjD)}(hhh]j)}(h perf eventh]h perf event}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhM@hjdubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjdhM@hjdubah}(h]h ]h"]h$]h&]uh1jhjvdubj)}(h**Description**h]j)}(hjdh]h Description}(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.chMBhjvdubj)}(h*Write perf_event security info if allowed.h]h*Write perf_event security info if allowed.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMBhjvdubj)}(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.chMDhjvdubj)}(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.chMDhjvdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhj whhhNhNubh)}(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}(hjBehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVubh)}(h h]h }(hjQehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ehhhjPehMVubj)}(hsecurity_uring_override_credsh]j)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hjcehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_eubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>ehhhjPehMVubj/)}(h(const struct cred *new)h]j5)}(hconst struct cred *newh](j;)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{eubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{eubj;)}(hj>h]hstruct}(hjehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{eubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{eubh)}(hhh]j)}(hcredh]hcred}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjemodnameN classnameNjwjz)}j}]j)}jsjeesbc.security_uring_override_credsasbuh1hhj{eubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{eubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{eubj)}(hnewh]hnew}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{eubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjweubah}(h]h ]h"]h$]h&]j,j-uh1j.hj>ehhhjPehMVubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:ehhhjPehMVubah}(h]j5eah ](jjeh"]h$]h&]jj)jhuh1hhjPehMVhj7ehhubj)}(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&]uh1jhj7ehhhjPehMVubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5fjj5fjjjuh1hhhhj whNhNubj)}(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)}(hj?fh]h Parameters}(hjAfhhhNhNubah}(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.chMRhj9fubj)}(hhh]j")}(h+``const struct cred *new`` new credentials h](j()}(h``const struct cred *new``h]j.)}(hj^fh]hconst struct cred *new}(hj`fhhhNhNubah}(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.chMOhjXfubjD)}(hhh]j)}(hnew credentialsh]hnew credentials}(hjwfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsfhMOhjtfubah}(h]h ]h"]h$]h&]uh1jChjXfubeh}(h]h ]h"]h$]h&]uh1j!hjsfhMOhjUfubah}(h]h ]h"]h$]h&]uh1jhj9fubj)}(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.chMQhj9fubj)}(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 }(hjfhhhNhNubj)}(h**new**h]hnew}(hjfhhhNhNubah}(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.chMQhj9fubj)}(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.chMThj9fubj)}(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.chMThj9fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhj whhhNhNubh)}(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.chMcubh)}(h h]h }(hj&ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjghhhj%ghMcubj)}(hsecurity_uring_sqpollh]j)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(hj8ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4gubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjghhhj%ghMcubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjTghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPgubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLgubah}(h]h ]h"]h$]h&]j,j-uh1j.hjghhhj%ghMcubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhj%ghMcubah}(h]j gah ](jjeh"]h$]h&]jj)jhuh1hhj%ghMchj ghhubj)}(hhh]j)}(h'Check if IORING_SETUP_SQPOLL is allowedh]h'Check if IORING_SETUP_SQPOLL is allowed}(hj~ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM\hj{ghhubah}(h]h ]h"]h$]h&]uh1jhj ghhhj%ghMcubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhj whNhNubj)}(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)}(hjgh]h Parameters}(hjghhhNhNubah}(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.chM`hjgubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjgh]hvoid}(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.chMchjgubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghMchjgubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjghMchjgubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(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.chMehjgubj)}(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]hjgubj)}(h **Return**h]j)}(hj!hh]hReturn}(hj#hhhhNhNubah}(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`hjgubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj7hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_uring_cmd (C function)c.security_uring_cmdhNtauh1hhj whhhNhNubh)}(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}(hjfhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMpubh)}(h h]h }(hjuhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhhjthhMpubj)}(hsecurity_uring_cmdh]j)}(hsecurity_uring_cmdh]hsecurity_uring_cmd}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbhhhhjthhMpubj/)}(h(struct io_uring_cmd *ioucmd)h]j5)}(hstruct io_uring_cmd *ioucmdh](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 io_uring_cmdh]h io_uring_cmd}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsjhsbc.security_uring_cmdasbuh1hhjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hioucmdh]hioucmd}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubah}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhhjthhMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj^hhhhjthhMpubah}(h]jYhah ](jjeh"]h$]h&]jj)jhuh1hhjthhMphj[hhhubj)}(hhh]j)}(h2Check if a io_uring passthrough command is allowedh]h2Check if a io_uring passthrough command is allowed}(hj&ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihj#ihhubah}(h]h ]h"]h$]h&]uh1jhj[hhhhjthhMpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>ijj>ijjjuh1hhhhj whNhNubj)}(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)}(hjHih]h Parameters}(hjJihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMmhjBiubj)}(hhh]j")}(h(``struct io_uring_cmd *ioucmd`` command h](j()}(h``struct io_uring_cmd *ioucmd``h]j.)}(hjgih]hstruct io_uring_cmd *ioucmd}(hjiihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeiubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjaiubjD)}(hhh]j)}(hcommandh]hcommand}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ihMjhj}iubah}(h]h ]h"]h$]h&]uh1jChjaiubeh}(h]h ]h"]h$]h&]uh1j!hj|ihMjhj^iubah}(h]h ]h"]h$]h&]uh1jhjBiubj)}(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:287: ./security/security.chMlhjBiubj)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMlhjBiubj)}(h **Return**h]j)}(hjih]hReturn}(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.chMnhjBiubj)}(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.chMnhjBiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhj whhhNhNubh)}(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&]uh1hhj jhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM|ubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj jhhhjjhM|ubj)}(hsecurity_uring_allowedh]j)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hj/jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+jubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj jhhhjjhM|ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjKjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj jhhhjjhM|ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjjhhhjjhM|ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhM|hjjhhubj)}(hhh]j)}(h$Check if io_uring_setup() is allowedh]h$Check if io_uring_setup() is allowed}(hjujhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjrjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhj whNhNubj)}(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)}(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:287: ./security/security.chMzhjjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjjh]hvoid}(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)}(h no argumentsh]h no arguments}(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&]uh1jhjjubj)}(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.chMhjjubj)}(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.chMwhjjubj)}(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.chMyhjjubj)}(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.chMzhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhj whhhNhNubh)}(hhh](h)}(h(void security_initramfs_populated (void)h]h)}(h'void security_initramfs_populated(void)h](h)}(hvoidh]hvoid}(hj]khhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjlkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYkhhhjkkhMubj)}(hsecurity_initramfs_populatedh]j)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hj~khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYkhhhjkkhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubah}(h]h ]h"]h$]h&]j,j-uh1j.hjYkhhhjkkhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUkhhhjkkhMubah}(h]jPkah ](jjeh"]h$]h&]jj)jhuh1hhjkkhMhjRkhhubj)}(hhh]j)}(h*Notify LSMs that initramfs has been loadedh]h*Notify LSMs that initramfs has been loaded}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjRkhhhjkkhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhj whNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.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:287: ./security/security.chMhjkubj)}(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.chMhjkubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjlhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubj)}(h**Description**h]j)}(hj@lh]h Description}(hjBlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(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.}(hjVlhhhNhNubah}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhj whhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhjlhKubh)}(hhh]j)}(hdentryh]hdentry}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j)}jssecurityfs_create_filesbc.securityfs_create_fileasbuh1hhjlhhhjlhKubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhjlhKubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhKubj)}(hsecurityfs_create_fileh]j)}(hjlh]hsecurityfs_create_file}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlhhhjlhKubj/)}(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}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubh)}(h h]h }(hj(mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hj6mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hnameh]hname}(hjCmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hj_mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjammodnameN classnameNjwjz)}j}]jlc.securityfs_create_fileasbuh1hhjXmubh)}(h h]h }(hj}mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXmubj)}(hmodeh]hmode}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(hstruct dentry *parenth](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)}(hdentryh]hdentry}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jlc.securityfs_create_fileasbuh1hhjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hparenth]hparent}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(h void *datah](h)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hj"nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hj0nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hdatah]hdata}(hj=nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(h"const struct file_operations *fopsh](j;)}(hjh]hconst}(hjVnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRnubh)}(h h]h }(hjcnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRnubj;)}(hj>h]hstruct}(hjqnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRnubh)}(h h]h }(hj~nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRnubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]jlc.securityfs_create_fileasbuh1hhjRnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRnubj)}(hfopsh]hfops}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhjlhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj}lhhhjlhKubah}(h]jxlah ](jjeh"]h$]h&]jj)jhuh1hhjlhKhjzlhhubj)}(hhh]j)}(h*create a file in the securityfs filesystemh]h*create a file in the securityfs filesystem}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjnhhubah}(h]h ]h"]h$]h&]uh1jhjzlhhhjlhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj ojj ojjjuh1hhhhj whNhNubj)}(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.)}(hj3oh]hconst char *name}(hj5ohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1oubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj-oubjD)}(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.}(hjLohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHohKhjIoubah}(h]h ]h"]h$]h&]uh1jChj-oubeh}(h]h ]h"]h$]h&]uh1j!hjHohKhj*oubj")}(h:``umode_t mode`` the permission that the file should have h](j()}(h``umode_t mode``h]j.)}(hjloh]h umode_t mode}(hjnohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjoubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjfoubjD)}(hhh]j)}(h(the permission that the file should haveh]h(the permission that the file should have}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohKhjoubah}(h]h ]h"]h$]h&]uh1jChjfoubeh}(h]h ]h"]h$]h&]uh1j!hjohKhj*oubj")}(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.)}(hjoh]hstruct dentry *parent}(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)}(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 }(hjohhhNhNubj.)}(h``NULL``h]hNULL}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubhI, then the file will be created in the root of the securityfs filesystem.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjohKhj*oubj")}(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.)}(hjoh]h void *data}(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)}(ha pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call.h]ha pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call.}(hj phhhNhNubah}(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&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjphKhj*oubj")}(hp``const struct file_operations *fops`` a pointer to a struct file_operations that should be used for this file. h](j()}(h&``const struct file_operations *fops``h]j.)}(hj+ph]h"const struct file_operations *fops}(hj-phhhNhNubah}(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.chKhj%pubjD)}(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.}(hjDphhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjApubah}(h]h ]h"]h$]h&]uh1jChj%pubeh}(h]h ]h"]h$]h&]uh1j!hj@phKhj*oubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hjgph]h Description}(hjiphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjepubah}(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 }(hj}phhhNhNubj)}(h**name**h]hname}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}pubh.}(hj}phhhNhNubeh}(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).}(hjphhhNhNubah}(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 }(hjphhhNhNubj.)}(h ``-ENODEV``h]h-ENODEV}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubh is returned.}(hjphhhNhNubeh}(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&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhj whhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjphhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhjphKubh)}(hhh]j)}(hdentryh]hdentry}(hj qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj qubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jssecurityfs_create_dirsbc.securityfs_create_dirasbuh1hhjphhhjphKubh)}(h h]h }(hj.qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhjphKubj)}(hjh]h*}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(hdentryh]hdentry}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)qc.securityfs_create_dirasbuh1hhjqubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hparenth]hparent}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`qubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjphhhjphKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjphKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphKhjphhubj)}(hhh]j)}(h/create a directory in the securityfs filesystemh]h/create a directory in the securityfs filesystem}(hjFrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjCrhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^rjj^rjjjuh1hhhhj whNhNubj)}(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)}(hjhrh]h Parameters}(hjjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjbrubj)}(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.)}(hjrh]hconst char *name}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjrubjD)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjrubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjrhKhj~rubj")}(h``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j()}(h``struct dentry *parent``h]j.)}(hjrh]hstruct dentry *parent}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjrubjD)}(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 directory will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hjrhhhNhNubj.)}(h``NULL``h]hNULL}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubhN, then the directory will be created in the root of the securityfs filesystem.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjrubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjrhKhj~rubeh}(h]h ]h"]h$]h&]uh1jhjbrubj)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjbrubj)}(hHThis function creates a directory in securityfs with the given **name**.h](h?This function creates a directory in securityfs with the given }(hj%shhhNhNubj)}(h**name**h]hname}(hj-shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%subh.}(hj%shhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjbrubj)}(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).}(hjFshhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjbrubj)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hjUshhhNhNubj.)}(h ``-ENODEV``h]h-ENODEV}(hj]shhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUsubh is returned.}(hjUshhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjbrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&securityfs_create_symlink (C function)c.securityfs_create_symlinkhNtauh1hhj whhhNhNubh)}(hhh](h)}(hstruct dentry * securityfs_create_symlink (const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h]h)}(hstruct dentry *securityfs_create_symlink(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j;)}(hj>h]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjshhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjshMubh)}(hhh]j)}(hdentryh]hdentry}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jssecurityfs_create_symlinksbc.securityfs_create_symlinkasbuh1hhjshhhjshMubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjshMubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshMubj)}(hsecurityfs_create_symlinkh]j)}(hjsh]hsecurityfs_create_symlink}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjshhhjshMubj/)}(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:hj tubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj tubh)}(hcharh]hchar}(hj+thhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj tubh)}(h h]h }(hj9thhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj tubj)}(hjh]h*}(hjGthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj tubj)}(hnameh]hname}(hjTthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj tubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(hstruct dentry *parenth](j;)}(hj>h]hstruct}(hjmthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjitubh)}(h h]h }(hjzthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjitubh)}(hhh]j)}(hdentryh]hdentry}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]jsc.securityfs_create_symlinkasbuh1hhjitubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjitubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjitubj)}(hparenth]hparent}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjitubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(hconst char *targeth](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 }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(htargeth]htarget}(hj!uhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(h#const struct inode_operations *iopsh](j;)}(hjh]hconst}(hj:uhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6uubh)}(h h]h }(hjGuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6uubj;)}(hj>h]hstruct}(hjUuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6uubh)}(h h]h }(hjbuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6uubh)}(hhh]j)}(hinode_operationsh]hinode_operations}(hjsuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjuumodnameN classnameNjwjz)}j}]jsc.securityfs_create_symlinkasbuh1hhj6uubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6uubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6uubj)}(hiopsh]hiops}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6uubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjshhhjshMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjshhhjshMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjshhubj)}(hhh]j)}(h-create a symlink in the securityfs filesystemh]h-create a symlink in the securityfs filesystem}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjuhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjujjujjjuh1hhhhj whNhNubj)}(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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjuubj)}(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.}(hj0vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj-vubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hj,vhKhjvubj")}(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.)}(hjQvh]hstruct dentry *parent}(hjSvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOvubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjKvubjD)}(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 }(hjjvhhhNhNubj.)}(h``NULL``h]hNULL}(hjrvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjvubhN, then the directory will be created in the root of the securityfs filesystem.}(hjjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjgvubah}(h]h ]h"]h$]h&]uh1jChjKvubeh}(h]h ]h"]h$]h&]uh1j!hjfvhKhjvubj")}(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.)}(hjvh]hconst char *target}(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 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 }(hjvhhhNhNubj.)}(h``NULL``h]hNULL}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubh , then the }(hjvhhhNhNubj)}(h**iops**h]hiops}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hjvhhhNhNubeh}(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``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.)}(hjvh]h#const struct inode_operations *iops}(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 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&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjwhKhjvubeh}(h]h ]h"]h$]h&]uh1jhjuubj)}(h**Description**h]j)}(hjIwh]h Description}(hjKwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGwubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjuubj)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink in securityfs with the given }(hj_whhhNhNubj)}(h**name**h]hname}(hjgwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_wubh.}(hj_whhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjuubj)}(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).}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjuubj)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hjwhhhNhNubj.)}(h ``-ENODEV``h]h-ENODEV}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubh is returned.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurityfs_remove (C function)c.securityfs_removehNtauh1hhj whhhNhNubh)}(hhh](h)}(h.void securityfs_remove (struct dentry *dentry)h]h)}(h-void securityfs_remove(struct dentry *dentry)h](h)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chM'ubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhjwhM'ubj)}(hsecurityfs_removeh]j)}(hsecurityfs_removeh]hsecurityfs_remove}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjwhhhjwhM'ubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj xhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj xubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj xubh)}(hhh]j)}(hdentryh]hdentry}(hj+xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(xubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-xmodnameN classnameNjwjz)}j}]j)}jsjwsbc.securityfs_removeasbuh1hhj xubh)}(h h]h }(hjKxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj xubj)}(hjh]h*}(hjYxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubj)}(hdentryh]hdentry}(hjfxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj xubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubah}(h]h ]h"]h$]h&]j,j-uh1j.hjwhhhjwhM'ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjwhhhjwhM'ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjwhM'hjwhhubj)}(hhh]j)}(h:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhM'ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjxjjxjjjuh1hhhhj whNhNubj)}(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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjxubj)}(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.)}(hjxh]hstruct dentry *dentry}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjxubjD)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(h**Description**h]j)}(hj yh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj yubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjxubj)}(hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)h]hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)}(hj"yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjxubj)}(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.}(hj1yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chM#hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj whhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(securityfs_recursive_remove (C function)c.securityfs_recursive_removehNtauh1hhj whhhNhNubh)}(hhh](h)}(h8void securityfs_recursive_remove (struct dentry *dentry)h]h)}(h7void securityfs_recursive_remove(struct dentry *dentry)h](h)}(hvoidh]hvoid}(hj`yhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\yhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMJubh)}(h h]h }(hjoyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\yhhhjnyhMJubj)}(hsecurityfs_recursive_removeh]j)}(hsecurityfs_recursive_removeh]hsecurityfs_recursive_remove}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}yubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\yhhhjnyhMJubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](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)}(hdentryh]hdentry}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j)}jsjysbc.securityfs_recursive_removeasbuh1hhjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hdentryh]hdentry}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubah}(h]h ]h"]h$]h&]j,j-uh1j.hj\yhhhjnyhMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXyhhhjnyhMJubah}(h]jSyah ](jjeh"]h$]h&]jj)jhuh1hhjnyhMJhjUyhhubj)}(hhh]j)}(h'recursively removes a file or directoryh]h'recursively removes a file or directory}(hj zhhhNhNubah}(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&]uh1jhjUyhhhjnyhMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8zjj8zjjjuh1hhhhj whNhNubj)}(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)}(hjBzh]h Parameters}(hjDzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@zubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMFhjh]hstruct}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMCubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhj{hMCubh)}(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_startasbuh1hhjzhhhj{hMCubh)}(h h]h }(hj:{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhj{hMCubj)}(hjh]h*}(hjH{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhj{hMCubj)}(haudit_log_starth]j)}(hj7{h]haudit_log_start}(hjY{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjU{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhj{hMCubj/)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j5)}(hstruct audit_context *ctxh](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 audit_contexth]h audit_context}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j5{c.audit_log_startasbuh1hhjp{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)}(hctxh]hctx}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjp{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjl{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}]j5{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-uh1j4hjl{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}(hjH|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.hjzhhhj{hMCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhj{hMCubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhj{hMChjzhhubj)}(hhh]j)}(hobtain an audit bufferh]hobtain an audit buffer}(hjr|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM5hjo|hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhj{hMCubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|jj|jjjuh1hhhhjzhNhNubj)}(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)}(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.chM9hj|ubj)}(hhh](j")}(h:``struct audit_context *ctx`` audit_context (may be NULL) h](j()}(h``struct audit_context *ctx``h]j.)}(hj|h]hstruct audit_context *ctx}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM6hj|ubjD)}(hhh]j)}(haudit_context (may be NULL)h]haudit_context (may be NULL)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hM6hj|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hM6hj|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}hM7hj|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:}hM8hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubj)}(h**Description**h]j)}(hj`}h]h Description}(hjb}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.}(hjv}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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_format (C function)c.audit_log_formathNtauh1hhjzhhhNhNubh)}(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}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}hhhj}hMubj)}(haudit_log_formath]j)}(haudit_log_formath]haudit_log_format}(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_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)}jsj}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}(hjJ~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hjc~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_~ubh)}(h h]h }(hjp~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)}(hfmth]hfmt}(hj~hhhNhNubah}(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.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'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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.chMhjubj)}(hhh](j")}(h)``struct audit_buffer *ab`` audit_buffer h](j()}(h``struct audit_buffer *ab``h]j.)}(hj*h]hstruct audit_buffer *ab}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhj$ubjD)}(hhh]j)}(h audit_bufferh]h audit_buffer}(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"``const char *fmt`` format string h](j()}(h``const char *fmt``h]j.)}(hjch]hconst char *fmt}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhj]ubjD)}(hhh]j)}(h format stringh]h format string}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhj!ubj")}(h4``...`` optional parameters matching **fmt** string h](j()}(h``...``h]j.)}(hjh]h...}(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+optional parameters matching **fmt** stringh](hoptional parameters matching }(hjhhhNhNubj)}(h**fmt**h]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh string}(hjhhhNhNubeh}(h]h ]h"]h$]h&]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&]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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_end (C function)c.audit_log_endhNtauh1hhjzhhhNhNubh)}(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.chMv ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj<hMv ubj)}(h audit_log_endh]j)}(h audit_log_endh]h audit_log_end}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj*hhhj<hMv ubj/)}(h(struct audit_buffer *ab)h]j5)}(hstruct audit_buffer *abh](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 audit_bufferh]h audit_buffer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjQsbc.audit_log_endasbuh1hhjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(habh]hab}(hjĀhhhNhNubah}(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<hMv ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj<hMv ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMv 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<hMv ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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 hj ubj)}(hhh]j")}(h-``struct audit_buffer *ab`` the audit_buffer h](j()}(h``struct audit_buffer *ab``h]j.)}(hj/h]hstruct audit_buffer *ab}(hj1hhhNhNubah}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhMo hjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhMo 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMq hj ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMq hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log (C function) c.audit_loghNtauh1hhjzhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(h audit_logh]j)}(h audit_logh]h audit_log}(hjЁhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj́ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM 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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjҁsb c.audit_logasbuh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hjEhhhNhNubah}(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}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j& c.audit_logasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(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}(hj‚hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *fmth](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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjׂubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjׂubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h...h]j)}(hjh]h...}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(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)}(hLog an audit recordh]hLog an audit record}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjzhNhNubj)}(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)}(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.chM hj}ubj)}(hhh](j")}(h,``struct audit_context *ctx`` audit context h](j()}(h``struct audit_context *ctx``h]j.)}(hjh]hstruct audit_context *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h audit contexth]h audit context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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.chM hjՃubjD)}(hhh]j)}(htype of allocationh]htype of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjՃubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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 hjubj")}(h)``const char *fmt`` format string to use h](j()}(h``const char *fmt``h]j.)}(hjMh]hconst char *fmt}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjGubjD)}(hhh]j)}(hformat string to useh]hformat string to use}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhM hjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhM hjubj")}(h7``...`` variable parameters matching the format string h](j()}(h``...``h]j.)}(hjh]h...}(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)}(h.variable parameters matching the format stringh]h.variable parameters matching 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&]uh1jhj}ubj)}(h**Description**h]j)}(hjh]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.chM hj}ubj)}(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.}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_filter_op (C function)c.__audit_filter_ophNtauh1hhjzhhhNhNubh)}(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}(hj'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}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(h task_structh]h task_struct}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j)}jsj)sbc.__audit_filter_opasbuh1hhj?ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(htskh]htsk}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj…hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjӅhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjЅubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjՅmodnameN classnameNjwjz)}j}]j}c.__audit_filter_opasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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: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}c.__audit_filter_opasbuh1hhj!ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hjohhhNhNubah}(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 audit_names *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)}(h audit_namesh]h audit_names}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j}c.__audit_filter_opasbuh1hhjubh)}(h h]h }(hjцhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj߆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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}(hj!hhhNhNubah}(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)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM.hjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM;ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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.chM2hjubj)}(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.chM/hjubjD)}(hhh]j)}(hassociated taskh]hassociated task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM/hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM/hjubj")}(h,``struct audit_context *ctx`` audit context h](j()}(h``struct audit_context *ctx``h]j.)}(hjh]hstruct audit_context *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj߇ubah}(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!hjhM0hjubj")}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hM1hj0ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj/hM1hjubj")}(h6``struct audit_names *name`` audit_name (can be NULL) h](j()}(h``struct audit_names *name``h]j.)}(hjSh]hstruct audit_names *name}(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:299: ./kernel/auditsc.chM2hjMubjD)}(hhh]j)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM2hjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhM2hjubj")}(h.``unsigned long op`` current syscall/uring_op h](j()}(h``unsigned long op``h]j.)}(hjh]hunsigned long op}(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.chM3hjubjD)}(hhh]j)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM3hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM3hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjLjh]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.chM5hjubj)}(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}(hj hhhNhNubah}(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.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_filter_uring (C function)c.audit_filter_uringhNtauh1hhjzhhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjthhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjhMTubj)}(haudit_filter_uringh]j)}(haudit_filter_uringh]haudit_filter_uring}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjthhhjhMTubj/)}(h4(struct task_struct *tsk, struct audit_context *ctx)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_filter_uringasbuh1hhjubh)}(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-uh1j4hjubj5)}(hstruct audit_context *ctxh](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)}(h audit_contexth]h audit_context}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjGmodnameN classnameNjwjz)}j}]jc.audit_filter_uringasbuh1hhj#ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hjh]h*}(hjqhhhNhNubah}(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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjthhhjhMTubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjhMTubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjmhhubj)}(hhh]j)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMPhjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhMTubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](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.chMThjĊubj)}(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-hj ubah}(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.chMRhj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hMShjubeh}(h]h ]h"]h$]h&]uh1jhjĊubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ audit_reset_context (C function)c.audit_reset_contexthNtauh1hhjzhhhNhNubh)}(hhh](h)}(h4void audit_reset_context (struct audit_context *ctx)h]h)}(h3void audit_reset_context(struct audit_context *ctx)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.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjhMubj)}(haudit_reset_contexth]j)}(haudit_reset_contexth]haudit_reset_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjhMubj/)}(h(struct audit_context *ctx)h]j5)}(hstruct audit_context *ctxh](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 audit_contexth]h audit_context}(hj׋hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjԋubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjًmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_reset_contextasbuh1hhjubh)}(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-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj)}(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.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjTjjTjjjuh1hhhhjzhNhNubj)}(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)}(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.chMhjXubj)}(hhh]j")}(h9``struct audit_context *ctx`` the audit_context to reset h](j()}(h``struct audit_context *ctx``h]j.)}(hj}h]hstruct audit_context *ctx}(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.chMhjwubjD)}(hhh]j)}(hthe audit_context to reseth]hthe audit_context to reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjtubah}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjXubj)}(hXAll fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.h]hXAll fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.}(hjΌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_alloc (C function) c.audit_allochNtauh1hhjzhhhNhNubh)}(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.chM!ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hM!ubj)}(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 hjhhhj hM!ubj/)}(h(struct task_struct *tsk)h]j5)}(hstruct task_struct *tskh](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 task_structh]h task_struct}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]j)}jsj sb c.audit_allocasbuh1hhj6ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(htskh]htsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubah}(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*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(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&]uh1jhjhhhj hM!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjՍjjՍjjjuh1hhhhjzhNhNubj)}(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)}(hjߍh]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.chMhjٍubj)}(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&]uh1jhjٍubj)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjٍubj)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjٍubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_uring (C function)c.audit_log_uringhNtauh1hhjzhhhNhNubh)}(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}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjhMhubj)}(haudit_log_uringh]j)}(haudit_log_uringh]haudit_log_uring}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhjhMhubj/)}(h(struct audit_context *ctx)h]j5)}(hstruct audit_context *ctxh](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 audit_contexth]h audit_context}(hjَhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj֎ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjێmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_log_uringasbuh1hhjubh)}(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-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjzhhhjhMhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjhMhubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMhhjshhubj)}(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&]uh1jhjshhhjhMhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjVjjVjjjuh1hhhhjzhNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](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:299: ./kernel/auditsc.chMihjZubj)}(hhh]j")}(h/``struct audit_context *ctx`` the audit contexth](j()}(h``struct audit_context *ctx``h]j.)}(hjh]hstruct audit_context *ctx}(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.chMkhjyubjD)}(hhh]j)}(hthe audit contexth]hthe audit context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMfhjubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjhMkhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_free (C function)c.__audit_freehNtauh1hhjzhhhNhNubh)}(hhh](h)}(h+void __audit_free (struct task_struct *tsk)h]h)}(h*void __audit_free(struct task_struct *tsk)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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjՏhhhjhMubj)}(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 hjՏhhhjhMubj/)}(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}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_freeasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htskh]htsk}(hjohhhNhNubah}(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)}(hfree a per-task audit contexth]hfree a per-task audit context}(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ΏhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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")}(hC``struct task_struct *tsk`` task whose audit context block to free h](j()}(h``struct task_struct *tsk``h]j.)}(hjڐh]hstruct task_struct *tsk}(hjܐhhhNhNubah}(h]h ]h"]h$]h&]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)}(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&]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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_return_fixup (C function)c.audit_return_fixuphNtauh1hhjzhhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMMubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjhhMMubj)}(haudit_return_fixuph]j)}(haudit_return_fixuph]haudit_return_fixup}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhjhhMMubj/)}(h3(struct audit_context *ctx, int success, long code)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)}jsj}sbc.audit_return_fixupasbuh1hhjubh)}(h h]h }(hjՑhhhNhNubah}(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)}(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)}(h long codeh](h)}(hlongh]hlong}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hcodeh]hcode}(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.hjVhhhjhhMMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjRhhhjhhMMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhMMhjOhhubj)}(hhh]j)}(h+fixup the return codes in the audit_contexth]h+fixup the return codes in the audit_context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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")}(h0``struct audit_context *ctx`` the audit_context h](j()}(h``struct audit_context *ctx``h]j.)}(hjŒh]hstruct audit_context *ctx}(hjǒhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjÒubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMFhjubjD)}(hhh]j)}(hthe audit_contexth]hthe audit_context}(hjޒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڒhMFhjےubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjڒhMFhjubj")}(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!hjhMGhjubj")}(h$``long code`` operation return code h](j()}(h ``long code``h]j.)}(hj7h]h long code}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMHhj1ubjD)}(hhh]j)}(hoperation return codeh]hoperation return code}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhMHhjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhMHhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhjzhhhNhNubh)}(hhh](h)}(h void __audit_uring_entry (u8 op)h]h)}(hvoid __audit_uring_entry(u8 op)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMiubh)}(h h]h }(hjƓhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjœhMiubj)}(h__audit_uring_entryh]j)}(h__audit_uring_entryh]h__audit_uring_entry}(hjؓhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjԓubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjœhMiubj/)}(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)}jsjړsbc.__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.hjhhhjœhMiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjœhMiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjœhMihjhhubj)}(hhh]j)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMahjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjœhMiubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhjzhNhNubj)}(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)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMehjkubj)}(hhh]j")}(h``u8 op`` the io_uring opcode h](j()}(h ``u8 op``h]j.)}(hjh]hu8 op}(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.chMbhjubjD)}(hhh]j)}(hthe io_uring opcodeh]hthe io_uring opcode}(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&]uh1jhjkubj)}(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.chMdhjkubj)}(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.chMdhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhjzhhhNhNubh)}(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&]uh1hhj 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 hhhjhMubj)}(h__audit_uring_exith]j)}(h__audit_uring_exith]h__audit_uring_exit}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhjhMubj/)}(h(int success, long code)h](j5)}(h int successh](h)}(hinth]hint}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hsuccessh]hsuccess}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubj5)}(h long codeh](h)}(hlongh]hlong}(hjhhhNhNubah}(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-uh1j4hjEubeh}(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)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hjȕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjŕhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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.)}(hj h]h int success}(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.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.)}(hjBh]h long code}(hjDhhhNhNubah}(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)}(hoperation return codeh]hoperation return code}(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&]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.}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhjzhhhNhNubh)}(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}(hj–hhhNhNubah}(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_syscall_entryh]j)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjߖubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjЖhMubj/)}(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 }(hj hhhNhNubah}(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}(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)}(ha1h]ha1}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long a2h](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)}(ha2h]ha2}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long a3h](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)}(ha3h]ha3}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjҗubeh}(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 }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hlongh]hlong}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(ha4h]ha4}(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ЖhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjЖhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjЖhMhjhhubj)}(hhh]j)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(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&]uh1jhjhhhjЖhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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 major`` major syscall type (function) h](j()}(h ``int major``h]j.)}(hjʘh]h int major}(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)}(hmajor syscall type (function)h]hmajor syscall type (function)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߘhMhjubah}(h]h ]h"]h$]h&]uh1jChjĘubeh}(h]h ]h"]h$]h&]uh1j!hjߘhMhjubj")}(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!hjhMhjubj")}(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.chMhj6ubjD)}(hhh]j)}(hadditional syscall register 2h]hadditional syscall register 2}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjubj")}(h3``unsigned long a3`` additional syscall register 3 h](j()}(h``unsigned long a3``h]j.)}(hjuh]hunsigned long a3}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjoubjD)}(hhh]j)}(hadditional syscall register 3h]hadditional syscall register 3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h3``unsigned long a4`` additional syscall register 4 h](j()}(h``unsigned long a4``h]j.)}(hjh]hunsigned long a4}(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 4h]hadditional syscall register 4}(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)}(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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__audit_syscall_exit (C function)c.__audit_syscall_exithNtauh1hhjzhhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(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}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hsuccessh]hsuccess}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubj5)}(hlong return_codeh](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h return_codeh]h return_code}(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<hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj<hMubah}(h]j!ah ](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&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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}(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.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.chMhj!ubjD)}(hhh]j)}(hsuccess value of the syscallh]hsuccess value of the syscall}(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")}(h1``long return_code`` return value of the syscall h](j()}(h``long return_code``h]j.)}(hj`h]hlong return_code}(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.chMhjZubjD)}(hhh]j)}(hreturn value of the syscallh]hreturn value of the syscall}(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&]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().}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_reusename (C function)c.__audit_reusenamehNtauh1hhjzhhhNhNubh)}(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 }(hj hhhNhNubah}(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}(hjVhhhNhNubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj;)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjVubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hcharh]hchar}(hjhhhNhNubah}(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)}(huptrh]huptr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubah}(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/fill out filename with info from existing entryh]h/fill out filename with info from existing 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&]uh1jhj՛hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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}(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&]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.}(hjlhhhNhNubah}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_getname (C function)c.__audit_getnamehNtauh1hhjzhhhNhNubh)}(hhh](h)}(h,void __audit_getname (struct filename *name)h]h)}(h+void __audit_getname(struct filename *name)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_getnameh]j)}(h__audit_getnameh]h__audit_getname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct filename *name)h]j5)}(hstruct filename *nameh](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)}(hfilenameh]hfilename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_getnameasbuh1hhjԝubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjԝubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԝubj)}(hnameh]hname}(hj1hhhNhNubah}(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)}(hadd a name to the listh]hadd a name to the list}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjsjjsjjjuh1hhhhjzhNhNubj)}(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)}(hj}h]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.chMhjwubj)}(hhh]j")}(h&``struct filename *name`` name to add 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)}(h name to addh]h name to add}(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&]uh1jhjwubj)}(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.chMhjwubj)}(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.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_inode (C function)c.__audit_inodehNtauh1hhjzhhhNhNubh)}(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&]uh1jhj9ubah}(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}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hfilenameh]hfilename}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j)}jsj?sbc.__audit_inodeasbuh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hconst struct dentry *dentryh](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)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.__audit_inodeasbuh1hhjǟubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjǟubj)}(hjh]h*}(hj0hhhNhNubah}(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-uh1j4hjQubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hinth]hint}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubeh}(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}(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&]uh1jhjhhhj*hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjРjjРjjjuh1hhhhjzhNhNubj)}(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)}(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.chMhjԠubj)}(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.)}(hj2h]hconst struct dentry *dentry}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(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}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhjubj")}(h;``unsigned int flags`` attributes for this particular entryh](j()}(h``unsigned int flags``h]j.)}(hjkh]hunsigned int flags}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjeubjD)}(hhh]j)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjԠubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌauditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhjzhhhNhNubh)}(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}(hjšhhhNhNubah}(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)}(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 hjhhhjӡhM 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}(hj hhhNhNubah}(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 }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct timespec64 *th](j;)}(hj>h]hstruct}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j)}(h timespec64h]h timespec64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j<c.auditsc_get_stampasbuh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hth]ht}(hjˢhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(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.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(get local copies of audit_context valuesh]h(get local copies of audit_context values}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjӡhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhjzhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjoubj)}(hhh](j")}(h9``struct audit_context *ctx`` audit_context for the task h](j()}(h``struct audit_context *ctx``h]j.)}(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.chM hjubjD)}(hhh]j)}(haudit_context for the taskh]haudit_context for the task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(hP``struct timespec64 *t`` timespec64 to store time recorded in the audit_context h](j()}(h``struct timespec64 *t``h]j.)}(hjͣh]hstruct timespec64 *t}(hjϣhhhNhNubah}(h]h ]h"]h$]h&]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)}(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&]uh1jChjǣubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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 hjubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(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 hjoubj)}(h#Also sets the context as auditable.h]h#Also sets the context as auditable.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_mq_open (C function)c.__audit_mq_openhNtauh1hhjzhhhNhNubh)}(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}(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_mq_openh]j)}(h__audit_mq_openh]h__audit_mq_open}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h/(int oflag, umode_t mode, struct mq_attr *attr)h](j5)}(h int oflagh](h)}(hinth]hint}(hjähhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjѤhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoflagh]hoflag}(hjߤhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__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-uh1j4hjubj5)}(hstruct mq_attr *attrh](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)}(hmq_attrh]hmq_attr}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]jc.__audit_mq_openasbuh1hhj>ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hattrh]hattr}(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.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhjhM ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhM hj{hhubj)}(hhh]j)}(h%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(hjåhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjۥjjۥjjjuh1hhhhjzhNhNubj)}(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 hjߥubj)}(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 hj7ubjD)}(hhh]j)}(h mode bitsh]h mode bits}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhM hjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhM hjubj")}(h)``struct mq_attr *attr`` queue attributesh](j()}(h``struct mq_attr *attr``h]j.)}(hjvh]hstruct mq_attr *attr}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjpubjD)}(hhh]j)}(hqueue attributesh]hqueue attributes}(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&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjߥubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhjzhhhNhNubh)}(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}(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_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 hj̦hhhjަ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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_mq_sendrecvasbuh1hhj ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hmqdesh]hmqdes}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t msg_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j,c.__audit_mq_sendrecvasbuh1hhjSubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hmsg_lenh]hmsg_len}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int msg_prioh](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)}(hmsg_prioh]hmsg_prio}(hjקhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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}(hj hhhNhNubah}(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 }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h abs_timeouth]h abs_timeout}(hjbhhhNhNubah}(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ަ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)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(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&]uh1jhjŦhhhjަhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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"``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 hjĨubj")}(h+``unsigned int msg_prio`` Message priority h](j()}(h``unsigned int msg_prio``h]j.)}(hj?h]hunsigned int msg_prio}(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:299: ./kernel/auditsc.chM hj9ubjD)}(hhh]j)}(hMessage priorityh]hMessage priority}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThM hjUubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hjThM hjĨubj")}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j()}(h(``const struct timespec64 *abs_timeout``h]j.)}(hjxh]h$const struct timespec64 *abs_timeout}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjrubjD)}(hhh]j)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(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&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjĨubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhjzhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjΩhhhjhM 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 hjΩhhhjhM 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_notifyasbuh1hhj ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hmqdesh]hmqdes}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h#const struct sigevent *notificationh](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)}(hsigeventh]hsigevent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j.c.__audit_mq_notifyasbuh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h notificationh]h notification}(hj˪hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(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'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&]uh1jhjǩhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjzhNhNubj)}(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.)}(hj6h]h mqd_t mqdes}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj0ubjD)}(hhh]j)}(h MQ descriptorh]h MQ descriptor}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhM hjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhM hj-ubj")}(h:``const struct sigevent *notification`` Notification eventh](j()}(h'``const struct sigevent *notification``h]j.)}(hjoh]h#const struct sigevent *notification}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjiubjD)}(hhh]j)}(hNotification eventh]hNotification event}(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&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj-ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhjzhhhNhNubh)}(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}(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_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 hjūhhhj׫hM/ ubj/)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j5)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_mq_getsetattrasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmqdesh]hmqdes}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct mq_attr *mqstath](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)}(hmq_attrh]hmq_attr}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]j%c.__audit_mq_getsetattrasbuh1hhjLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hmqstath]hmqstat}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(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)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(hjѬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM* hjάhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj׫hM/ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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+ hj ubjD)}(hhh]j)}(h MQ descriptorh]h MQ descriptor}(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 mq_attr *mqstat`` MQ flagsh](j()}(h``struct mq_attr *mqstat``h]j.)}(hjKh]hstruct mq_attr *mqstat}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM- hjEubjD)}(hhh]j)}(hMQ flagsh]hMQ flags}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM, hjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hM- hj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhjzhhhNhNubh)}(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}(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_ipc_objh]j)}(h__audit_ipc_objh]h__audit_ipc_obj}(hjƭhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj­ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM= 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)}jsjȭsbc.__audit_ipc_objasbuh1hhjޭ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)}(hipcph]hipcp}(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)}(h record audit data for ipc objecth]h record audit data for ipc object}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM9 hjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM= ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj}jj}jjjuh1hhhhjzhNhNubj)}(h@**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permissionsh](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.``struct kern_ipc_perm *ipcp`` ipc permissionsh](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'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM? hjubjD)}(hhh]j)}(hipc permissionsh]hipc permissions}(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? hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__audit_ipc_set_perm (C function)c.__audit_ipc_set_permhNtauh1hhjzhhhNhNubh)}(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.chMR ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMR ubj)}(h__audit_ipc_set_permh]j)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMR 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&]uh1hhj9ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hqbytesh]hqbytes}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(h uid_t uidh](h)}(hhh]j)}(huid_th]huid_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj#sbc.__audit_ipc_set_permasbuh1hhjubh)}(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-uh1j4hj5ubj5)}(h gid_t gidh](h)}(hhh]j)}(hgid_th]hgid_t}(hjۯhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjدubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjݯmodnameN classnameNjwjz)}j}]jc.__audit_ipc_set_permasbuh1hhjԯubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjԯubj)}(hgidh]hgid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjԯubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(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}]jc.__audit_ipc_set_permasbuh1hhjubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmodeh]hmode}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMR ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMR ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMR hjhhubj)}(hhh]j)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJ hjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMR ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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.chMN hjubj)}(hhh](j")}(h$``unsigned long qbytes`` msgq bytes h](j()}(h``unsigned long qbytes``h]j.)}(hjh]hunsigned long qbytes}(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.chMK hjubjD)}(hhh]j)}(h msgq bytesh]h msgq bytes}(hjӰhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϰhMK hjаubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjϰhMK hjubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhML hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhML hjubj")}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMM hjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMM hjubj")}(h)``umode_t mode`` msgq mode (permissions) h](j()}(h``umode_t mode``h]j.)}(hjeh]h umode_t mode}(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.chMN hj_ubjD)}(hhh]j)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhMN hj{ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hjzhMN 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.chMP hjubj)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMP hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_socketcall (C function)c.__audit_socketcallhNtauh1hhjzhhhNhNubh)}(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.chMl ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMl ubj)}(h__audit_socketcallh]j)}(h__audit_socketcallh]h__audit_socketcall}(hjhhhNhNubah}(h]h ]j aOh"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMl 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 }(hj0hhhNhNubah}(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}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hlongh]hlong}(hjshhhNhNubah}(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)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMl ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjݱhhhjhMl ubah}(h]jرah ](jjeh"]h$]h&]jj)jhuh1hhjhMl hjڱhhubj)}(hhh]j)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjƲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMg hjòhhubah}(h]h ]h"]h$]h&]uh1jhjڱhhhjhMl ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj޲jj޲jjjuh1hhhhjzhNhNubj)}(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}(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.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.}(hj hhhNhNubah}(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.)}(hj@h]hunsigned long *args}(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.chMj hj:ubjD)}(hhh]j)}(h args arrayh]h args array}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMi hjVubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hjUhMj hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhjzhhhNhNubh)}(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}(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_fd_pairh]j)}(h__audit_fd_pairh]h__audit_fd_pair}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM~ ubj/)}(h(int fd1, int fd2)h](j5)}(hint fd1h](h)}(hinth]hint}(hj׳hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjӳubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӳubj)}(hfd1h]hfd1}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӳubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjϳubj5)}(hint fd2h](h)}(hinth]hint}(hj hhhNhNubah}(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-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)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMy hjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM~ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjzhNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](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:299: ./kernel/auditsc.chM} hjnubj)}(hhh](j")}(h&``int fd1`` the first file descriptor h](j()}(h ``int fd1``h]j.)}(hjh]hint fd1}(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.chMz hjubjD)}(hhh]j)}(hthe first file descriptorh]hthe first file descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMz hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMz hjubj")}(h&``int fd2`` the second file descriptorh](j()}(h ``int fd2``h]j.)}(hj̴h]hint fd2}(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)}(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&]uh1jChjƴubeh}(h]h ]h"]h$]h&]uh1j!hjhM| hjubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhjzhhhNhNubh)}(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 }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj4hM ubj)}(h__audit_sockaddrh]j)}(h__audit_sockaddrh]h__audit_sockaddr}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"hhhj4hM ubj/)}(h(int len, void *a)h](j5)}(hint lenh](h)}(hinth]hint}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubj5)}(hvoid *ah](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)}(hj6 h]ha}(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"hhhj4hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj4hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hM 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&]uh1jhjhhhj4hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(hj h]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.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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hM hjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hM hj"ubj")}(h)``void *a`` data address in kernel space h](j()}(h ``void *a``h]j.)}(hjdh]hvoid *a}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(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 address in kernel spaceh]hdata address in kernel space}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhM hjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhM 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&]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.}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&audit_signal_info_syscall (C function)c.audit_signal_info_syscallhNtauh1hhjzhhhNhNubh)}(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}(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 reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_signal_info_syscallasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj͢h]ht}(hjzhhhNhNubah}(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]j׶ah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjٶhhubj)}(hhh]j)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(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&]uh1jhjٶhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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 hjubj)}(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&]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:299: ./kernel/auditsc.chM hjubj)}(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.}(hj5hhhNhNubah}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhjzhhhNhNubh)}(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}(hjdhhhNhNubah}(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 }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhjrhM ubj)}(h__audit_log_bprm_fcapsh]j)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhjrhM ubj/)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__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)}(hbprmh]hbprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *newh](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)}(hcredh]hcred}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j۸c.__audit_log_bprm_fcapsasbuh1hhjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjxhhhNhNubah}(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}(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}]j۸c.__audit_log_bprm_fcapsasbuh1hhjubh)}(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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj`hhhjrhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj\hhhjrhM ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhM hjYhhubj)}(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 hj7hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhjzhNhNubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjVubj)}(hhh](j")}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j()}(h``struct linux_binprm *bprm``h]j.)}(hj{h]hstruct linux_binprm *bprm}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjuubjD)}(hhh]j)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjrubj")}(h8``const struct cred *new`` the proposed new credentials h](j()}(h``const struct cred *new``h]j.)}(hjh]hconst struct cred *new}(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 proposed new credentialsh]hthe proposed 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 hjrubj")}(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 hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubj)}(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 hjVubj)}(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 hjVubj)}(h-Erich]h-Eric}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_log_capset (C function)c.__audit_log_capsethNtauh1hhjzhhhNhNubh)}(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}(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)}(h__audit_log_capseth]j)}(h__audit_log_capseth]h__audit_log_capset}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjhM ubj/)}(h0(const struct cred *new, const struct cred *old)h](j5)}(hconst struct cred *newh](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}]j)}jsjsbc.__audit_log_capsetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(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-uh1j4hjubj5)}(hconst struct cred *oldh](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}(hjahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjBubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.__audit_log_capsetasbuh1hhjBubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(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;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 hj߼hhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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-hj!ubah}(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&]uh1jhj8hM hj9ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj8hM hjubj")}(h9``const struct cred *old`` the old (current) credentials h](j()}(h``const struct cred *old``h]j.)}(hj\h]hconst struct cred *old}(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 old (current) credentialsh]hthe old (current) credentials}(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&]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}(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&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_core_dumps (C function)c.audit_core_dumpshNtauh1hhjzhhhNhNubh)}(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&]uh1hhjؽhhhU/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&]uh1hhjؽhhhjhM 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 hjؽhhhjhM 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}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(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)}(h6record information about processes that end abnormallyh]h6record information about processes that end abnormally}(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&]uh1jhjѽhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhjzhNhNubj)}(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)}(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 hj{ubj)}(hhh]j")}(h``long signr`` signal value h](j()}(h``long signr``h]j.)}(hjh]h long signr}(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 signal valueh]h signal value}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj{ubj)}(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 hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_seccomp (C function)c.audit_seccomphNtauh1hhjzhhhNhNubh)}(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}(hj hhhNhNubah}(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}(hjAhhhNhNubah}(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}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hsyscallh]hsyscall}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(h long signrh](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(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-uh1j4hjUubj5)}(hint codeh](h)}(hinth]hint}(hjhhhNhNubah}(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-uh1j4hjUubeh}(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}(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&]uh1jhjhhhj.hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjzhNhNubj)}(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)}(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.chM hjEubj)}(hhh](j")}(h)``unsigned long syscall`` syscall number h](j()}(h``unsigned long syscall``h]j.)}(hjjh]hunsigned long syscall}(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.chM hjdubjD)}(hhh]j)}(hsyscall numberh]hsyscall number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjaubj")}(h``long signr`` signal value h](j()}(h``long signr``h]j.)}(hjh]h long signr}(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 signal valueh]h signal value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjaubj")}(h ``int code`` the seccomp action h](j()}(h ``int code``h]j.)}(hjh]hint 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.chM hjubjD)}(hhh]j)}(hthe seccomp actionh]hthe seccomp action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjaubeh}(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.chM hjEubj)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_rule_change (C function)c.audit_rule_changehNtauh1hhjzhhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMnubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjjhMnubj)}(haudit_rule_changeh]j)}(haudit_rule_changeh]haudit_rule_change}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjjhMnubj/)}(h.(int type, int seq, void *data, size_t datasz)h](j5)}(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)}(hint seqh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hseqh]hseq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t dataszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_rule_changeasbuh1hhjAubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hdataszh]hdatasz}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjjhMnubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjjhMnubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMnhjQhhubj)}(hhh]j)}(h-apply all rules to the specified message typeh]h-apply all rules to the specified message type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMnubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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)}(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.chMlhjubj)}(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.chMihjubjD)}(hhh]j)}(haudit message typeh]haudit message type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMihjubj")}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMjhj0ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj/hMjhjubj")}(h``void *data`` payload data h](j()}(h``void *data``h]j.)}(hjSh]h void *data}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMkhjMubjD)}(hhh]j)}(h payload datah]h payload data}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMkhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhMkhjubj")}(h&``size_t datasz`` size of payload datah](j()}(h``size_t datasz``h]j.)}(hjh]h size_t datasz}(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.chMmhjubjD)}(hhh]j)}(hsize of payload datah]hsize of payload data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMlhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMmhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"audit_list_rules_send (C function)c.audit_list_rules_sendhNtauh1hhjzhhhNhNubh)}(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}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]j)}jsj sbc.audit_list_rules_sendasbuh1hhjubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h request_skbh]h request_skb}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint seqh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hseqh]hseq}(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)}(hlist the audit rulesh]hlist the audit rules}(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&]jjqjjjjjjjuh1hhhhjzhNhNubj)}(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}(hjMhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.ubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(hqstrh]hqstr}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_compare_dname_pathasbuh1hhj.ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hdnameh]hdname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(hconst char *pathh](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)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(h int parentlenh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h parentlenh]h parentlen}(hj8hhhNhNubah}(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[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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjzjjzjjjuh1hhhhjzhNhNubj)}(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)}(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.chMhj~ubj)}(hhh](j")}(h>``const struct qstr *dname`` dentry name that we're comparing h](j()}(h``const struct qstr *dname``h]j.)}(hjh]hconst struct qstr *dname}(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)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h8``const char *path`` full pathname that we're comparing 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'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjubjD)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.}(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&]uh1jhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzhhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM&ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hhhhhM2ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsys_acct (C function) c.sys_accthNtauh1hhj]hhhNhNubh)}(hhh](h)}(h(long sys_acct (const char __user * name)h]h)}(h&long sys_acct(const char __user *name)h](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM:ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM:ubj)}(hsys_accth]j)}(hsys_accth]hsys_acct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM:ubj/)}(h(const char __user *name)h]j5)}(hconst char __user *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&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(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!enable/disable process accountingh]h!enable/disable process accounting}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM0hjAhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhM:ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhj]hNhNubj)}(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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM4hj`ubj)}(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.)}(hjh]hconst char __user * name}(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.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM1hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM1hj|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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM3hj`ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM3hj`ubj)}(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.chM8hj`ubj)}(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.chM8hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌacct_collect (C function)c.acct_collecthNtauh1hhj]hhhNhNubh)}(hhh](h)}(h1void acct_collect (long exitcode, int group_dead)h]h)}(h0void acct_collect(long exitcode, int group_dead)h](h)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMJubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(hhhj:hMJubj)}(h acct_collecth]j)}(h acct_collecth]h acct_collect}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj(hhhj:hMJubj/)}(h(long exitcode, int group_dead)h](j5)}(h long exitcodeh](h)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hexitcodeh]hexitcode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubj5)}(hint group_deadh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h group_deadh]h group_dead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj(hhhj:hMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj$hhhj:hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj:hMJhj!hhubj)}(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&]uh1jhj!hhhj:hMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj]hNhNubj)}(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.)}(hj%h]h long exitcode}(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.chMGhjubjD)}(hhh]j)}(htask exit codeh]htask exit code}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hMGhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hMGhjubj")}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j()}(h``int group_dead``h]j.)}(hj^h]hint group_dead}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMIhjXubjD)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMHhjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌacct_process (C function)c.acct_processhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hvoid acct_process (void)h]h)}(hvoid acct_process(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h acct_processh]j)}(h acct_processh]h acct_process}(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.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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhj]hNhNubj)}(h'**Parameters** ``void`` no argumentsh](j)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(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.chMhj;ubj)}(hhh]j")}(h``void`` no argumentsh](j()}(h``void``h]j.)}(hj`h]hvoid}(hjbhhhNhNubah}(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.chMhjZubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM2ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM8ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_advance (C function) c.bio_advancehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/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 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 hjhhhjhKubj/)}(h&(struct bio *bio, unsigned int nbytes)h](j5)}(hstruct bio *bioh](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)}(hbioh]hbio}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j)}jsjsb c.bio_advanceasbuh1hhj ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbioh]hbio}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nbytesh](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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hnbytesh]hnbytes}(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.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(hj%h]hstruct bio *bio}(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.hhK|hjubjD)}(hhh]j)}(hbio to advanceh]hbio to advance}(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")}(h4``unsigned int nbytes`` number of bytes to complete h](j()}(h``unsigned int nbytes``h]j.)}(hj^h]hunsigned int nbytes}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhK}hjXubjD)}(hhh]j)}(hnumber of bytes to completeh]hnumber of bytes to complete}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshK}hjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshK}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: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.}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB will then represent the remaining, uncompleted portion of the io.}(hjhhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_iter (C struct) c.folio_iterhNtauh1hhjhhhNhNubh)}(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 }(hj hhhNhNubah}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM hj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqstructeh"]h$]h&]jjqjjUjjUjjjuh1hhhhjhNhNubj)}(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}(hjahhhNhNubah}(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:314: ./include/linux/bio.hhM hjYubjo)}(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; };}hjzsbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjYubj)}(h **Members**h]j)}(hjh]hMembers}(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.hhMhjYubj)}(hhh](j")}(hI``folio`` The current folio we're iterating. NULL after the last folio. h](j()}(h ``folio``h]j.)}(hjh]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h>The current folio we're iterating. NULL after the last folio.h]h@The current folio we’re iterating. NULL after the last folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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 hjubjD)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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.hhM hjubjD)}(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).}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hM hj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hM hjubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjhhhNhNubh)}(hhh](h)}(hbio_for_each_folio_allh]h)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]j)}(hjoh]hbio_for_each_folio_all}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM>ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhjhM>ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjhM>ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h$``bio_for_each_folio_all (fi, bio)``h]j.)}(hjh]h bio_for_each_folio_all (fi, bio)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM@hjhhubj<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.}(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&]uh1j;8hjhM:hjhhubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM>hjubj)}(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.)}(hj8h]hbio}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM=hj2ubjD)}(hhh]j)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM<hjNubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hjMhM=hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_next_split (C function)c.bio_next_splithNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMQubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsbio_next_splitsbc.bio_next_splitasbuh1hhjhhhjhMQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMQubj)}(hbio_next_splith]j)}(hjh]hbio_next_split}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMQubj/)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j5)}(hstruct bio *bioh](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)}(hbioh]hbio}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]jc.bio_next_splitasbuh1hhjubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int sectorsh](h)}(hinth]hint}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hsectorsh]hsectors}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(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}]jc.bio_next_splitasbuh1hhjubh)}(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-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}]jc.bio_next_splitasbuh1hhjubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbsh]hbs}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hjzhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh# from a bio, splitting if necessary}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMHhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMQubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.hhMLhjubj)}(hhh](j")}(h!``struct bio *bio`` bio to split 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.hhMIhjubjD)}(hhh]j)}(h bio to splith]h bio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMIhjubj")}(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.hhMJhjubjD)}(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}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMJhjubj")}(h``gfp_t gfp`` gfp mask h](j()}(h ``gfp_t gfp``h]j.)}(hjMh]h gfp_t gfp}(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.hhMKhjGubjD)}(hhh]j)}(hgfp maskh]hgfp mask}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhMKhjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhMKhjubj")}(h0``struct bio_set *bs`` bio set to allocate from h](j()}(h``struct bio_set *bs``h]j.)}(hjh]hstruct bio_set *bs}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hbio set to allocate fromh]hbio set to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(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:314: ./include/linux/bio.hhMNhjubj)}(ha bio representing the next **sectors** of **bio** - if the bio is smaller than **sectors**, returns the original bio unchanged.h](ha bio representing the next }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh - if the bio is smaller than }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%, returns the original bio unchanged.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_is_zone_append (C function)c.bio_is_zone_appendhNtauh1hhjhhhNhNubh)}(hhh](h)}(h)bool bio_is_zone_append (struct bio *bio)h]h)}(h(bool bio_is_zone_append(struct bio *bio)h](h)}(hjoh]hbool}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhjIhMubj)}(hbio_is_zone_appendh]j)}(hbio_is_zone_appendh]hbio_is_zone_append}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj8hhhjIhMubj/)}(h(struct bio *bio)h]j5)}(hstruct bio *bioh](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)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj^sbc.bio_is_zone_appendasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubah}(h]h ]h"]h$]h&]j,j-uh1j.hj8hhhjIhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj4hhhjIhMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhj1hhubj)}(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&]uh1jhj1hhhjIhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(hj<h]hstruct bio *bio}(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.hhMhj6ubjD)}(hhh]j)}(h bio to checkh]h bio to check}(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&]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 }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_queue_flag_set (C function)c.blk_queue_flag_sethNtauh1hhjhhhNhNubh)}(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.chKPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKPubj)}(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 hjhhhjhKPubj/)}(h,(unsigned int flag, struct request_queue *q)h](j5)}(hunsigned int flagh](h)}(hunsignedh]hunsigned}(hj hhhNhNubah}(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 }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagh]hflag}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct request_queue *qh](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 request_queueh]h request_queue}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j)}jsjsbc.blk_queue_flag_setasbuh1hhjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(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]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&]uh1jhjhhhjhKPubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(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.chKMhjubjD)}(hhh]j)}(hflag to be seth]hflag to be set}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hKMhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hKMhjubj")}(h)``struct request_queue *q`` request queueh](j()}(h``struct request_queue *q``h]j.)}(hjXh]hstruct request_queue *q}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKOhjRubjD)}(hhh]j)}(h request queueh]h request queue}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKNhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhKOhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blk_queue_flag_clear (C function)c.blk_queue_flag_clearhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chK[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK[ubj)}(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 hjhhhjhK[ubj/)}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagh]hflag}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct request_queue *qh](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 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)}jsjsbc.blk_queue_flag_clearasbuh1hhj<ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hjhhhNhNubah}(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-uh1j4hjubeh}(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)}(hatomically clear a queue flagh]hatomically clear a queue flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKWhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK[ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(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.chKZhj6ubjD)}(hhh]j)}(h request queueh]h request queue}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKYhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhKZhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_op_str (C function) c.blk_op_strhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chK|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK|ubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhK|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK|ubj)}(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 hjhhhjhK|ubj/)}(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 }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoph]hop}(hjGhhhNhNubah}(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)}(h$Return string XXX in the REQ_OP_XXX.h]h$Return string XXX in the REQ_OP_XXX.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKuhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.chKyhjubj)}(hhh]j")}(h``enum req_op op`` REQ_OP_XXX. h](j()}(h``enum req_op op``h]j.)}(hjh]henum req_op op}(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.chKvhjubjD)}(hhh]j)}(h REQ_OP_XXX.h]h REQ_OP_XXX.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKvhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKvhjubah}(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.chKxhjubj)}(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.chKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_sync_queue (C function)c.blk_sync_queuehNtauh1hhjhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj@hKubj)}(hblk_sync_queueh]j)}(hblk_sync_queueh]hblk_sync_queue}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj@hKubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](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)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjUsbc.blk_sync_queueasbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjfh]hq}(hjhhhNhNubah}(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@hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*hhhj@hKubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hKhj'hhubj)}(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&]uh1jhj'hhhj@hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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.chKhj ubj)}(hhh]j")}(h&``struct request_queue *q`` the queue h](j()}(h``struct request_queue *q``h]j.)}(hj2h]hstruct request_queue *q}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhj,ubjD)}(hhh]j)}(h the queueh]h the queue}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhKhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhj ubj<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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjubj)}(hThis function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h]hThis function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjhhhNhNubh)}(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}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]j)}jsjsbc.blk_set_pm_onlyasbuh1hhjubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjahhhNhNubah}(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)}(hincrement pm_only counterh]hincrement pm_only counter}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](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")}(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!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_put_queue (C function)c.blk_put_queuehNtauh1hhjhhhNhNubh)}(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}(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 }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj3hMubj)}(h blk_put_queueh]j)}(h blk_put_queueh]h blk_put_queue}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhhj3hMubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](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)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjHsbc.blk_put_queueasbuh1hhj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(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-uh1j4hjZubah}(h]h ]h"]h$]h&]j,j-uh1j.hj!hhhj3hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhjhhubj)}(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&]uh1jhjhhhj3hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(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.chMhjubjD)}(hhh]j)}(h9the request_queue structure to decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hj>hhhNhNubah}(h]h ]h"]h$]h&]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)}(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: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.}(hjvhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_get_queue (C function)c.blk_get_queuehNtauh1hhjhhhNhNubh)}(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}(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_get_queueh]j)}(h blk_get_queueh]h blk_get_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 }(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*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(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$increment the request_queue refcounth]h$increment the request_queue refcount}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{jj{jjjuh1hhhhjhNhNubj)}(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)}(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 increment 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 increment the refcount forh]h9the request_queue structure to increment 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)}(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.chMhjubj)}(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.chMhjubj)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsubmit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjhhhNhNubh)}(hhh](h)}(h(void submit_bio_noacct (struct bio *bio)h]h)}(h'void submit_bio_noacct(struct bio *bio)h](h)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM ubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjYhM ubj)}(hsubmit_bio_noaccth]j)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjGhhhjYhM ubj/)}(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)}jsjnsbc.submit_bio_noacctasbuh1hhjubh)}(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.hjGhhhjYhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjChhhjYhM ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhM hj@hhubj)}(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}(hj hhhNhNubah}(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&]uh1jhj@hhhjYhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj#jj#jjjuh1hhhhjhNhNubj)}(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)}(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:315: ./block/blk-core.chMhj'ubj)}(hhh]j")}(hQ``struct bio *bio`` The bio describing the location in memory and on the device. h](j()}(h``struct bio *bio``h]j.)}(hjLh]hstruct bio *bio}(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:315: ./block/blk-core.chMhjFubjD)}(hhh]j)}(hh]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jsjsb c.submit_bioasbuh1hhjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjbhhhNhNubah}(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.submit a bio to the block device layer for I/Oh]h.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.chM~hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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")}(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&]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.chMhjubj)}(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 }(hjAhhhNhNubh)}(h:c:type:`struct bio `h]j.)}(hjKh]h struct bio}(hjMhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8biouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjAubhr that describes the I/O that needs to be done. The bio will be send to the device described by the bi_bdev field.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(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 }(hjshhhNhNubj)}(h**bio**h]hbio}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubhQ. The bio must NOT be touched by the caller until ->bi_end_io() has been called.}(hjshhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_poll (C function) c.bio_pollhNtauh1hhjhhhNhNubh)}(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}(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)}(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 hjhhhjhMubj/)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.bio_pollasbuh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct io_comp_batch *iobh](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)}(h io_comp_batchh]h io_comp_batch}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j+ c.bio_pollasbuh1hhj_ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hiobh]hiob}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(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}(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)}(hpoll for BIO completionsh]hpoll for BIO completions}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjMjjMjjjuh1hhhhjhNhNubj)}(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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjQubj)}(hhh](j")}(h$``struct bio *bio`` bio to poll for h](j()}(h``struct bio *bio``h]j.)}(hjvh]hstruct bio *bio}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjpubjD)}(hhh]j)}(hbio to poll forh]hbio to poll for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjmubj")}(h,``struct io_comp_batch *iob`` batches of IO h](j()}(h``struct io_comp_batch *iob``h]j.)}(hjh]hstruct io_comp_batch *iob}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 batches of IOh]h batches of IO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjmubj")}(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!hjhMhjmubeh}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjQubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjQubj)}(h**Note**h]j)}(hjJh]hNote}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjQubj)}(h|the caller must either be the context that submitted **bio**, or be in a RCU critical section to prevent freeing of **bio**.h](h5the caller must either be the context that submitted }(hj`hhhNhNubj)}(h**bio**h]hbio}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh8, or be in a RCU critical section to prevent freeing of }(hj`hhhNhNubj)}(h**bio**h]hbio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjhhhNhNubh)}(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}(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&]uh1hhjhhhjhMubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(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 hjhhhjhMubj/)}(h(struct bio *bio)h]j5)}(hstruct bio *bioh](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)}(hbioh]hbio}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jsjsbc.bio_start_io_acctasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(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*start I/O accounting for bio based driversh]h*start I/O accounting for bio based drivers}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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 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&]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.chMhjubj)}(hGReturns the start time that should be passed back to bio_end_io_acct().h]hGReturns the start time that should be passed back to bio_end_io_acct().}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjhhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMIubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhj^hMIubj)}(h blk_lld_busyh]j)}(h blk_lld_busyh]h blk_lld_busy}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhj^hMIubj/)}(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)}jsjssbc.blk_lld_busyasbuh1hhjubh)}(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.hjLhhhj^hMIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjHhhhj^hMIubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj^hMIhjEhhubj)}(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.chM7hj hhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMIubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'jj'jjjuh1hhhhjhNhNubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(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.chM;hj+ubj)}(hhh]j")}(hB``struct request_queue *q`` the queue of the device being checked h](j()}(h``struct request_queue *q``h]j.)}(hjPh]hstruct request_queue *q}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM8hjJubjD)}(hhh]j)}(h%the queue of the device being checkedh]h%the queue of the device being checked}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehM8hjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehM8hjGubah}(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.chM:hj+ubj<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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM:hjubj)}(hX"Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load.h]hX"Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM>hjubeh}(h]h ]h"]h$]h&]uh1j;8hjhM:hj+ubj)}(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.chMDhj+ubj<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;8hjhMEhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_start_plug (C function)c.blk_start_plughNtauh1hhjhhhNhNubh)}(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.chMubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj(hMubj)}(hblk_start_plugh]j)}(hblk_start_plugh]hblk_start_plug}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj(hMubj/)}(h(struct blk_plug *plug)h]j5)}(hstruct blk_plug *plugh](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)}(hblk_plugh]hblk_plug}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]j)}jsj=sbc.blk_start_plugasbuh1hhjSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hplugh]hplug}(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)}(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&]uh1jhjhhhj(hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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 }(hj4hhhNhNubh)}(h$:c:type:`struct blk_plug `h]j.)}(hj>h]hstruct blk_plug}(hj@hhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8blk_pluguh1hhj0hM{hj4ubh that needs to be initialized}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj0hM{hj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hM{hjubah}(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&]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 }(hjhhhNhNubj.)}(h``BLK_MAX_REQUEST_COUNT``h]hBLK_MAX_REQUEST_COUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh+, or if the size of the I/O is larger than }(hjhhhNhNubj.)}(h``BLK_PLUG_FLUSH_SIZE``h]hBLK_PLUG_FLUSH_SIZE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM}hjubj)}(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.chMhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_finish_plug (C function)c.blk_finish_plughNtauh1hhjhhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(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 hjhhhj hMubj/)}(h(struct blk_plug *plug)h]j5)}(hstruct blk_plug *plugh](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)}(hblk_plugh]hblk_plug}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_finish_plugasbuh1hhj4ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hplugh]hplug}(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 hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]j)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(hj!hhhNhNubah}(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)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(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.}(hjphhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM0ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM0ubj)}(hblk_queue_enterh]j)}(hblk_queue_enterh]hblk_queue_enter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM0ubj/)}(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)}jsjsbc.blk_queue_enterasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hj5hhhNhNubah}(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}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]jc.blk_queue_enterasbuh1hhjIubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hflagsh]hflags}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.chM0hjubj)}(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.)}(hj h]hblk_mq_req_flags_t flags}(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: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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM.hj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjhhhNhNubh)}(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}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chM#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjhM#ubj)}(hblk_rq_map_user_iovh]j)}(hblk_rq_map_user_iovh]hblk_rq_map_user_iov}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjhM#ubj/)}(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}(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_rq_map_user_iovasbuh1hhjubh)}(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 request *rqh](j;)}(hj>h]hstruct}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hrequesth]hrequest}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]jc.blk_rq_map_user_iovasbuh1hhj$ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjrhhhNhNubah}(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-uh1j4hjubj5)}(hstruct rq_map_data *map_datah](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 rq_map_datah]h rq_map_data}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmap_datah]hmap_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]jc.blk_rq_map_user_iovasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiterh]hiter}(hjzhhhNhNubah}(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}]jc.blk_rq_map_user_iovasbuh1hhjubh)}(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-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjvhhhjhM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjrhhhjhM#ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjohhubj)}(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&]uh1jhjohhhjhM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhj ubah}(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.)}(hj-h]hstruct request_queue *q}(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.chMhj'ubjD)}(hhh]j)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhj$ubj")}(h.``struct request *rq`` request to map data to h](j()}(h``struct request *rq``h]j.)}(hjfh]hstruct request *rq}(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.chMhj`ubjD)}(hhh]j)}(hrequest to map data toh]hrequest to map data to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hMhj$ubj")}(hY``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) h](j()}(h ``struct rq_map_data *map_data``h]j.)}(hjh]hstruct rq_map_data *map_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h7pointer to the rq_map_data holding pages (if necessary)h]h7pointer to the rq_map_data holding pages (if necessary)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj$ubj")}(h/``const struct iov_iter *iter`` iovec iterator h](j()}(h``const struct iov_iter *iter``h]j.)}(hjh]hconst struct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]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!hjhMhj$ubj")}(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.chMhj ubjD)}(hhh]j)}(hmemory allocation flagsh]hmemory allocation flags}(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)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjbubj)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjbubeh}(h]h ]h"]h$]h&]uh1j;8hjthMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjhhhNhNubh)}(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}(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_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 hjhhhjhMubj/)}(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 }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj3hhhNhNubah}(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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hunmap a request with user datah]hunmap a request with user data}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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 bio *bio`` start of bio list 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'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(hstart of bio listh]hstart of bio list}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubj<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.chMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjhhhNhNubh)}(hhh](h)}(hoint blk_rq_map_kern (struct request_queue *q, struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h]h)}(hnint blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf, unsigned int len, 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_kernh]j)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhjChMubj/)}(h[(struct request_queue *q, struct request *rq, void *kbuf, unsigned int len, 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_kernasbuh1hhjnubh)}(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_kernasbuh1hhjubh)}(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)}(h void *kbufh](h)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hkbufh]hkbuf}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(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-uh1j4hjjubj5)}(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.blk_rq_map_kernasbuh1hhjubh)}(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-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)}(h6map kernel data to a request, for passthrough requestsh]h6map kernel data to a request, for passthrough requests}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhj<hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjWjjWjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct request_queue *q`` request queue where request should be inserted ``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)}(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:321: ./block/blk-map.chMhj[ubj)}(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-hj~ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjzubjD)}(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&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjwubj")}(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!hjhMhjwubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjwubj")}(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.chMhj%ubjD)}(hhh]j)}(hlength of user datah]hlength of user data}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMhjwubj")}(h+``gfp_t gfp_mask`` memory allocation flags h](j()}(h``gfp_t gfp_mask``h]j.)}(hjdh]hgfp_t gfp_mask}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhj^ubjD)}(hhh]j)}(hmemory allocation flagsh]hmemory allocation flags}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhjwubeh}(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:321: ./block/blk-map.chMhj[ubj<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;8hjhMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_register_queue (C function)c.blk_register_queuehNtauh1hhjhhhNhNubh)}(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.chMIubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMIubj)}(hblk_register_queueh]j)}(hblk_register_queueh]hblk_register_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMIubj/)}(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 }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(hgendiskh]hgendisk}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_register_queueasbuh1hhj'ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(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-uh1j4hj#ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMIhjhhubj)}(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.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMIubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.chMJhjubj)}(hhh]j")}(hY``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](j()}(h``struct gendisk *disk``h]j.)}(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.chMLhjubjD)}(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.chMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjhhhNhNubh)}(hhh](h)}(h0void blk_unregister_queue (struct gendisk *disk)h]h)}(h/void blk_unregister_queue(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjWhMubj)}(hblk_unregister_queueh]j)}(hblk_unregister_queueh]hblk_unregister_queue}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjEhhhjWhMubj/)}(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)}jsjlsbc.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-uh1j4hj~ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjEhhhjWhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj)}(hhh]j)}(h#counterpart of blk_register_queue()h]h#counterpart of blk_register_queue()}(hj hhhNhNubah}(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&]uh1jhj>hhhjWhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!jj!jjjuh1hhhhjhNhNubj)}(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.chMhj%ubj)}(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.)}(hjJh]hstruct gendisk *disk}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMhjDubjD)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhjAubah}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMhj%ubj)}(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.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjhhhNhNubh)}(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.chK#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK#ubj)}(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 hjhhhjhK#ubj/)}(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 }(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}]j)}jsjsbc.blk_set_stacking_limitsasbuh1hhjubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(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.hjhhhjhK#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK#hjhhubj)}(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&]uh1jhjhhhjhK#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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().}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjYhMubj)}(hqueue_limits_commit_updateh]j)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjGhhhjYhMubj/)}(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)}jsjnsbc.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}(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_commit_updateasbuh1hhjubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(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}(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)}(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.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 }(hjEhhhNhNubj)}(h**lim**h]hlim}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhR that were obtained from queue_limits_start_update() and updated by the caller to }(hjEhhhNhNubj)}(h**q**h]hq}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhe. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.}(hjEhhhNhNubeh}(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.}(hjxhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjhhhNhNubh)}(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 }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj0hhhNhNubah}(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)}(hstruct queue_limits *limh](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 queue_limitsh]h queue_limits}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j#c.queue_limits_commit_update_frozenasbuh1hhjQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hlimh]hlim}(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'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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMhjubj")}(h-``struct queue_limits *lim`` limits to apply h](j()}(h``struct queue_limits *lim``h]j.)}(hjPh]hstruct queue_limits *lim}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjJubjD)}(hhh]j)}(hlimits to applyh]hlimits to apply}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMhjubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌqueue_limits_set (C function)c.queue_limits_sethNtauh1hhjhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hqueue_limits_seth]j)}(hqueue_limits_seth]hqueue_limits_set}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(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}(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 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.queue_limits_setasbuh1hhj<ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hjhhhNhNubah}(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-uh1j4hj8ubj5)}(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}]jzc.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-uh1j4hj8ubeh}(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)}(happly queue limits to queueh]happly queue limits to queue}(hj2hhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjJjjJjjjuh1hhhhjhNhNubj)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjNubj)}(hhh](j")}(h,``struct request_queue *q`` queue to update h](j()}(h``struct request_queue *q``h]j.)}(hjsh]hstruct request_queue *q}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjmubjD)}(hhh]j)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjjubj")}(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!hjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(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.chMhjNubj)}(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 }(hjhhhNhNubj)}(h**lim**h]hlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" that were freshly initialized to }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjNubj)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjhhhNhNubh)}(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}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[hhhjmhMubj)}(hblk_stack_limitsh]j)}(hblk_stack_limitsh]hblk_stack_limits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[hhhjmhMubj/)}(h@(struct queue_limits *t, struct queue_limits *b, sector_t start)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.blk_stack_limitsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj͢h]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 }(hjhhhNhNubah}(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}]jc.blk_stack_limitsasbuh1hhj ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj h]hb}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsector_t starth](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.blk_stack_limitsasbuh1hhjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj[hhhjmhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjThhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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")}(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)}(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")}(hR``struct queue_limits *b`` the underlying queue limits (bottom, component device) h](j()}(h``struct queue_limits *b``h]j.)}(hjO h]hstruct queue_limits *b}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjM ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjI ubjD)}(hhh]j)}(h6the underlying queue limits (bottom, component device)h]h6the underlying queue limits (bottom, component device)}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd hMhje ubah}(h]h ]h"]h$]h&]uh1jChjI ubeh}(h]h ]h"]h$]h&]uh1j!hjd 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&]uh1jhjubj)}(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.chMhjubj<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 hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjhhhNhNubh)}(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}(hj! hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMQubh)}(h h]h }(hj0 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj/ hMQubj)}(hqueue_limits_stack_bdevh]j)}(hqueue_limits_stack_bdevh]hqueue_limits_stack_bdev}(hjB hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj> ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj/ hMQubj/)}(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}(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)}(h queue_limitsh]h queue_limits}(hj| hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~ modnameN classnameNjwjz)}j}]j)}jsjD sbc.queue_limits_stack_bdevasbuh1hhjZ 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)}(hj͢h]ht}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjV 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}(hj& hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjV ubj5)}(hsector_t offseth](h)}(hhh]j)}(hsector_th]hsector_t}(hjB hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj? ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjD modnameN classnameNjwjz)}j}]j c.queue_limits_stack_bdevasbuh1hhj; ubh)}(h h]h }(hj` hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj; ubj)}(hoffseth]hoffset}(hjn hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj; ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjV 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-uh1j4hjV ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj/ hMQubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj/ hMQubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj/ hMQhj 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.chMChj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj/ hMQubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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.chMGhj ubj)}(hhh](j")}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j()}(h``struct queue_limits *t``h]j.)}(hj6 h]hstruct queue_limits *t}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4 ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMDhj0 ubjD)}(hhh]j)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK hMDhjL ubah}(h]h ]h"]h$]h&]uh1jChj0 ubeh}(h]h ]h"]h$]h&]uh1j!hjK hMDhj- ubj")}(hC``struct block_device *bdev`` the underlying block device (bottom) h](j()}(h``struct block_device *bdev``h]j.)}(hjo h]hstruct block_device *bdev}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjm ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMEhji ubjD)}(hhh]j)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMEhj ubah}(h]h ]h"]h$]h&]uh1jChji ubeh}(h]h ]h"]h$]h&]uh1j!hj hMEhj- ubj")}(hH``sector_t offset`` offset to beginning of data within component device h](j()}(h``sector_t offset``h]j.)}(hj h]hsector_t offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMFhj ubjD)}(hhh]j)}(h3offset to beginning of data within component deviceh]h3offset to beginning of data within component device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMFhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMFhj- ubj")}(h6``const char *pfx`` prefix to use for warnings logged h](j()}(h``const char *pfx``h]j.)}(hj h]hconst char *pfx}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMGhj ubjD)}(hhh]j)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMGhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMGhj- 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.chMIhj 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.}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMIhj2 ubah}(h]h ]h"]h$]h&]uh1j;8hjD hMIhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjhhhNhNubh)}(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}(hjk hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMiubh)}(h h]h }(hjy hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg hhhjx hMiubj)}(hqueue_limits_stack_integrityh]j)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjg hhhjx hMiubj/)}(h0(struct queue_limits *t, struct queue_limits *b)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.queue_limits_stack_integrityasbuh1hhj 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)}(hj͢h]ht}(hjhhhNhNubah}(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}(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}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j c.queue_limits_stack_integrityasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hb}(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.hjg hhhjx hMiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjc hhhjx hMiubah}(h]j^ ah ](jjeh"]h$]h&]jj)jhuh1hhjx hMihj` hhubj)}(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.chM\hjhhubah}(h]h ]h"]h$]h&]uh1jhj` hhhjx hMiubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.chM]hjubjD)}(hhh]j)}(htarget queue limitsh]htarget queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM]hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM]hjubj")}(h-``struct queue_limits *b`` base queue limits h](j()}(h``struct queue_limits *b``h]j.)}(hjh]hstruct queue_limits *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hbase queue limitsh]hbase queue limits}(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)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(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 }(hjchhhNhNubj)}(h**b**h]hb}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh can be stacked into the target }(hjchhhNhNubj)}(h**t**h]ht}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh". Stacking is possible if either:}(hjchhhNhNubeh}(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.chMchjubah}(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.chMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jj)jhjj1uh1jhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMchjubj)}(hyIf **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](hIf }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be stacked into }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , return }(hjhhhNhNubj.)}(h``true``h]htrue}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh. Else return }(hjhhhNhNubj.)}(h ``false``h]hfalse}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh( and clear the integrity information in }(hjhhhNhNubj)}(h**t**h]ht}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjhhhNhNubh)}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int depthh](h)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubh)}(hinth]hint}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hdepthh]hdepth}(hjihhhNhNubah}(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)}(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&]uh1jhjxhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(hjhhhNhNubah}(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.chMhjubjD)}(hhh]j)}(h queue depthh]h queue depth}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2int blkdev_issue_flush (struct block_device *bdev)h]h)}(h1int blkdev_issue_flush(struct block_device *bdev)h](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjchhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjuhMubj)}(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 hjchhhjuhMubj/)}(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.hjchhhjuhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(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.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjhNhNubj)}(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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjCubj)}(hhh]j")}(h:``struct block_device *bdev`` blockdev to issue flush for h](j()}(h``struct block_device *bdev``h]j.)}(hjhh]hstruct block_device *bdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjbubjD)}(hhh]j)}(hblockdev to issue flush forh]hblockdev to issue flush for}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjCubj<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;8hjhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjhhhNhNubh)}(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.chKUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKUubj)}(hblkdev_issue_discardh]j)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKUubj/)}(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}(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}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjsbc.blkdev_issue_discardasbuh1hhj*ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(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-uh1j4hj&ubj5)}(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}]jhc.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-uh1j4hj&ubj5)}(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}]jhc.blkdev_issue_discardasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnr_sectsh]hnr_sects}(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}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]jhc.blkdev_issue_discardasbuh1hhj,ubh)}(h h]h }(hjQhhhNhNubah}(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&ubeh}(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)}(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&]uh1jhjhhhjhKUubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKNhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKNhjubj")}(h3``sector_t nr_sects`` number of sectors to discard 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.chKOhj6ubjD)}(hhh]j)}(hnumber of sectors to discardh]hnumber of sectors to discard}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhKOhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhKOhjubj")}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j()}(h``gfp_t gfp_mask``h]j.)}(hjuh]hgfp_t gfp_mask}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKPhjoubjD)}(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&]uh1jChjoubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjhhhNhNubh)}(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&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(h__blkdev_issue_zeroouth]j)}(h__blkdev_issue_zeroouth]h__blkdev_issue_zeroout}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMubj/)}(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}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hhh]j)}(h block_deviceh]h block_device}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[modnameN classnameNjwjz)}j}]j)}jsj!sbc.__blkdev_issue_zerooutasbuh1hhj7ubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(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}]juc.__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-uh1j4hj3ubj5)}(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}]juc.__blkdev_issue_zerooutasbuh1hhjubh)}(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-uh1j4hj3ubj5)}(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 reftargetjBmodnameN classnameNjwjz)}j}]juc.__blkdev_issue_zerooutasbuh1hhj9ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hgfp_maskh]hgfp_mask}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(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}]juc.__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-uh1j4hj3ubj5)}(hunsigned flagsh](h)}(hunsignedh]hunsigned}(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-uh1j4hj3ubeh}(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(generate number of zero filed write biosh]h(generate number of zero filed write bios}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKhjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjhNhNubj)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjdubj)}(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-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)}(hnumber of sectors to writeh]hnumber of sectors to write}(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 (for bio_alloc) h](j()}(h``gfp_t gfp_mask``h]j.)}(hj4h]hgfp_t gfp_mask}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhj.ubjD)}(hhh]j)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjubj")}(h,``struct bio **biop`` pointer to anchor bio h](j()}(h``struct bio **biop``h]j.)}(hjmh]hstruct bio **biop}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjgubjD)}(hhh]j)}(hpointer to anchor bioh]hpointer to anchor bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(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&]uh1jhjdubj)}(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.chMhjdubj<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.chMhjubj)}(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 }(hj hhhNhNubj.)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubh contains BLKDEV_ZERO_NOUNMAP.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM hjubj)}(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}(hj3hhhNhNubah}(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 hjubeh}(h]h ]h"]h$]h&]uh1j;8hj hMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjhhhNhNubh)}(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}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM4ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnhhhjhM4ubj)}(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 hjnhhhjhM4ubj/)}(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}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&modnameN classnameNjwjz)}j}]jc.blkdev_issue_zerooutasbuh1hhjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsectorh]hsector}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]jc.blkdev_issue_zerooutasbuh1hhjeubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubeh}(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}(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.hjnhhhjhM4ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjjhhhjhM4ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhM4hjghhubj)}(hhh]j)}(hzero-fill a block rangeh]hzero-fill a block range}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM(hj<hhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhM4ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjWjjWjjjuh1hhhhjhNhNubj)}(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)}(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:333: ./block/blk-lib.chM,hj[ubj)}(hhh](j")}(h0``struct block_device *bdev`` blockdev to write h](j()}(h``struct block_device *bdev``h]j.)}(hjh]hstruct block_device *bdev}(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.chM)hjzubjD)}(hhh]j)}(hblockdev to writeh]hblockdev to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM)hjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhM)hjwubj")}(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*hjwubj")}(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-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)}(hnumber of sectors to writeh]hnumber of sectors to write}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM+hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM+hjwubj")}(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,hj%ubjD)}(hhh]j)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hM,hjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hM,hjwubj")}(h.``unsigned flags`` controls detailed behavior h](j()}(h``unsigned flags``h]j.)}(hjdh]hunsigned flags}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM-hj^ubjD)}(hhh]j)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhM-hjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhM-hjwubeh}(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:333: ./block/blk-lib.chM/hj[ubj<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 }(hjhhhNhNubj.)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM/hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM/hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$blk_rq_map_integrity_sg (C function)c.blk_rq_map_integrity_sghNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chKCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKCubj)}(hblk_rq_map_integrity_sgh]j)}(hblk_rq_map_integrity_sgh]hblk_rq_map_integrity_sg}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKCubj/)}(h0(struct request *rq, struct scatterlist *sglist)h](j5)}(hstruct request *rqh](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)}(hrequesth]hrequest}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj#sbc.blk_rq_map_integrity_sgasbuh1hhj9ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(hstruct scatterlist *sglisth](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 scatterlisth]h scatterlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jwc.blk_rq_map_integrity_sgasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsglisth]hsglist}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubeh}(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)Map integrity metadata into a scatterlisth]h)Map integrity metadata into a scatterlist}(hj0 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&]uh1jhjhhhjhKCubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjH jjH jjjuh1hhhhjhNhNubj)}(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)}(hjR h]h Parameters}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK>hjL ubj)}(hhh](j")}(h&``struct request *rq`` request to map h](j()}(h``struct request *rq``h]j.)}(hjq h]hstruct request *rq}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjo ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK;hjk 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&]uh1jChjk ubeh}(h]h ]h"]h$]h&]uh1j!hj hK;hjh 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.chKhjL 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>hjL ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjhhhNhNubh)}(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&]uh1hhj&!hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMubh)}(h h]h }(hj9!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&!hhhj8!hMubj)}(hblk_trace_ioctlh]j)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hjK!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjG!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&!hhhj8!hMubj/)}(h;(struct block_device *bdev, unsigned cmd, char __user *arg)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjg!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjc!ubh)}(h h]h }(hjt!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc!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)}jsjM!sbc.blk_trace_ioctlasbuh1hhjc!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)}(hbdevh]hbdev}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjc!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_!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-uh1j4hj_!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 }(hj."hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj "ubj)}(hjh]h*}(hj<"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj "ubj)}(hargh]harg}(hjI"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!hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj"!hhhj8!hMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj8!hMhj!hhubj)}(hhh]j)}(h)handle the ioctls associated with tracingh]h)handle the ioctls associated with tracing}(hjs"hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjp"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj8!hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"jj"jjjuh1hhhhjhNhNubj)}(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.)}(hj&#h]hchar __user *arg}(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 argument data, if anyh]hthe argument data, if any}(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"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjhhhNhNubh)}(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-juh1hjjhjx#hhhj#hMubah}(h]js#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhju#hhubj)}(hhh]j)}(h!stop and cleanup trace structuresh]h!stop and cleanup trace structures}(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&]uh1jhju#hhhj#hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjW$jjW$jjjuh1hhhhjhNhNubj)}(hZ**Parameters** ``struct request_queue *q`` the request queue associated with the deviceh](j)}(h**Parameters**h]j)}(hja$h]h Parameters}(hjc$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_$ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj[$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.chMhjz$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&]uh1jChjz$ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhjw$ubah}(h]h ]h"]h$]h&]uh1jhj[$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjhhhNhNubh)}(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 }(hj$%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(hrequesth]hrequest}(hj5%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7%modnameN classnameNjwjz)}j}]j)}jsj$sbc.blk_add_trace_rqasbuh1hhj%ubh)}(h h]h }(hjU%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hjc%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hrqh]hrq}(hjp%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}]jQ%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}(hj%&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'&modnameN classnameNjwjz)}j}]jQ%c.blk_add_trace_rqasbuh1hhj&ubh)}(h h]h }(hjC&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hwhath]hwhat}(hjQ&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(hu64 cgidh](h)}(hhh]j)}(hu64h]hu64}(hjm&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjj&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjo&modnameN classnameNjwjz)}j}]jQ%c.blk_add_trace_rqasbuh1hhjf&ubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf&ubj)}(hcgidh]hcgid}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf&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&jjjuh1hhhhjhNhNubj)}(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}(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,``blk_status_t error`` return status to log h](j()}(h``blk_status_t error``h]j.)}(hj='h]hblk_status_t 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.chM%hj7'ubjD)}(hhh]j)}(hreturn status to logh]hreturn status to log}(hjV'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR'hM%hjS'ubah}(h]h ]h"]h$]h&]uh1jChj7'ubeh}(h]h ]h"]h$]h&]uh1j!hjR'hM%hj&ubj")}(h4``unsigned int nr_bytes`` number of completed bytes h](j()}(h``unsigned int nr_bytes``h]j.)}(hjv'h]hunsigned int nr_bytes}(hjx'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjt'ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM&hjp'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&]uh1jChjp'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)}(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:339: ./kernel/trace/blktrace.chM*hj&ubj<8)}(hDRecords an action against a request. Will log the bio offset + size.h]j)}(hj;(h]hDRecords an action against a request. Will log the bio offset + size.}(hj=(hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM*hj9(ubah}(h]h ]h"]h$]h&]uh1j;8hjJ(hM*hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjhhhNhNubh)}(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}(hjq(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjm(hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMnubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm(hhhj(hMnubj)}(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 hjm(hhhj(hMnubj/)}(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}(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)}(hbioh]hbio}(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)}(hjh]h*}(hji)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hbioh]hbio}(hjv)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.hjm(hhhj(hMnubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhji(hhhj(hMnubah}(h]jd(ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMnhjf(hhubj)}(hhh]j)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMdhj*hhubah}(h]h ]h"]h$]h&]uh1jhjf(hhhj(hMnubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5*jj5*jjjuh1hhhhjhNhNubj)}(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)}(hj?*h]h Parameters}(hjA*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=*ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhhj9*ubj)}(hhh](j")}(h0``struct request_queue *q`` queue the io is for 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'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMehjX*ubjD)}(hhh]j)}(hqueue the io is forh]hqueue the io is for}(hjw*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs*hMehjt*ubah}(h]h ]h"]h$]h&]uh1jChjX*ubeh}(h]h ]h"]h$]h&]uh1j!hjs*hMehjU*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*hMfhjU*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*hMghjU*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}(hj"+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hMhhj+ubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hj+hMhhjU*ubeh}(h]h ]h"]h$]h&]uh1jhj9*ubj)}(h**Description**h]j)}(hjD+h]h Description}(hjF+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB+ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMjhj9*ubj<8)}(h@Records an action against a bio. Will log the bio offset + size.h]j)}(hj\+h]h@Records an action against a bio. Will log the bio offset + size.}(hj^+hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMjhjZ+ubah}(h]h ]h"]h$]h&]uh1j;8hjk+hMjhj9*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjhhhNhNubh)}(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 }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ,ubh)}(hhh]j)}(hbioh]hbio}(hj/,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1,modnameN classnameNjwjz)}j}]j)}jsj+sbc.blk_add_trace_bio_remapasbuh1hhj ,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)}(hbioh]hbio}(hjj,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}]jK,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}]jK,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}(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&]uh1jhj+hhhj+hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<-jj<-jjjuh1hhhhjhNhNubj)}(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)}(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:339: ./kernel/trace/blktrace.chMhj@-ubj)}(hhh](j")}(h:``void *ignore`` trace callback data parameter (not used) h](j()}(h``void *ignore``h]j.)}(hje-h]h void *ignore}(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:339: ./kernel/trace/blktrace.chMhj_-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&]uh1jhjz-hMhj{-ubah}(h]h ]h"]h$]h&]uh1jChj_-ubeh}(h]h ]h"]h$]h&]uh1j!hjz-hMhj\-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-hMhj\-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}(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 ``sector_t from`` source sector h](j()}(h``sector_t from``h]j.)}(hj.h]h sector_t from}(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 sectorh]h source sector}(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)}(hjK.h]h Description}(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:339: ./kernel/trace/blktrace.chMhj@-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.}(hja.hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj@-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjhhhNhNubh)}(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}(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_rq_remaph]j)}(hblk_add_trace_rq_remaph]hblk_add_trace_rq_remap}(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 *ignore, struct request *rq, 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 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}(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_rq_remapasbuh1hhj /ubh)}(h h]h }(hjM/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj /ubj)}(hjh]h*}(hj[/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubj)}(hrqh]hrq}(hjh/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}]jI/c.blk_add_trace_rq_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}]jI/c.blk_add_trace_rq_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 request-remap operationh]h)Add a trace for a request-remap operation}(hj"0hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:0jj:0jjjuh1hhhhjhNhNubj)}(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)}(hjD0h]h Parameters}(hjF0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj>0ubj)}(hhh](j")}(h:``void *ignore`` trace callback data parameter (not used) h](j()}(h``void *ignore``h]j.)}(hjc0h]h void *ignore}(hje0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hja0ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj]0ubjD)}(hhh]j)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj|0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx0hMhjy0ubah}(h]h ]h"]h$]h&]uh1jChj]0ubeh}(h]h ]h"]h$]h&]uh1j!hjx0hMhjZ0ubj")}(h*``struct request *rq`` the source request h](j()}(h``struct request *rq``h]j.)}(hj0h]hstruct request *rq}(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:339: ./kernel/trace/blktrace.chMhj0ubjD)}(hhh]j)}(hthe source requesth]hthe source request}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj0hMhjZ0ubj")}(h``dev_t dev`` target device h](j()}(h ``dev_t dev``h]j.)}(hj0h]h dev_t dev}(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:339: ./kernel/trace/blktrace.chMhj0ubjD)}(hhh]j)}(h target deviceh]h target device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj0hMhjZ0ubj")}(h ``sector_t from`` source sector h](j()}(h``sector_t from``h]j.)}(hj1h]h sector_t from}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj 1ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj1ubjD)}(hhh]j)}(h source sectorh]h source sector}(hj'1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#1hMhj$1ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj#1hMhjZ0ubeh}(h]h ]h"]h$]h&]uh1jhj>0ubj)}(h**Description**h]j)}(hjI1h]h Description}(hjK1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj>0ubj<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.}(hjc1hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj_1ubah}(h]h ]h"]h$]h&]uh1j;8hjq1hMhj>0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdisk_release (C function)c.disk_releasehNtauh1hhjhhhNhNubh)}(hhh](h)}(h&void disk_release (struct device *dev)h]h)}(h%void disk_release(struct device *dev)h](h)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj1hMubj)}(h disk_releaseh]j)}(h disk_releaseh]h disk_release}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhj1hMubj/)}(h(struct device *dev)h]j5)}(hstruct device *devh](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)}(hdeviceh]hdevice}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsj1sbc.disk_releaseasbuh1hhj1ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hj!2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hdevh]hdev}(hj.2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhj1hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhj1hhubj)}(hhh]j)}(h/releases all allocated resources of the gendiskh]h/releases all allocated resources of the gendisk}(hjX2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjU2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjp2jjp2jjjuh1hhhhjhNhNubj)}(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)}(hjz2h]h Parameters}(hj|2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx2ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjt2ubj)}(hhh]j")}(h9``struct device *dev`` the device representing this disk h](j()}(h``struct device *dev``h]j.)}(hj2h]hstruct device *dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj2ubjD)}(hhh]j)}(h!the device representing this diskh]h!the device representing this disk}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjt2ubj)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjt2ubj)}(h>This function releases all allocated resources of the gendisk.h]h>This function releases all allocated resources of the gendisk.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjt2ubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjt2ubj)}(h **Context**h]j)}(hj 3h]hContext}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjt2ubj)}(h can sleeph]h can sleep}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjt2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__register_blkdev (C function)c.__register_blkdevhNtauh1hhjhhhNhNubh)}(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}(hjO3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjK3hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKubh)}(h h]h }(hj^3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjK3hhhj]3hKubj)}(h__register_blkdevh]j)}(h__register_blkdevh]h__register_blkdev}(hjp3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjl3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjK3hhhj]3hKubj/)}(hA(unsigned int major, const char *name, void (*probe)(dev_t devt))h](j5)}(hunsigned int majorh](h)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hinth]hint}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hmajorh]hmajor}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(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)}(hnameh]hname}(hj!4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hvoid (*probe)(dev_t devt)h](h)}(hvoidh]hvoid}(hj:4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj64ubh)}(h h]h }(hjH4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj64ubj)}(hjh]h(}(hjV4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj64ubj)}(hjh]h*}(hjc4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj64ubj)}(hprobeh]hprobe}(hjp4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj64ubj)}(hj1h]h)}(hj~4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj64ubj)}(hjh]h(}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj64ubh)}(hhh]j)}(hdev_th]hdev_t}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsjr3sbc.__register_blkdevasbuh1hhj64ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj64ubj)}(hdevth]hdevt}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj64ubj)}(hj1h]h)}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj64ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjK3hhhj]3hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjG3hhhj]3hKubah}(h]jB3ah ](jjeh"]h$]h&]jj)jhuh1hhj]3hKhjD3hhubj)}(hhh]j)}(hregister a new block deviceh]hregister a new block device}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj4hhubah}(h]h ]h"]h$]h&]uh1jhjD3hhhj]3hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhjhNhNubj)}(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)}(hj"5h]h Parameters}(hj$5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 5ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj5ubj)}(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.)}(hjA5h]hunsigned int major}(hjC5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?5ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj;5ubjD)}(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 }(hjZ5hhhNhNubj)}(h **major**h]hmajor}(hjb5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ5ubh. = 0, try to allocate any unused major number.}(hjZ5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhjW5ubah}(h]h ]h"]h$]h&]uh1jChj;5ubeh}(h]h ]h"]h$]h&]uh1j!hjV5hKhj85ubj")}(hR``const char *name`` the name of the new block device as a zero terminated string h](j()}(h``const char *name``h]j.)}(hj5h]hconst char *name}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj5ubjD)}(hhh]j)}(hh]hstruct}(hj,7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(7ubh)}(h h]h }(hj97hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(7ubh)}(hhh]j)}(hdeviceh]hdevice}(hjJ7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjG7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjL7modnameN classnameNjwjz)}j}]j)}jsj7sbc.add_disk_fwnodeasbuh1hhj(7ubh)}(h h]h }(hjj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(7ubj)}(hjh]h*}(hjx7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(7ubj)}(hparenth]hparent}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$7ubj5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hhh]j)}(hgendiskh]hgendisk}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7modnameN classnameNjwjz)}j}]jf7c.add_disk_fwnodeasbuh1hhj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hdiskh]hdisk}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$7ubj5)}(h%const struct attribute_group **groupsh](j;)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj 8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 8ubj;)}(hj>h]hstruct}(hj)8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj 8ubh)}(h h]h }(hj68hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 8ubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjG8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjI8modnameN classnameNjwjz)}j}]jf7c.add_disk_fwnodeasbuh1hhj 8ubh)}(h h]h }(hje8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 8ubj)}(hjh]h*}(hjs8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(hgroupsh]hgroups}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$7ubj5)}(hstruct fwnode_handle *fwnodeh](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]jf7c.add_disk_fwnodeasbuh1hhj8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hfwnodeh]hfwnode}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$7ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj6hhhj6hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhj6hMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhj6hhubj)}(hhh]j)}(h/add disk information to kernel list with fwnodeh]h/add disk information to kernel list with fwnode}(hj'9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj$9hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?9jj?9jjjuh1hhhhjhNhNubj)}(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)}(hjI9h]h Parameters}(hjK9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG9ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjC9ubj)}(hhh](j")}(h5``struct device *parent`` parent device for the disk h](j()}(h``struct device *parent``h]j.)}(hjh9h]hstruct device *parent}(hjj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjf9ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjb9ubjD)}(hhh]j)}(hparent device for the diskh]hparent device for the disk}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}9hMhj~9ubah}(h]h ]h"]h$]h&]uh1jChjb9ubeh}(h]h ]h"]h$]h&]uh1j!hj}9hMhj_9ubj")}(h=``struct gendisk *disk`` per-device partitioning information h](j()}(h``struct gendisk *disk``h]j.)}(hj9h]hstruct gendisk *disk}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj9ubjD)}(hhh]j)}(h#per-device partitioning informationh]h#per-device partitioning information}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhj_9ubj")}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j()}(h)``const struct attribute_group **groups``h]j.)}(hj9h]h%const struct attribute_group **groups}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj9ubjD)}(hhh]j)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhj_9ubj")}(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.chMhj :ubjD)}(hhh]j)}(hattached disk fwnodeh]hattached disk fwnode}(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_9ubeh}(h]h ]h"]h$]h&]uh1jhjC9ubj)}(h**Description**h]j)}(hjN:h]h Description}(hjP:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL:ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjC9ubj)}(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 }(hjd:hhhNhNubj)}(h**disk**h]hdisk}(hjl:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd:ubh: with the kernel. Also attach a fwnode to the disk device.}(hjd:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjC9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_add_disk (C function)c.device_add_diskhNtauh1hhjhhhNhNubh)}(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}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMJubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhhj:hMJubj)}(hdevice_add_diskh]j)}(hdevice_add_diskh]hdevice_add_disk}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:hhhj:hMJubj/)}(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)}jsj: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}(hjT;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjP;ubh)}(h h]h }(hja;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP;ubh)}(hhh]j)}(hgendiskh]hgendisk}(hjr;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjo;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjt;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)}(hdiskh]hdisk}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP;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.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)}(hjh]h*}(hj6<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hgroupsh]hgroups}(hjC<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:hMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhj:hMJubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hMJhj:hhubj)}(hhh]j)}(h#add disk information to kernel listh]h#add disk information to kernel list}(hjm<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMBhjj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhjhNhNubj)}(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}(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)}(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.chMChj<ubjD)}(hhh]j)}(hparent device for the diskh]hparent device for the disk}(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")}(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.chMDhj<ubjD)}(hhh]j)}(h#per-device partitioning informationh]h#per-device partitioning information}(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")}(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.chMEhj=ubjD)}(hhh]j)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5=hMEhj6=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj5=hMEhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h**Description**h]j)}(hj[=h]h Description}(hj]=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY=ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMGhj<ubj)}(hQThis function registers the partitioning information in **disk** with the kernel.h](h8This function registers the partitioning information in }(hjq=hhhNhNubj)}(h**disk**h]hdisk}(hjy=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq=ubh with the kernel.}(hjq=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMGhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_mark_disk_dead (C function)c.blk_mark_disk_deadhNtauh1hhjhhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhj=hMubj)}(hblk_mark_disk_deadh]j)}(hblk_mark_disk_deadh]hblk_mark_disk_dead}(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 gendisk *disk)h]j5)}(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)}jsj=sbc.blk_mark_disk_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)}(hdiskh]hdisk}(hjH>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)}(hmark a disk as deadh]hmark a disk as dead}(hjr>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjo>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>jj>jjjuh1hhhhjhNhNubj)}(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)}(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.chMhj>ubj)}(hhh]j")}(h.``struct gendisk *disk`` disk to mark as dead 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.chMhj>ubjD)}(hhh]j)}(hdisk to mark as deadh]hdisk to mark as dead}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj>ubj)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdel_gendisk (C function) c.del_gendiskhNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void del_gendisk (struct gendisk *disk)h]h)}(h&void del_gendisk(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hj3?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/?hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMubh)}(h h]h }(hjB?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/?hhhjA?hMubj)}(h del_gendiskh]j)}(h del_gendiskh]h del_gendisk}(hjT?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/?hhhjA?hMubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](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)}(hgendiskh]hgendisk}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?modnameN classnameNjwjz)}j}]j)}jsjV?sb c.del_gendiskasbuh1hhjl?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)}(hdiskh]hdisk}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjl?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjh?ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj/?hhhjA?hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+?hhhjA?hMubah}(h]j&?ah ](jjeh"]h$]h&]jj)jhuh1hhjA?hMhj(?hhubj)}(hhh]j)}(hremove the gendiskh]hremove the gendisk}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhj(?hhhjA?hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj @jj @jjjuh1hhhhjhNhNubj)}(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)}(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.chMhj@ubj)}(hhh]j")}(h6``struct gendisk *disk`` the struct gendisk to remove h](j()}(h``struct gendisk *disk``h]j.)}(hj4@h]hstruct gendisk *disk}(hj6@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2@ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj.@ubjD)}(hhh]j)}(hthe struct gendisk to removeh]hthe struct gendisk to remove}(hjM@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI@hMhjJ@ubah}(h]h ]h"]h$]h&]uh1jChj.@ubeh}(h]h ]h"]h$]h&]uh1j!hjI@hMhj+@ubah}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj@ubj)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj@ubj)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj@ubj)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj@ubj)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj@ubj)}(h **Context**h]j)}(hj@h]hContext}(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.chMhj@ubj)}(h can sleeph]h can sleep}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌinvalidate_disk (C function)c.invalidate_diskhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+void invalidate_disk (struct gendisk *disk)h]h)}(h*void invalidate_disk(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjAhM ubj)}(hinvalidate_diskh]j)}(hinvalidate_diskh]hinvalidate_disk}(hj)AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%Aubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhhjAhM ubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjEAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAAubh)}(h h]h }(hjRAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAAubh)}(hhh]j)}(hgendiskh]hgendisk}(hjcAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`Aubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjeAmodnameN classnameNjwjz)}j}]j)}jsj+Asbc.invalidate_diskasbuh1hhjAAubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAAubj)}(hdiskh]hdisk}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=Aubah}(h]h ]h"]h$]h&]j,j-uh1j.hjAhhhjAhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjAhhhjAhM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjAhM hj@hhubj)}(hhh]j)}(hinvalidate the diskh]hinvalidate the disk}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjhNhNubj)}(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)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjAubj)}(hhh]j")}(h:``struct gendisk *disk`` the struct gendisk to invalidate h](j()}(h``struct gendisk *disk``h]j.)}(hj Bh]hstruct gendisk *disk}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjBubjD)}(hhh]j)}(h the struct gendisk to invalidateh]h the struct gendisk to invalidate}(hj"BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjDBh]h Description}(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.chMhjAubj)}(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.}(hjZBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjAubj)}(h **Context**h]j)}(hjkBh]hContext}(hjmBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiBubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM hjAubj)}(h can sleeph]h can sleep}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌput_disk (C function) c.put_diskhNtauh1hhjhhhNhNubh)}(hhh](h)}(h$void put_disk (struct gendisk *disk)h]h)}(h#void put_disk(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)}(hput_diskh]j)}(hput_diskh]hput_disk}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjBhhhjBhMubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](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)}(hgendiskh]hgendisk}(hj ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj CmodnameN classnameNjwjz)}j}]j)}jsjBsb c.put_diskasbuh1hhjBubh)}(h h]h }(hj+ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hj9ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hdiskh]hdisk}(hjFChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubah}(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)}(hdecrements the gendisk refcounth]hdecrements the gendisk refcount}(hjpChhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjmChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhjhNhNubj)}(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)}(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")}(hJ``struct gendisk *disk`` the struct gendisk to decrement the refcount for 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)}(h0the struct gendisk to decrement the refcount forh]h0the struct gendisk to decrement the refcount for}(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)}(hjCh]h Description}(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)}(hjThis decrements the refcount for the struct gendisk. When this reaches 0 we'll have disk_release() called.h]hlThis decrements the refcount for the struct gendisk. When this reaches 0 we’ll have disk_release() called.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubj)}(h**Note**h]j)}(hjDh]hNote}(hjDhhhNhNubah}(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)}(hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).h]hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).}(hj)DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubj)}(h **Context**h]j)}(hj:Dh]hContext}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hgendiskh]hgendisk}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsjDsb c.set_disk_roasbuh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hdiskh]hdisk}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubj5)}(hbool read_onlyh](h)}(hjoh]hbool}(hj.EhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*Eubh)}(h h]h }(hj;EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*Eubj)}(h read_onlyh]h read_only}(hjIEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*Eubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj{DhhhjDhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjwDhhhjDhMubah}(h]jrDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjtDhhubj)}(hhh]j)}(hset a gendisk read-onlyh]hset a gendisk read-only}(hjsEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjpEhhubah}(h]h ]h"]h$]h&]uh1jhjtDhhhjDhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjhNhNubj)}(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)}(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.chMhjEubj)}(hhh](j")}(h/``struct gendisk *disk`` gendisk to operate on 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.chMhjEubjD)}(hhh]j)}(hgendisk to operate onh]hgendisk to operate on}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhjEubj")}(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.)}(hjEh]hbool read_only}(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.chMhjEubjD)}(hhh]j)}(hE``true`` to set the disk read-only, ``false`` set the disk read/writeh](j.)}(h``true``h]htrue}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubh to set the disk read-only, }(hjFhhhNhNubj.)}(h ``false``h]hfalse}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubh set the disk read/write}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjFhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjHFh]h Description}(hjJFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFFubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjEubj)}(hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h]hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.}(hj^FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$bdev_validate_blocksize (C function)c.bdev_validate_blocksizehNtauh1hhjhhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhjFhKubj)}(hbdev_validate_blocksizeh]j)}(hbdev_validate_blocksizeh]hbdev_validate_blocksize}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFhhhjFhKubj/)}(h+(struct block_device *bdev, int block_size)h](j5)}(hstruct block_device *bdevh](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 block_deviceh]h block_device}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjFsbc.bdev_validate_blocksizeasbuh1hhjFubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hbdevh]hbdev}(hj#GhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hint block_sizeh](h)}(hinth]hint}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j)}(h block_deviceh]h block_device}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjImodnameN classnameNjwjz)}j}]j)}jsjHsb c.bdev_freezeasbuh1hhjHubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hj,IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hbdevh]hbdev}(hj9IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHubah}(h]h ]h"]h$]h&]j,j-uh1j.hjHhhhjHhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjHhhhjHhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhjHhhubj)}(hhh]j)}(h6lock a filesystem and force it into a consistent stateh]h6lock a filesystem and force it into a consistent state}(hjcIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj`Ihhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{Ijj{Ijjjuh1hhhhjhNhNubj)}(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)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjIubj)}(hhh]j")}(h2``struct block_device *bdev`` blockdevice to lock h](j()}(h``struct block_device *bdev``h]j.)}(hjIh]hstruct block_device *bdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjIubjD)}(hhh]j)}(hblockdevice to lockh]hblockdevice to lock}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjIubj)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjIubj)}(h **Return**h]j)}(hjJh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjIubj)}(hh]hstruct}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(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)}jsjnJsb c.bdev_thawasbuh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hbdevh]hbdev}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubah}(h]h ]h"]h$]h&]j,j-uh1j.hjGJhhhjYJhMAubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjCJhhhjYJhMAubah}(h]j>Jah ](jjeh"]h$]h&]jj)jhuh1hhjYJhMAhj@Jhhubj)}(hhh]j)}(hunlock filesystemh]hunlock filesystem}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM:hjKhhubah}(h]h ]h"]h$]h&]uh1jhj@JhhhjYJhMAubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj#Kjj#Kjjjuh1hhhhjhNhNubj)}(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)}(hj-Kh]h Parameters}(hj/KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Kubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM>hj'Kubj)}(hhh]j")}(h4``struct block_device *bdev`` blockdevice to unlock h](j()}(h``struct block_device *bdev``h]j.)}(hjLKh]hstruct block_device *bdev}(hjNKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJKubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM;hjFKubjD)}(hhh]j)}(hblockdevice to unlockh]hblockdevice to unlock}(hjeKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaKhM;hjbKubah}(h]h ]h"]h$]h&]uh1jChjFKubeh}(h]h ]h"]h$]h&]uh1j!hjaKhM;hjCKubah}(h]h ]h"]h$]h&]uh1jhj'Kubj)}(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.chM=hj'Kubj)}(hHUnlocks the filesystem and marks it writeable again after bdev_freeze().h]hHUnlocks the filesystem and marks it writeable again after bdev_freeze().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM=hj'Kubj)}(h **Return**h]j)}(hjKh]hReturn}(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.chM?hj'Kubj)}(hh]hstruct}(hj0LhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,Lubh)}(h h]h }(hj=LhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,Lubh)}(hhh]j)}(h block_deviceh]h block_device}(hjNLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKLubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPLmodnameN classnameNjwjz)}j}]j)}jsjLsbc.bd_prepare_to_claimasbuh1hhj,Lubh)}(h h]h }(hjnLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,Lubj)}(hjh]h*}(hj|LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Lubj)}(hbdevh]hbdev}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,Lubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(Lubj5)}(h void *holderh](h)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hholderh]hholder}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(Lubj5)}(h!const struct blk_holder_ops *hopsh](j;)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj;)}(hj>h]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLubh)}(h h]h }(hj MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubh)}(hhh]j)}(hblk_holder_opsh]hblk_holder_ops}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]jjLc.bd_prepare_to_claimasbuh1hhjLubh)}(h h]h }(hj;MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjIMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hhopsh]hhops}(hjVMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(Lubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjKhhhjLhMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhjLhMFubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjLhMFhjKhhubj)}(hhh]j)}(hclaim a block deviceh]hclaim a block device}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM:hj}Mhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjLhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjMjjMjjjuh1hhhhjhNhNubj)}(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)}(hjMh]h Parameters}(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.chM>hjMubj)}(hhh](j")}(h7``struct block_device *bdev`` block device of interest h](j()}(h``struct block_device *bdev``h]j.)}(hjMh]hstruct block_device *bdev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM;hjMubjD)}(hhh]j)}(hblock device of interesth]hblock device of interest}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhM;hjMubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjMhM;hjMubj")}(h1``void *holder`` holder trying to claim **bdev** h](j()}(h``void *holder``h]j.)}(hjMh]h void *holder}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM<hjMubjD)}(hhh]j)}(hholder trying to claim **bdev**h](hholder trying to claim }(hjNhhhNhNubj)}(h**bdev**h]hbdev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM<hjNubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjNhM<hjMubj")}(h2``const struct blk_holder_ops *hops`` holder ops. h](j()}(h%``const struct blk_holder_ops *hops``h]j.)}(hjANh]h!const struct blk_holder_ops *hops}(hjCNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?Nubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM=hj;NubjD)}(hhh]j)}(h holder ops.h]h holder ops.}(hjZNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVNhM=hjWNubah}(h]h ]h"]h$]h&]uh1jChj;Nubeh}(h]h ]h"]h$]h&]uh1j!hjVNhM=hjMubeh}(h]h ]h"]h$]h&]uh1jhjMubj)}(h**Description**h]j)}(hj|Nh]h Description}(hj~NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM?hjMubj)}(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 }(hjNhhhNhNubj)}(h**bdev**h]hbdev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh. This function fails if }(hjNhhhNhNubj)}(h**bdev**h]hbdev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh 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].}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM?hjMubj)}(h **Return**h]j)}(hjNh]hReturn}(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.chMChjMubj)}(h/0 if **bdev** can be claimed, -EBUSY otherwise.h](h0 if }(hjNhhhNhNubj)}(h**bdev**h]hbdev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh" can be claimed, -EBUSY otherwise.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMChjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhjhhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMubh)}(h h]h }(hj-OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhj,OhMubj)}(hbd_abort_claimingh]j)}(hbd_abort_claimingh]hbd_abort_claiming}(hj?OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;Oubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOhhhj,OhMubj/)}(h)(struct block_device *bdev, void *holder)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hj[OhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWOubh)}(h h]h }(hjhOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWOubh)}(hhh]j)}(h block_deviceh]h block_device}(hjyOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{OmodnameN classnameNjwjz)}j}]j)}jsjAOsbc.bd_abort_claimingasbuh1hhjWOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWOubj)}(hbdevh]hbdev}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSOubj5)}(h void *holderh](h)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hholderh]hholder}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSOubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjOhhhj,OhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjOhhhj,OhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhj,OhMhjOhhubj)}(hhh]j)}(h abort claiming of a block deviceh]h abort claiming of a block device}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhj,OhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8Pjj8Pjjjuh1hhhhjhNhNubj)}(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)}(hjBPh]h Parameters}(hjDPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjh]hstruct}(hjeQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaQubh)}(h h]h }(hjrQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaQubh)}(hhh]j)}(hfileh]hfile}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjKQsb c.bdev_fputasbuh1hhjaQubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaQubj)}(h bdev_fileh]h bdev_file}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]Qubah}(h]h ]h"]h$]h&]j,j-uh1j.hj$Qhhhj6QhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj Qhhhj6QhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhj6QhMhjQhhubj)}(hhh]j)}(h0yield claim to the block device and put the fileh]h0yield claim to the block device and put the file}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhj6QhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhjhNhNubj)}(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)}(hj Rh]h Parameters}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjRubj)}(hhh]j")}(h-``struct file *bdev_file`` open block device h](j()}(h``struct file *bdev_file``h]j.)}(hj)Rh]hstruct file *bdev_file}(hj+RhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj'Rubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj#RubjD)}(hhh]j)}(hopen block deviceh]hopen block device}(hjBRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>RhMhj?Rubah}(h]h ]h"]h$]h&]uh1jChj#Rubeh}(h]h ]h"]h$]h&]uh1j!hj>RhMhj Rubah}(h]h ]h"]h$]h&]uh1jhjRubj)}(h**Description**h]j)}(hjdRh]h Description}(hjfRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbRubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjRubj)}(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.}(hjzRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlookup_bdev (C function) c.lookup_bdevhNtauh1hhjhhhNhNubh)}(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}(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)}(h lookup_bdevh]j)}(h lookup_bdevh]h lookup_bdev}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhhjRhMubj/)}(h"(const char *pathname, dev_t *dev)h](j5)}(hconst char *pathnameh](j;)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hpathnameh]hpathname}(hj*ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubj5)}(h dev_t *devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjFShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHSmodnameN classnameNjwjz)}j}]j)}jsjRsb c.lookup_bdevasbuh1hhj?Subh)}(h h]h }(hjfShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Subj)}(hjh]h*}(hjtShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Subj)}(hdevh]hdev}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?Subeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubeh}(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&Look up a struct block_device by name.h]h&Look up a struct block_device by name.}(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&]jjqjjSjjSjjjuh1hhhhjhNhNubj)}(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)}(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")}(hE``const char *pathname`` Name of the block device in the filesystem. h](j()}(h``const char *pathname``h]j.)}(hjSh]hconst char *pathname}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubjD)}(hhh]j)}(h+Name of the block device in the filesystem.h]h+Name of the block device in the filesystem.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMhjTubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjThMhjSubj")}(h>``dev_t *dev`` Pointer to the block device's dev_t, if found. h](j()}(h``dev_t *dev``h]j.)}(hj%Th]h dev_t *dev}(hj'ThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#Tubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjTubjD)}(hhh]j)}(h.Pointer to the block device's dev_t, if found.h]h0Pointer to the block device’s dev_t, if found.}(hj>ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ThMhj;Tubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hj:ThMhjSubeh}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hj`Th]h Description}(hjbThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Tubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubj)}(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 }(hjvThhhNhNubj)}(h **pathname**h]hpathname}(hj~ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvTubh7 in the current namespace if possible and return it in }(hjvThhhNhNubj)}(h**dev**h]hdev}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvTubh.}(hjvThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubj)}(h **Context**h]j)}(hjTh]hContext}(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)}(h May sleep.h]h May sleep.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubj)}(h **Return**h]j)}(hjTh]hReturn}(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)}(h)0 if succeeded, negative errno otherwise.h]h)0 if succeeded, negative errno otherwise.}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjhhhNhNubh)}(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}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMubh)}(h h]h }(hj&UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhj%UhMubj)}(hbdev_mark_deadh]j)}(hbdev_mark_deadh]hbdev_mark_dead}(hj8UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4Uubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhj%UhMubj/)}(h*(struct block_device *bdev, bool surprise)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjTUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPUubh)}(h h]h }(hjaUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPUubh)}(hhh]j)}(h block_deviceh]h block_device}(hjrUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtUmodnameN classnameNjwjz)}j}]j)}jsj:Usbc.bdev_mark_deadasbuh1hhjPUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPUubj)}(hbdevh]hbdev}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLUubj5)}(h bool surpriseh](h)}(hjoh]hbool}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hsurpriseh]hsurprise}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLUubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjUhhhj%UhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUhhhj%UhMubah}(h]j Uah ](jjeh"]h$]h&]jj)jhuh1hhj%UhMhj Uhhubj)}(hhh]j)}(hmark a block device as deadh]hmark a block device as dead}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhj Uhhhj%UhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj#Vjj#Vjjjuh1hhhhjhNhNubj)}(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)}(hj-Vh]h Parameters}(hj/VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Vubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj'Vubj)}(hhh](j")}(h9``struct block_device *bdev`` block device to operate on h](j()}(h``struct block_device *bdev``h]j.)}(hjLVh]hstruct block_device *bdev}(hjNVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJVubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjFVubjD)}(hhh]j)}(hblock device to operate onh]hblock device to operate on}(hjeVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaVhMhjbVubah}(h]h ]h"]h$]h&]uh1jChjFVubeh}(h]h ]h"]h$]h&]uh1j!hjaVhMhjCVubj")}(h.``bool surprise`` indicate a surprise removal h](j()}(h``bool surprise``h]j.)}(hjVh]h bool surprise}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjVubjD)}(hhh]j)}(hindicate a surprise removalh]hindicate a surprise removal}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjVhMhjCVubeh}(h]h ]h"]h$]h&]uh1jhj'Vubj)}(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.chMhj'Vubj)}(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 }(hjVhhhNhNubj)}(h **surprise**h]hsurprise}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh is set to }(hjVhhhNhNubj.)}(h``true``h]htrue}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubhU the device or media is already gone, if not we are preparing for an orderly removal.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj'Vubj)}(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.}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj'Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM8ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hj*WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'WhhhhhM`ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhj'WhhhNhNubh)}(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}(hjQWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMWhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKubh)}(h h]h }(hj`WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMWhhhj_WhKubj)}(hregister_chrdev_regionh]j)}(hregister_chrdev_regionh]hregister_chrdev_region}(hjrWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnWubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMWhhhj_WhKubj/)}(h.(dev_t from, unsigned count, const char *name)h](j5)}(h dev_t fromh](h)}(hhh]j)}(hdev_th]hdev_t}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsjtWsbc.register_chrdev_regionasbuh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hfromh]hfrom}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hcounth]hcount}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj XhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj Xubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Xubh)}(hcharh]hchar}(hj(XhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Xubh)}(h h]h }(hj6XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Xubj)}(hjh]h*}(hjDXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Xubj)}(hnameh]hname}(hjQXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Xubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjMWhhhj_WhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIWhhhj_WhKubah}(h]jDWah ](jjeh"]h$]h&]jj)jhuh1hhj_WhKhjFWhhubj)}(hhh]j)}(h"register a range of device numbersh]h"register a range of device numbers}(hj{XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjxXhhubah}(h]h ]h"]h$]h&]uh1jhjFWhhhj_WhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXjjXjjjuh1hhhhj'WhNhNubj)}(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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjXubj)}(hhh](j")}(h```dev_t from`` the first in the desired range of device numbers; must include the major number. h](j()}(h``dev_t from``h]j.)}(hjXh]h dev_t from}(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.chKhjXubjD)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhKhjXubj")}(hE``unsigned count`` the number of consecutive device numbers required h](j()}(h``unsigned count``h]j.)}(hjXh]hunsigned count}(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.chKhjXubjD)}(hhh]j)}(h1the number of consecutive device numbers requiredh]h1the number of consecutive device numbers required}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj YhKhj Yubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hj YhKhjXubj")}(h7``const char *name`` the name of the device or driver. h](j()}(h``const char *name``h]j.)}(hj/Yh]hconst char *name}(hj1YhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-Yubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj)YubjD)}(hhh]j)}(h!the name of the device or driver.h]h!the name of the device or driver.}(hjHYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDYhKhjEYubah}(h]h ]h"]h$]h&]uh1jChj)Yubeh}(h]h ]h"]h$]h&]uh1j!hjDYhKhjXubeh}(h]h ]h"]h$]h&]uh1jhjXubj)}(h**Description**h]j)}(hjjYh]h Description}(hjlYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhYubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjXubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhj'WhhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjYhKubj)}(halloc_chrdev_regionh]j)}(halloc_chrdev_regionh]halloc_chrdev_region}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYhhhjYhKubj/)}(hB(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j5)}(h dev_t *devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjYmodnameN classnameNjwjz)}j}]j)}jsjYsbc.alloc_chrdev_regionasbuh1hhjYubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hdevh]hdev}(hj*ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubj5)}(hunsigned baseminorh](h)}(hunsignedh]hunsigned}(hjCZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?Zubh)}(h h]h }(hjQZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?Zubj)}(h baseminorh]h baseminor}(hj_ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?Zubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hjxZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtZubj)}(hcounth]hcount}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hcharh]hchar}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hnameh]hname}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjYhhhjYhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjYhKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhKhjYhhubj)}(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&]uh1jhjYhhhjYhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj3[jj3[jjjuh1hhhhj'WhNhNubj)}(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.chKhj7[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-hjZ[ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjV[ubjD)}(hhh]j)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hju[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq[hKhjr[ubah}(h]h ]h"]h$]h&]uh1jChjV[ubeh}(h]h ]h"]h$]h&]uh1j!hjq[hKhjS[ubj")}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j()}(h``unsigned baseminor``h]j.)}(hj[h]hunsigned baseminor}(hj[hhhNhNubah}(h]h ]h"]h$]h&]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-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hKhj[ubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hj[hKhjS[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.chKhj[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&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hj[hKhjS[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\hKhjS[ubeh}(h]h ]h"]h$]h&]uh1jhj7[ubj)}(h**Description**h]j)}(hjB\h]h Description}(hjD\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.chKhj7[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 }(hjX\hhhNhNubj)}(h**dev**h]hdev}(hj`\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX\ubh). Returns zero or a negative error code.}(hjX\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj7[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__register_chrdev (C function)c.__register_chrdevhNtauh1hhj'WhhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\hhhj\hM ubj)}(h__register_chrdevh]j)}(h__register_chrdevh]h__register_chrdev}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhhj\hM ubj/)}(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 }(hj5]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#]ubh)}(hinth]hint}(hjC]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#]ubh)}(h h]h }(hjQ]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 int counth](h)}(hunsignedh]hunsigned}(hjx]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjt]ubh)}(hinth]hint}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjt]ubj)}(hcounth]hcount}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjt]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*}(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-uh1j4hj\ubj5)}(h"const struct file_operations *fopsh](j;)}(hjh]hconst}(hj&^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"^ubh)}(h h]h }(hj3^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"^ubj;)}(hj>h]hstruct}(hjA^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"^ubh)}(h h]h }(hjN^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"^ubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hj_^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetja^modnameN classnameNjwjz)}j}]j)}jsj\sbc.__register_chrdevasbuh1hhj"^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)}(hfopsh]hfops}(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)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj^hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhj'WhNhNubj)}(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)}(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")}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j()}(h``unsigned int major``h]j.)}(hj_h]hunsigned int major}(hj_hhhNhNubah}(h]h ]h"]h$]h&]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/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(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")}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j()}(h``unsigned int baseminor``h]j.)}(hj>_h]hunsigned int baseminor}(hj@_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<_ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj8_ubjD)}(hhh]j)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hjW_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS_hKhjT_ubah}(h]h ]h"]h$]h&]uh1jChj8_ubeh}(h]h ]h"]h$]h&]uh1j!hjS_hKhj^ubj")}(h<``unsigned int count`` the number of minor numbers required h](j()}(h``unsigned int count``h]j.)}(hjw_h]hunsigned int count}(hjy_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hju_ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjq_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&]uh1jChjq_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhj^ubj")}(h3``const char *name`` name of this range of devices h](j()}(h``const char *name``h]j.)}(hj_h]hconst char *name}(hj_hhhNhNubah}(h]h ]h"]h$]h&]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)}(hname of this range of devicesh]hname of this range of devices}(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")}(hT``const struct file_operations *fops`` file operations associated with this devices h](j()}(h&``const struct file_operations *fops``h]j.)}(hj_h]h"const struct file_operations *fops}(hj_hhhNhNubah}(h]h ]h"]h$]h&]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,file operations associated with this devicesh]h,file operations associated with this devices}(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)}(hYIf **major** == 0 this functions will dynamically allocate a major and return its number.h](hIf }(hj:`hhhNhNubj)}(h **major**h]hmajor}(hjB`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:`ubhM == 0 this functions will dynamically allocate a major and return its number.}(hj:`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj^ubj)}(h|If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hj[`hhhNhNubj)}(h **major**h]hmajor}(hjc`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[`ubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hj[`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj^ubj)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hj|`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj^ubj)}(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`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhj'WhhhNhNubh)}(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}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM7ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhj`hM7ubj)}(hunregister_chrdev_regionh]j)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhj`hM7ubj/)}(h(dev_t from, unsigned count)h](j5)}(h dev_t fromh](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.unregister_chrdev_regionasbuh1hhj`ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hfromh]hfrom}(hj(ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hjAahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=aubh)}(h h]h }(hjOahhhNhNubah}(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`ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj`hhhj`hM7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj`hhhj`hM7ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM7hj`hhubj)}(hhh]j)}(h$unregister a range of device numbersh]h$unregister a range of device numbers}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM/hjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hM7ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjajjajjjuh1hhhhj'WhNhNubj)}(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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM3hjaubj)}(hhh](j")}(h?``dev_t from`` the first in the range of numbers to unregister h](j()}(h``dev_t from``h]j.)}(hjah]h dev_t from}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM0hjaubjD)}(hhh]j)}(h/the first in the range of numbers to unregisterh]h/the first in the range of numbers to unregister}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahM0hjaubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hjahM0hjaubj")}(h>``unsigned count`` the number of device numbers to unregister h](j()}(h``unsigned count``h]j.)}(hjbh]hunsigned count}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM1hjaubjD)}(hhh]j)}(h*the number of device numbers to unregisterh]h*the number of device numbers to unregister}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhM1hjbubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hjbhM1hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubj)}(h**Description**h]j)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:bubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM3hjaubj)}(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 }(hjRbhhhNhNubj)}(h **count**h]hcount}(hjZbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRbubh device numbers, starting with }(hjRbhhhNhNubj)}(h**from**h]hfrom}(hjlbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRbubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hjRbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM3hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhj'WhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMOubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhjbhMOubj)}(h__unregister_chrdevh]j)}(h__unregister_chrdevh]h__unregister_chrdev}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbhhhjbhMOubj/)}(hR(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j5)}(hunsigned int majorh](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 }(hj chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hmajorh]hmajor}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned int baseminorh](h)}(hunsignedh]hunsigned}(hj3chhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/cubh)}(h h]h }(hjAchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/cubh)}(hinth]hint}(hjOchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/cubh)}(h h]h }(hj]chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/cubj)}(h baseminorh]h baseminor}(hjkchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/cubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned int counth](h)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hinth]hint}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hcounth]hcount}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hcharh]hchar}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hj dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hnameh]hname}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhjbhMOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbhhhjbhMOubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMOhjbhhubj)}(hhh]j)}(hunregister and destroy a cdevh]hunregister and destroy a cdev}(hjCdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMEhj@dhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[djj[djjjuh1hhhhj'WhNhNubj)}(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)}(hjedh]h Parameters}(hjgdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcdubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMIhj_dubj)}(hhh](j")}(h+``unsigned int major`` major device number h](j()}(h``unsigned int major``h]j.)}(hjdh]hunsigned int major}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMFhj~dubjD)}(hhh]j)}(hmajor device numberh]hmajor device number}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMFhjdubah}(h]h ]h"]h$]h&]uh1jChj~dubeh}(h]h ]h"]h$]h&]uh1j!hjdhMFhj{dubj")}(h?``unsigned int baseminor`` first of the range of minor numbers h](j()}(h``unsigned int baseminor``h]j.)}(hjdh]hunsigned int baseminor}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMGhjdubjD)}(hhh]j)}(h#first of the range of minor numbersh]h#first of the range of minor numbers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMGhjdubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjdhMGhj{dubj")}(hJ``unsigned int count`` the number of minor numbers this cdev is occupying h](j()}(h``unsigned int count``h]j.)}(hjdh]hunsigned int count}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMHhjdubjD)}(hhh]j)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ehMHhj eubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hj ehMHhj{dubj")}(h3``const char *name`` name of this range of devices h](j()}(h``const char *name``h]j.)}(hj/eh]hconst char *name}(hj1ehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-eubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMIhj)eubjD)}(hhh]j)}(hname of this range of devicesh]hname of this range of devices}(hjHehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDehMIhjEeubah}(h]h ]h"]h$]h&]uh1jChj)eubeh}(h]h ]h"]h$]h&]uh1j!hjDehMIhj{dubeh}(h]h ]h"]h$]h&]uh1jhj_dubj)}(h**Description**h]j)}(hjjeh]h Description}(hjlehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjheubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMKhj_dubj)}(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 }(hjehhhNhNubj)}(h **major**h]hmajor}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh, }(hjehhhNhNubj)}(h **baseminor**h]h baseminor}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh and }(hjehhhNhNubj)}(h **count**h]hcount}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh5. This function undoes what __register_chrdev() did.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMKhj_dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_add (C function) c.cdev_addhNtauh1hhj'WhhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjehMubj)}(hcdev_addh]j)}(hcdev_addh]hcdev_add}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjehMubj/)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j5)}(hstruct cdev *ph](j;)}(hj>h]hstruct}(hj"fhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hj/fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(hcdevh]hcdev}(hj@fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=fubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBfmodnameN classnameNjwjz)}j}]j)}jsjfsb c.cdev_addasbuh1hhjfubh)}(h h]h }(hj`fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjnfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]hp}(hj{fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j\f c.cdev_addasbuh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hdevh]hdev}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hcounth]hcount}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjehMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhjehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehMhjehhubj)}(hhh]j)}(hadd a char device to the systemh]hadd a char device to the system}(hj!ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9gjj9gjjjuh1hhhhj'WhNhNubj)}(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)}(hjCgh]h Parameters}(hjEghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAgubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj=gubj)}(hhh](j")}(h5``struct cdev *p`` the cdev structure for the device h](j()}(h``struct cdev *p``h]j.)}(hjbgh]hstruct cdev *p}(hjdghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`gubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj\gubjD)}(hhh]j)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hj{ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwghMhjxgubah}(h]h ]h"]h$]h&]uh1jChj\gubeh}(h]h ]h"]h$]h&]uh1j!hjwghMhjYgubj")}(hK``dev_t dev`` the first device number for which this device is responsible h](j()}(h ``dev_t dev``h]j.)}(hjgh]h dev_t dev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjgubjD)}(hhh]j)}(hh]hstruct}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(hcdevh]hcdev}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsjhsbc.cdev_set_parentasbuh1hhjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]hp}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hstruct kobject *kobjh](j;)}(hj>h]hstruct}(hjihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjiubh)}(h h]h }(hj"ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubh)}(hhh]j)}(hkobjecth]hkobject}(hj3ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0iubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5imodnameN classnameNjwjz)}j}]jhc.cdev_set_parentasbuh1hhjiubh)}(h h]h }(hjQihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hj_ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hkobjh]hkobj}(hjlihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhhjuhhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhhjuhhMubah}(h]jZhah ](jjeh"]h$]h&]jj)jhuh1hhjuhhMhj\hhhubj)}(hhh]j)}(h(set the parent kobject for a char deviceh]h(set the parent kobject for a char device}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhj\hhhhjuhhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjijjijjjuh1hhhhj'WhNhNubj)}(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)}(hjih]h Parameters}(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.chMhjiubj)}(hhh](j")}(h&``struct cdev *p`` the cdev structure h](j()}(h``struct cdev *p``h]j.)}(hjih]hstruct cdev *p}(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:354: ./fs/char_dev.chMhjiubjD)}(hhh]j)}(hthe cdev structureh]hthe cdev structure}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMhjiubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjihMhjiubj")}(h<``struct kobject *kobj`` the kobject to take a reference to h](j()}(h``struct kobject *kobj``h]j.)}(hjjh]hstruct kobject *kobj}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj jubjD)}(hhh]j)}(h"the kobject to take a reference toh]h"the kobject to take a reference to}(hj)jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%jhMhj&jubah}(h]h ]h"]h$]h&]uh1jChj jubeh}(h]h ]h"]h$]h&]uh1j!hj%jhMhjiubeh}(h]h ]h"]h$]h&]uh1jhjiubj)}(h**Description**h]j)}(hjKjh]h Description}(hjMjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjiubj)}(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.}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_device_add (C function)c.cdev_device_addhNtauh1hhj'WhhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM ubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhjjhM ubj)}(hcdev_device_addh]j)}(hcdev_device_addh]hcdev_device_add}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhjjhM ubj/)}(h'(struct cdev *cdev, struct device *dev)h](j5)}(hstruct cdev *cdevh](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)}(hcdevh]hcdev}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j)}jsjjsbc.cdev_device_addasbuh1hhjjubh)}(h h]h }(hj khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hcdevh]hcdev}(hj&khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hj?khhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;kubh)}(h h]h }(hjLkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;kubh)}(hhh]j)}(hdeviceh]hdevice}(hj]khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj_kmodnameN classnameNjwjz)}j}]jkc.cdev_device_addasbuh1hhj;kubh)}(h h]h }(hj{khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;kubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;kubj)}(hdevh]hdev}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;kubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhjjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjjhhhjjhM ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhM hjjhhubj)}(hhh]j)}(h?add a char device and it's corresponding struct device, linkinkh]hAadd a char device and it’s corresponding struct device, linkink}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM hjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhj'WhNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the cdev structure ``struct device *dev`` the device structure **Description** cdev_device_add() adds the char device represented by **cdev** to the system, just as cdev_add does. It then adds **dev** to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released. This helper uses dev->devt for the device number. If it is not set it will not add the cdev and it will be equivalent to device_add. This function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device. **NOTE** Callers must assume that userspace was able to open the cdev and can call cdev fops callbacks at any time, even if this function fails.h](j)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjkubj)}(hhh](j")}(h)``struct cdev *cdev`` the cdev structure h](j()}(h``struct cdev *cdev``h]j.)}(hjlh]hstruct cdev *cdev}(hjlhhhNhNubah}(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.chM hjkubjD)}(hhh]j)}(hthe cdev structureh]hthe cdev structure}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhM hjlubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjlhM hjkubj")}(h,``struct device *dev`` the device structure h](j()}(h``struct device *dev``h]j.)}(hj:lh]hstruct device *dev}(hjdevt 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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjkubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjkubj)}(h**NOTE**h]j)}(hjlh]hNOTE}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjkubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_device_del (C function)c.cdev_device_delhNtauh1hhj'WhhhNhNubh)}(hhh](h)}(hh]hstruct}(hj`mhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj\mubh)}(h h]h }(hjmmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\mubh)}(hhh]j)}(hcdevh]hcdev}(hj~mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]j)}jsjFmsbc.cdev_device_delasbuh1hhj\mubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\mubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\mubj)}(hcdevh]hcdev}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\mubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXmubj5)}(hstruct device *devh](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)}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jmc.cdev_device_delasbuh1hhjmubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hdevh]hdev}(hj)nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXmubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjmhhhj1mhMBubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhj1mhMBubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhj1mhMBhjmhhubj)}(hhh]j)}(hinverse of cdev_device_addh]hinverse of cdev_device_add}(hjSnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM4hjPnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhj1mhMBubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjknjjknjjjuh1hhhhj'WhNhNubj)}(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)}(hjunh]h Parameters}(hjwnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsnubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM8hjonubj)}(hhh](j")}(h)``struct cdev *cdev`` the cdev structure h](j()}(h``struct cdev *cdev``h]j.)}(hjnh]hstruct cdev *cdev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM5hjnubjD)}(hhh]j)}(hthe cdev structureh]hthe cdev structure}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhM5hjnubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjnhM5hjnubj")}(h,``struct device *dev`` the device structure h](j()}(h``struct device *dev``h]j.)}(hjnh]hstruct device *dev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM6hjnubjD)}(hhh]j)}(hthe device structureh]hthe device structure}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhM6hjnubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjnhM6hjnubeh}(h]h ]h"]h$]h&]uh1jhjonubj)}(h**Description**h]j)}(hjoh]h Description}(hj ohhhNhNubah}(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.chM8hjonubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM8hjonubj)}(hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.h]hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.}(hj-ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM;hjonubj)}(h**NOTE**h]j)}(hj>oh]hNOTE}(hj@ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhjonubj)}(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.}(hjTohhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM>hjonubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_del (C function) c.cdev_delhNtauh1hhj'WhhhNhNubh)}(hhh](h)}(hvoid cdev_del (struct cdev *p)h]h)}(hvoid cdev_del(struct cdev *p)h](h)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMYubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjohMYubj)}(hcdev_delh]j)}(hcdev_delh]hcdev_del}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhjohMYubj/)}(h(struct cdev *p)h]j5)}(hstruct cdev *ph](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)}(hcdevh]hcdev}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j)}jsjosb c.cdev_delasbuh1hhjoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hj phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]hp}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjoubah}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjohMYubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{ohhhjohMYubah}(h]jvoah ](jjeh"]h$]h&]jj)jhuh1hhjohMYhjxohhubj)}(hhh]j)}(hremove a cdev from the systemh]hremove a cdev from the system}(hjBphhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMOhj?phhubah}(h]h ]h"]h$]h&]uh1jhjxohhhjohMYubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjZpjjZpjjjuh1hhhhj'WhNhNubj)}(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)}(hjdph]h Parameters}(hjfphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbpubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMShj^pubj)}(hhh]j")}(h4``struct cdev *p`` the cdev structure to be removed h](j()}(h``struct cdev *p``h]j.)}(hjph]hstruct cdev *p}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMPhj}pubjD)}(hhh]j)}(h the cdev structure to be removedh]h the cdev structure to be removed}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMPhjpubah}(h]h ]h"]h$]h&]uh1jChj}pubeh}(h]h ]h"]h$]h&]uh1j!hjphMPhjzpubah}(h]h ]h"]h$]h&]uh1jhj^pubj)}(h**Description**h]j)}(hjph]h Description}(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.chMRhj^pubj)}(hPcdev_del() removes **p** from the system, possibly freeing the structure itself.h](hcdev_del() removes }(hjphhhNhNubj)}(h**p**h]hp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh8 from the system, possibly freeing the structure itself.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMRhj^pubj)}(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.chMUhj^pubj)}(hThis guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.h]hThis guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMUhj^pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_alloc (C function) c.cdev_allochNtauh1hhj'WhhhNhNubh)}(hhh](h)}(hstruct cdev * cdev_alloc (void)h]h)}(hstruct cdev *cdev_alloc(void)h](j;)}(hj>h]hstruct}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(hcdevh]hcdev}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j)}jsjrsb c.cdev_initasbuh1hhjrubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hj*shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hcdevh]hcdev}(hj7shhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubj5)}(h"const struct file_operations *fopsh](j;)}(hjh]hconst}(hjPshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLsubh)}(h h]h }(hj]shhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLsubj;)}(hj>h]hstruct}(hjkshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLsubh)}(h h]h }(hjxshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLsubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]js c.cdev_initasbuh1hhjLsubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLsubj)}(hfopsh]hfops}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubeh}(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)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhj'WhNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj tubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjtubj)}(hhh](j")}(h2``struct cdev *cdev`` the structure to initialize h](j()}(h``struct cdev *cdev``h]j.)}(hj-th]hstruct cdev *cdev}(hj/thhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj+tubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj'tubjD)}(hhh]j)}(hthe structure to initializeh]hthe structure to initialize}(hjFthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBthMhjCtubah}(h]h ]h"]h$]h&]uh1jChj'tubeh}(h]h ]h"]h$]h&]uh1j!hjBthMhj$tubj")}(hK``const struct file_operations *fops`` the file_operations for this device h](j()}(h&``const struct file_operations *fops``h]j.)}(hjfth]h"const struct file_operations *fops}(hjhthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdtubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj`tubjD)}(hhh]j)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{thMhj|tubah}(h]h ]h"]h$]h&]uh1jChj`tubeh}(h]h ]h"]h$]h&]uh1j!hj{thMhj$tubeh}(h]h ]h"]h$]h&]uh1jhjtubj)}(h**Description**h]j)}(hjth]h Description}(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.chMhjtubj)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hjthhhNhNubj)}(h**cdev**h]hcdev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh, remembering }(hjthhhNhNubj)}(h**fops**h]hfops}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh7, making it ready to add to the system with cdev_add().}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'WhhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM`ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhMfubj)}(hXgThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these "clocks" don't relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These :c:type:`struct clk ` instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.h](hXThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these “clocks” don’t relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These }(hj uhhhNhNubh)}(h:c:type:`struct clk `h]j.)}(hjuh]h struct clk}(hjuhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8clkuh1hhhhMhhj uubh instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.}(hj uhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhhjthhubj)}(hX_Power management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn't waste power changing the state of transistors that aren't in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a *retention mode*. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.h](hXPower management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn’t waste power changing the state of transistors that aren’t in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a }(hj;uhhhNhNubj)}(h*retention mode*h]hretention mode}(hjCuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;uubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hj;uhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMrhjthhubj)}(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[uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM|hjthhubj)}(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.}(hjiuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjthhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_notifier (C struct)c.clk_notifierhNtauh1hhjthhhNhNubh)}(hhh](h)}(h clk_notifierh]h)}(hstruct clk_notifierh](j;)}(hj>h]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjuhKubj)}(h clk_notifierh]j)}(hjuh]h clk_notifier}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjuhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjuhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhKhjuhhubj)}(hhh]j)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK,hjuhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhKubeh}(h]h ](jqstructeh"]h$]h&]jjqjjujjujjjuh1hhhhjthNhNubj)}(hX[**Definition**:: struct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; }; **Members** ``clk`` struct clk * to associate the notifier with ``notifier_head`` a blocking_notifier_head for this clk ``node`` linked list pointersh](j)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh:}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK0hjuubjo)}(hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };h]hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };}hjvsbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK2hjuubj)}(h **Members**h]j)}(hj vh]hMembers}(hj"vhhhNhNubah}(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.hhK8hjuubj)}(hhh](j")}(h4``clk`` struct clk * to associate the notifier with h](j()}(h``clk``h]j.)}(hj?vh]hclk}(hjAvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=vubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK.hj9vubjD)}(hhh]j)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hjXvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTvhK.hjUvubah}(h]h ]h"]h$]h&]uh1jChj9vubeh}(h]h ]h"]h$]h&]uh1j!hjTvhK.hj6vubj")}(h8``notifier_head`` a blocking_notifier_head for this clk h](j()}(h``notifier_head``h]j.)}(hjxvh]h notifier_head}(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:393: ./include/linux/clk.hhK/hjrvubjD)}(hhh]j)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhK/hjvubah}(h]h ]h"]h$]h&]uh1jChjrvubeh}(h]h ]h"]h$]h&]uh1j!hjvhK/hj6vubj")}(h``node`` linked list pointersh](j()}(h``node``h]j.)}(hjvh]hnode}(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:393: ./include/linux/clk.hhK/hjvubjD)}(hhh]j)}(hlinked list pointersh]hlinked list pointers}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK0hjvubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjvhK/hj6vubeh}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubj)}(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:393: ./include/linux/clk.hhK3hjthhubj)}(hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular **clk**. Future notifiers on that **clk** are added to the **notifier_head**.h](hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular }(hj whhhNhNubj)}(h**clk**h]hclk}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubh. Future notifiers on that }(hj whhhNhNubj)}(h**clk**h]hclk}(hj$whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubh are added to the }(hj whhhNhNubj)}(h**notifier_head**h]h notifier_head}(hj6whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubh.}(hj whhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK1hjthhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhjthhhNhNubh)}(hhh](h)}(hclk_notifier_datah]h)}(hstruct clk_notifier_datah](j;)}(hj>h]hstruct}(hjhwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdwhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK9ubh)}(h h]h }(hjvwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdwhhhjuwhK9ubj)}(hclk_notifier_datah]j)}(hjbwh]hclk_notifier_data}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdwhhhjuwhK9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj`whhhjuwhK9ubah}(h]j[wah ](jjeh"]h$]h&]jj)jhuh1hhjuwhK9hj]whhubj)}(hhh]j)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK=hjwhhubah}(h]h ]h"]h$]h&]uh1jhj]whhhjuwhK9ubeh}(h]h ](jqstructeh"]h$]h&]jjqjjwjjwjjjuh1hhhhjthNhNubj)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh:}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKAhjwubjo)}(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; };}hjwsbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKChjwubj)}(h **Members**h]j)}(hjwh]hMembers}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKIhjwubj)}(hhh](j")}(h#``clk`` struct clk * being changed h](j()}(h``clk``h]j.)}(hjxh]hclk}(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:393: ./include/linux/clk.hhK?hjxubjD)}(hhh]j)}(hstruct clk * being changedh]hstruct clk * being changed}(hj0xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,xhK?hj-xubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hj,xhK?hjxubj")}(h'``old_rate`` previous rate of this clk h](j()}(h ``old_rate``h]j.)}(hjPxh]hold_rate}(hjRxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNxubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK@hjJxubjD)}(hhh]j)}(hprevious rate of this clkh]hprevious rate of this clk}(hjixhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjexhK@hjfxubah}(h]h ]h"]h$]h&]uh1jChjJxubeh}(h]h ]h"]h$]h&]uh1j!hjexhK@hjxubj")}(h!``new_rate`` new rate of this clkh](j()}(h ``new_rate``h]j.)}(hjxh]hnew_rate}(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:393: ./include/linux/clk.hhK@hjxubjD)}(hhh]j)}(hnew rate of this clkh]hnew rate of this clk}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKAhjxubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjxhK@hjxubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubj)}(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:393: ./include/linux/clk.hhKDhjthhubj)}(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).}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKBhjthhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhjthhhNhNubh)}(hhh](h)}(h clk_bulk_datah]h)}(hstruct clk_bulk_datah](j;)}(hj>h]hstruct}(hj yhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKJubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjyhKJubj)}(h clk_bulk_datah]j)}(hjyh]h clk_bulk_data}(hj*yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&yubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyhhhjyhKJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjyhhhjyhKJubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhKJhjxhhubj)}(hhh]j)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hjLyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKNhjIyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhKJubeh}(h]h ](jqstructeh"]h$]h&]jjqjjdyjjdyjjjuh1hhhhjthNhNubj)}(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}(hjpyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlyubh:}(hjlyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKRhjhyubjo)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hjysbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKThjhyubj)}(h **Members**h]j)}(hjyh]hMembers}(hjyhhhNhNubah}(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.hhKYhjhyubj)}(hhh](j")}(h``id`` clock consumer ID h](j()}(h``id``h]j.)}(hjyh]hid}(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:393: ./include/linux/clk.hhKQhjyubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhKQhjyubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjyhKQhjyubj")}(h2``clk`` struct clk * to store the associated clockh](j()}(h``clk``h]j.)}(hjyh]hclk}(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:393: ./include/linux/clk.hhKQhjyubjD)}(hhh]j)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKRhjzubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjzhKQhjyubeh}(h]h ]h"]h$]h&]uh1jhjhyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubj)}(h**Description**h]j)}(hj5zh]h Description}(hj7zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3zubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKUhjthhubj)}(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.}(hjKzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKShjthhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhjthhhNhNubh)}(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}(hjszhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjozhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKgubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjozhhhjzhKgubj)}(hclk_notifier_registerh]j)}(hclk_notifier_registerh]hclk_notifier_register}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjozhhhjzhKgubj/)}(h,(struct clk *clk, struct notifier_block *nb)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(hclkh]hclk}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]j)}jsjzsbc.clk_notifier_registerasbuh1hhjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hclkh]hclk}(hj {hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubj5)}(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 reftargetjB{modnameN classnameNjwjz)}j}]jzc.clk_notifier_registerasbuh1hhj{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)}(hnbh]hnb}(hjy{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjozhhhjzhKgubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkzhhhjzhKgubah}(h]jfzah ](jjeh"]h$]h&]jj)jhuh1hhjzhKghjhzhhubj)}(hhh]j)}(h.register a clock rate-change notifier callbackh]h.register 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.hhK_hj{hhubah}(h]h ]h"]h$]h&]uh1jhjhzhhhjzhKgubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{jj{jjjuh1hhhhjthNhNubj)}(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)}(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.hhKchj{ubj)}(hhh](j")}(h:``struct clk *clk`` clock whose rate we are interested in h](j()}(h``struct clk *clk``h]j.)}(hj{h]hstruct clk *clk}(hj{hhhNhNubah}(h]h ]h"]h$]h&]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)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(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")}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j()}(h``struct notifier_block *nb``h]j.)}(hj|h]hstruct notifier_block *nb}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKahj|ubjD)}(hhh]j)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hj6|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2|hKahj3|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj2|hKahj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubj)}(h**Description**h]j)}(hjX|h]h Description}(hjZ|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKchj{ubj)}(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.}(hjn|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKchj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhjthhhNhNubh)}(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}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKnubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhhj|hKnubj)}(hclk_notifier_unregisterh]j)}(hclk_notifier_unregisterh]hclk_notifier_unregister}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhhj|hKnubj/)}(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 }(hj|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)}jsj|sbc.clk_notifier_unregisterasbuh1hhj|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}(hj3}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|ubj5)}(hstruct notifier_block *nbh](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)}(hnotifier_blockh]hnotifier_block}(hjj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjg}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjl}modnameN classnameNjwjz)}j}]j}c.clk_notifier_unregisterasbuh1hhjH}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)}(hnbh]hnb}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjH}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj|hhhj|hKnubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhj|hKnubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hKnhj|hhubj)}(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.hhKjhj}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hKnubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj}jj}jjjuh1hhhhjthNhNubj)}(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)}(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.hhKnhj}ubj)}(hhh](j")}(hD``struct clk *clk`` clock whose rate we are no longer interested in h](j()}(h``struct clk *clk``h]j.)}(hj~h]hstruct clk *clk}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ~ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKkhj~ubjD)}(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&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hj#~hKkhj~ubj")}(hG``struct notifier_block *nb`` notifier block which will be unregisteredh](j()}(h``struct notifier_block *nb``h]j.)}(hjG~h]hstruct notifier_block *nb}(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:393: ./include/linux/clk.hhKmhjA~ubjD)}(hhh]j)}(h)notifier block which will be unregisteredh]h)notifier block which will be unregistered}(hj`~hhhNhNubah}(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&]uh1jChjA~ubeh}(h]h ]h"]h$]h&]uh1j!hj\~hKmhj~ubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhjthhhNhNubh)}(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}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKxubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj~hKxubj)}(hdevm_clk_notifier_registerh]j)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhj~hKxubj/)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)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}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j)}jsj~sbc.devm_clk_notifier_registerasbuh1hhj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hdevh]hdev}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubj5)}(hstruct clk *clkh](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)}(hclkh]hclk}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]jc.devm_clk_notifier_registerasbuh1hhjLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubj5)}(hstruct notifier_block *nbh](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)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.devm_clk_notifier_registerasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnbh]hnb}(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~hKxubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhj~hKxubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj~hKxhj~hhubj)}(hhh]j)}(h0register a managed rate-change notifier callbackh]h0register a managed rate-change notifier callback}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKqhj>hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hKxubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYjjYjjjuh1hhhhjthNhNubj)}(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)}(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:393: ./include/linux/clk.hhKuhj]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.hhKrhj|ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKrhjubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhKrhjyubj")}(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.hhKshjubjD)}(hhh]j)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЀhKshjрubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjЀhKshjyubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKthj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKthjyubeh}(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:393: ./include/linux/clk.hhKvhj]ubj)}(h'Returns 0 on success, -EERROR otherwiseh]h'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.hhKvhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhjthhhNhNubh)}(hhh](h)}(h'long clk_get_accuracy (struct clk *clk)h]h)}(h&long clk_get_accuracy(struct clk *clk)h](h)}(hlongh]hlong}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjphhhX/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&]uh1hhjphhhjhKubj)}(hclk_get_accuracyh]j)}(hclk_get_accuracyh]hclk_get_accuracy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjphhhjhKubj/)}(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_get_accuracyasbuh1hhjubh)}(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.hjphhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlhhhjhKubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjihhubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK|hj1hhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjLjjLjjjuh1hhhhjthNhNubj)}(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)}(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 source h](j()}(h``struct clk *clk``h]j.)}(hjuh]hstruct clk *clk}(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:393: ./include/linux/clk.hhK~hjoubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK~hjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhK~hjlubah}(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:393: ./include/linux/clk.hhKhjPubj)}(hPThis gets the clock source accuracy expressed in ppb. A perfect clock returns 0.h]hPThis gets the clock source accuracy expressed in ppb. A perfect clock returns 0.}(hjƂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_phase (C function)c.clk_set_phasehNtauh1hhjthhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(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}(hj2hhhNhNubah}(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}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_phaseasbuh1hhj.ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hj~hhhNhNubah}(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-uh1j4hj*ubj5)}(h int degreesh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdegreesh]hdegrees}(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.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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hKhj"ubj")}(h8``int degrees`` number of degrees the signal is shifted h](j()}(h``int degrees``h]j.)}(hjdh]h int degrees}(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.hhKhj^ubjD)}(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&]uh1jhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhKhj"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.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.}(hjhhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_phase (C function)c.clk_get_phasehNtauh1hhjthhhNhNubh)}(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: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 reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_get_phaseasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjzhhhNhNubah}(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]jׄah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjلhhubj)}(hhh]j)}(h(return the phase shift of a clock signalh]h(return 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&]uh1jhjلhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.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.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܅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:393: ./include/linux/clk.hhKhjubj)}(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.}(hj6hhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhjthhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjshKubj)}(hclk_set_duty_cycleh]j)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjshKubj/)}(h5(struct clk *clk, unsigned int num, unsigned int den)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 reftargetj†modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_duty_cycleasbuh1hhjubh)}(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 int numh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnumh]hnum}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int denh](h)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hdenh]hden}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio of a clock signal}(hjLJhhhNhNubah}(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&]uh1jhjZhhhjshKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj߇jj߇jjjuh1hhhhjthNhNubj)}(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}(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)}(hclock signal sourceh]hclock signal source}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j()}(h``unsigned int num``h]j.)}(hjAh]hunsigned int num}(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.hhKhj;ubjD)}(hhh]j)}(h/numerator of the duty cycle ratio to be appliedh]h/numerator of the duty cycle ratio to be applied}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhKhjWubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hjVhKhjubj")}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j()}(h``unsigned int den``h]j.)}(hjzh]hunsigned int den}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjtubjD)}(hhh]j)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(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&]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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhjthhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hclk_get_scaled_duty_cycleh]j)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(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}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(hclkh]hclk}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_get_scaled_duty_cycleasbuh1hhj3ubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubj5)}(hunsigned int scaleh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjʼnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjӉhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hscaleh]hscale}(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.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}(hj hhhNhNubah}(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#jjjuh1hhhhjthNhNubj)}(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.)}(hjLh]hstruct clk *clk}(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:393: ./include/linux/clk.hhKhjFubjD)}(hhh]j)}(hclock signal sourceh]hclock signal source}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahKhjbubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjahKhjCubj")}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j()}(h``unsigned int scale``h]j.)}(hjh]hunsigned int scale}(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)}(hAscaling factor to be applied to represent the ratio as an integerh]hAscaling factor to be applied to represent the ratio as an integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjCubeh}(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: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.}(hj֊hhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_is_match (C function) c.clk_is_matchhNtauh1hhjthhhNhNubh)}(hhh](h)}(hh]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)}(hclkh]hclk}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j)}jsj'sbc.clk_is_matchasbuh1hhj=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(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-uh1j4hj9ubj5)}(hconst struct clk *qh](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)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.clk_is_matchasbuh1hhjɋubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɋubj)}(hjh]h*}(hj2hhhNhNubah}(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-uh1j4hj9ubeh}(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)}(h3check if two clk's point to the same hardware clockh]h5check if two clk’s point to the same hardware clock}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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/``const struct clk *p`` clk compared against q h](j()}(h``const struct clk *p``h]j.)}(hjh]hconst struct clk *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:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(hclk compared against qh]hclk compared against q}(hjŒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(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.hhKhj܌ubjD)}(hhh]j)}(hclk compared against ph]hclk compared against p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChj܌ubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(hReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if **p** and **q** share the same :c:type:`struct clk_core ` object.h](hyReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if }(hj3hhhNhNubj)}(h**p**h]hp}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh and }(hj3hhhNhNubj)}(h**q**h]hq}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh share the same }(hj3hhhNhNubh)}(h$:c:type:`struct clk_core `h]j.)}(hjah]hstruct clk_core}(hjchhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8clk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj3ubh object.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj~hKhjubj)}(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.}(hjhhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhjthhhNhNubh)}(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}(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_rate_exclusive_geth]j)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hjٍhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjՍubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjƍhKubj/)}(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)}jsjۍsbc.clk_rate_exclusive_getasbuh1hhjubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjNhhhNhNubah}(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)}(h3get exclusivity over the rate control of a producerh]h3get exclusivity over the rate control of a producer}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƍhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.)}(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)}(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ΎhKhjubah}(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.hhKhjubj)}(hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitchesh]hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.hhKhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj7hhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhjthhhNhNubh)}(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}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhjthKubj)}(hdevm_clk_rate_exclusive_geth]j)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbhhhjthKubj/)}(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 reftargetjÏmodnameN classnameNjwjz)}j}]j)}jsjsbc.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)}(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}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]jݏc.devm_clk_rate_exclusive_getasbuh1hhjubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhjthKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj^hhhjthKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthKhj[hhubj)}(hhh]j)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of clk_rate_exclusive_get}(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&]uh1jhj[hhhjthKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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 device *dev`` device the exclusivity is bound to h](j()}(h``struct device *dev``h]j.)}(hjאh]hstruct device *dev}(hjِhhhNhNubah}(h]h ]h"]h$]h&]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)}(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&]uh1jChjѐubeh}(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}(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.hhKhj ubjD)}(hhh]j)}(h clock sourceh]h clock source}(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&]uh1jhjubj)}(h**Description**h]j)}(hjKh]h Description}(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.hhKhjubj)}(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 }(hjahhhNhNubj)}(h**clk**h]hclk}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh) and registers a devm cleanup handler on }(hjahhhNhNubj)}(h**dev**h]hdev}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh" to call clk_rate_exclusive_put().}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhjthhhNhNubh)}(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}(hjÑhhhNhNubah}(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_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 hjhhhjёhKubj/)}(h(struct clk *clk)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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_rate_exclusive_putasbuh1hhjubh)}(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-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)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.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ْhKhjubah}(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.hhKhjubj)}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.hhKhjubj)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj3hhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_prepare (C function) c.clk_preparehNtauh1hhjthhhNhNubh)}(hhh](h)}(h!int clk_prepare (struct clk *clk)h]h)}(h int clk_prepare(struct clk *clk)h](h)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM3ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhhjphM3ubj)}(h clk_prepareh]j)}(h clk_prepareh]h clk_prepare}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^hhhjphM3ubj/)}(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_prepareasbuh1hhjubh)}(h h]h }(hjݓhhhNhNubah}(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.hj^hhhjphM3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZhhhjphM3ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphM3hjWhhubj)}(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,hjhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphM3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhjthNhNubj)}(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)}(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:393: ./include/linux/clk.hhM0hj>ubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjch]hstruct clk *clk}(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:393: ./include/linux/clk.hhM-hj]ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhM-hjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhM-hjZubah}(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.hhM/hj>ubj)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM/hj>ubj)}(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.hhM1hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhjthhhNhNubh)}(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.hhMFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMFubj)}(hclk_is_enabled_when_preparedh]j)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMFubj/)}(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}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_is_enabled_when_preparedasbuh1hhj*ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(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-uh1j4hj&ubah}(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)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjɕjjɕjjjuh1hhhhjthNhNubj)}(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)}(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<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}(hj hhhNhNubah}(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.}(hjChhhNhNubah}(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.}(hjRhhhNhNubah}(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.}(hjahhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_unprepare (C function)c.clk_unpreparehNtauh1hhjthhhNhNubh)}(hhh](h)}(h$void clk_unprepare (struct clk *clk)h]h)}(h#void clk_unprepare(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.hhMdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMdubj)}(h clk_unprepareh]j)}(h clk_unprepareh]h clk_unprepare}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMdubj/)}(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_unprepareasbuh1hhjɖ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}(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.hjhhhjhMdubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhjhhubj)}(hhh]j)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM\hjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMdubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhjjhjjjuh1hhhhjthNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM`hjlubj)}(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]hjubjD)}(hhh]j)}(h clock sourceh]h clock source}(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&]uh1jhjlubj)}(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_hjlubj)}(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_hjlubj)}(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.hhMbhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get (C function) c.clk_gethNtauh1hhjthhhNhNubh)}(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: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}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j)}jsclk_getsb c.clk_getasbuh1hhjhhhj-hMubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj-hMubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMubj)}(hclk_geth]j)}(hj]h]hclk_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(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}]j[ c.clk_getasbuh1hhjubh)}(h h]h }(hj֘hhhNhNubah}(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: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 }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjNhhhNhNubah}(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)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a reference to a clock producer.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.hhMyhjubj)}(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.hhMvhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjҙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΙhMvhjϙubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjΙhMvhjubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMwhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMwhjubeh}(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.hhMyhjubj)}(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 }(hjChhhNhNubj)}(h**dev**h]hdev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh and }(hjChhhNhNubj)}(h**id**h]hid}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjChhhNhNubj)}(h**id**h]hid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhY may be identical strings, but clk_get may return different clock producers depending on }(hjChhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh.)}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMyhjubj)}(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_get should not be called from within interrupt context.h]h;clk_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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_get (C function)c.clk_bulk_gethNtauh1hhjthhhNhNubh)}(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}(hjؚhhhNhNubah}(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_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 hjԚhhhjhMubj/)}(h>(struct device *dev, int num_clks, 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}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_getasbuh1hhjubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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}(hjhhhNhNubah}(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}(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&]uh1jhjכubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjܛmodnameN classnameNjwjz)}j}]jOc.clk_bulk_getasbuh1hhjubh)}(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-uh1j4hj ubeh}(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 number of references to clock producer.h]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&]uh1jhj͚hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjthNhNubj)}(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)}(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:393: ./include/linux/clk.hhMhjYubj)}(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.hhMhjxubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjuubj")}(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}(hjМhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̜hMhj͜ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj̜hMhjuubj")}(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!hjhMhjuubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjYubj)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjYubj)}(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 }(hjPhhhNhNubj)}(h**dev**h]hdev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh and }(hjPhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjPhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh field.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjYubj)}(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.hhMhjYubj)}(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.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhjthhhNhNubh)}(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}(hjӝhhhNhNubah}(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)}(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 hjϝhhhjhMubj/)}(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:hj ubh)}(h h]h }(hjhhhNhNubah}(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 reftargetj0modnameN classnameNjwjz)}j}]j)}jsjsbc.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)}(hdevh]hdev}(hjihhhNhNubah}(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}(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}]jJc.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*}(hjٞhhhNhNubah}(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.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 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.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhjȝhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjthNhNubj)}(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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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.)}(hjQh]hstruct device *dev}(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:393: ./include/linux/clk.hhMhjKubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhMhjHubj")}(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!hjhMhjHubeh}(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 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.}(hj۟hhhNhNubah}(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.}(hj hhhNhNubah}(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.}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhjthhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjWhMubj)}(hclk_bulk_get_optionalh]j)}(hclk_bulk_get_optionalh]hclk_bulk_get_optional}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjEhhhjWhMubj/)}(h>(struct device *dev, int num_clks, 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 }(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)}jsjlsbc.clk_bulk_get_optionalasbuh1hhjubh)}(h h]h }(hjĠhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjҠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjߠhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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}(hjhhhNhNubah}(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 }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]jc.clk_bulk_get_optionalasbuh1hhj)ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjh]h*}(hjwhhhNhNubah}(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-uh1j4hj~ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjEhhhjWhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj)}(hhh]j)}(h:lookup and obtain a number of references to clock producerh]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>hhhjWhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjơjjơjjjuh1hhhhjthNhNubj)}(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)}(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")}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMhjubj")}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hjah]hstruct clk_bulk_data *clks}(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.hhMhj[ubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(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&]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)}(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.}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_clk_bulk_get (C function)c.devm_clk_bulk_gethNtauh1hhjthhhNhNubh)}(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&]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)}(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 hjݢhhhjhMubj/)}(h>(struct device *dev, int num_clks, 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&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]j)}jsjsbc.devm_clk_bulk_getasbuh1hhjubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(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}(hjţhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jXc.devm_clk_bulk_getasbuh1hhjubh)}(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-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"managed get multiple clk consumersh]h"managed get multiple clk consumers}(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&]uh1jhj֢hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjthNhNubj)}(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)}(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.hhMhjbubj)}(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!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}(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)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj٤hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjդhMhj֤ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(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&]uh1jhjbubj)}(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:393: ./include/linux/clk.hhMhjbubj)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjbubj)}(hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h]hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhjthhhNhNubh)}(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}(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_optionalh]j)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_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}(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.devm_clk_bulk_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)}(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.devm_clk_bulk_get_optionalasbuh1hhjhubh)}(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-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}hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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&]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")}(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.)}(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!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)}(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.hhMhj ubj)}(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}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhjthhhNhNubh)}(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}(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_allh]j)}(hdevm_clk_bulk_get_allh]hdevm_clk_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.devm_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.devm_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"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&]uh1jhjxhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjةjjةjjjuh1hhhhjthNhNubj)}(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.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)}(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)}(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.}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhjthhhNhNubh)}(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}(hj۪hhhNhNubah}(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)}(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 hjתhhhjhMubj/)}(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}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j)}jsjsbc.devm_clk_bulk_get_all_enabledasbuh1hhjubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjqhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jRc.devm_clk_bulk_get_all_enabledasbuh1hhjubh)}(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)}(hclksh]hclks}(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תhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjӪhhhjhMubah}(h]jΪah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjЪhhubj)}(hhh]j)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(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&]jjqjj0jj0jjjuh1hhhhjthNhNubj)}(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)}(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.hhMhj4ubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjYh]hstruct device *dev}(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.hhMhjSubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjPubj")}(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!hjhMhjPubeh}(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.hhMhj4ubj)}(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.hhMhj4ubj)}(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.hhMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_clk_get (C function)c.devm_clk_gethNtauh1hhjthhhNhNubh)}(hhh](h)}(h>struct clk * devm_clk_get (struct device *dev, const char *id)h]h)}(hh]hstruct}(hj3hhhNhNubah}(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 }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhj@hMubh)}(hhh]j)}(hclkh]hclk}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]j)}js devm_clk_getsbc.devm_clk_getasbuh1hhj/hhhj@hMubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhj@hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hMubj)}(h devm_clk_geth]j)}(hjph]h devm_clk_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhj@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}(hj˭hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjȭubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjͭmodnameN classnameNjwjz)}j}]jnc.devm_clk_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)}(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}(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)}(hidh]hid}(hjahhhNhNubah}(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@hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj@hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj(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.}(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(hhhj@hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.)}(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”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjƮubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjî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.hhMhjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(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)}(hj@h]hContext}(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.hhM hjubj)}(h May sleep.h]h May sleep.}(hjVhhhNhNubah}(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)}(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:393: ./include/linux/clk.hhM hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh and }(hj}hhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj}hhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(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}(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:393: ./include/linux/clk.hhM hjubj)}(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)}(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.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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_clk_get_prepared (C function)c.devm_clk_get_preparedhNtauh1hhjthhhNhNubh)}(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.hhM,ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj7hM,ubh)}(hhh]j)}(hclkh]hclk}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_preparedsbc.devm_clk_get_preparedasbuh1hhj&hhhj7hM,ubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj7hM,ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj7hM,ubj)}(hdevm_clk_get_preparedh]j)}(hjgh]hdevm_clk_get_prepared}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&hhhj7hM,ubj/)}(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}(hj°hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjİmodnameN classnameNjwjz)}j}]jec.devm_clk_get_preparedasbuh1hhjubh)}(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 }(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*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj&hhhj7hM,ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj"hhhj7hM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hM,hjhhubj)}(hhh]j)}(hdevm_clk_get() + clk_prepare()h]hdevm_clk_get() + clk_prepare()}(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&]uh1jhjhhhj7hM,ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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&]uh1jhjرhMhjٱubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjرhMhjubj")}(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}(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 **Context**h]j)}(hj7h]hContext}(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.hhMhjubj)}(h May sleep.h]h May sleep.}(hjMhhhNhNubah}(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)}(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)}(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 }(hjthhhNhNubj)}(h**dev**h]hdev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh and }(hjthhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjthhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhY may be identical strings, but clk_get may return different clock producers depending on }(hjthhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.)}(hjthhhNhNubeh}(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)}(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&hjubj)}(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&hjubj)}(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)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!devm_clk_get_enabled (C function)c.devm_clk_get_enabledhNtauh1hhjthhhNhNubh)}(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:hjhhhX/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@ubh)}(hhh]j)}(hclkh]hclk}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_enabledsbc.devm_clk_get_enabledasbuh1hhjhhhj.hM@ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj.hM@ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hM@ubj)}(hdevm_clk_get_enabledh]j)}(hj^h]hdevm_clk_get_enabled}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj.hM@ubj/)}(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}]j\c.devm_clk_get_enabledasbuh1hhjubh)}(h h]h }(hj׳hhhNhNubah}(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: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 }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjOhhhNhNubah}(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%devm_clk_get() + clk_prepare_enable()h]h%devm_clk_get() + clk_prepare_enable()}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM/hjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hM@ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.hhM3hjubj)}(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.hhM0hjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjӴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϴhM0hjдubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjϴhM0hjubj")}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM1hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM1hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h **Context**h]j)}(hj.h]hContext}(hj0hhhNhNubah}(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.hhM3hjubj)}(h May sleep.h]h May sleep.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM3hjubj)}(h **Return**h]j)}(hjUh]hReturn}(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.hhM5hjubj)}(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 }(hjkhhhNhNubj)}(h**dev**h]hdev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh and }(hjkhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjkhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubhY may be identical strings, but clk_get may return different clock producers depending on }(hjkhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh.)}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM5hjubj)}(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;hjubj)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjڵhhhNhNubah}(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.hhM=hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_clk_get_optional (C function)c.devm_clk_get_optionalhNtauh1hhjthhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMWubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj%hMWubh)}(hhh]j)}(hclkh]hclk}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_optionalsbc.devm_clk_get_optionalasbuh1hhjhhhj%hMWubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj%hMWubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj%hMWubj)}(hdevm_clk_get_optionalh]j)}(hjUh]hdevm_clk_get_optional}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj%hMWubj/)}(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}]jSc.devm_clk_get_optionalasbuh1hhjubh)}(h h]h }(hjζ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)}(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*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj%hMWubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj%hMWubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMWhj hhubj)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMChjmhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMWubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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.hhMGhjubj)}(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.hhMEhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjʷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƷhMEhjǷubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjƷhMEhjubj")}(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!hjhMFhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(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.hhMHhjubj)}(h May sleep.h]h May sleep.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMHhjubj)}(h **Return**h]j)}(hjLh]hReturn}(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.hhMJhjubj)}(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 }(hjbhhhNhNubj)}(h**dev**h]hdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh and }(hjbhhhNhNubj)}(h**id**h]hid}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh 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().}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMJhjubj)}(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.hhMQhjubj)}(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.hhMQhjubj)}(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.hhMThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+devm_clk_get_optional_prepared (C function) c.devm_clk_get_optional_preparedhNtauh1hhjthhhNhNubh)}(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.hhMmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMmubh)}(hhh]j)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_optional_preparedsb c.devm_clk_get_optional_preparedasbuh1hhjhhhjhMmubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMmubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubj)}(hdevm_clk_get_optional_preparedh]j)}(hj(h]hdevm_clk_get_optional_prepared}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMmubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](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)}(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_preparedasbuh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hconst char *idh](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)}(hidh]hid}(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.hjhhhjhMmubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMmubah}(h]j޸ah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjhhubj)}(hhh]j)}(h'devm_clk_get_optional() + clk_prepare()h]h'devm_clk_get_optional() + clk_prepare()}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMZhj@hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[jj[jjjuh1hhhhjthNhNubj)}(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)}(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.hhM^hj_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.hhM[hj~ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(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 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.hhM\hjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(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&]uh1jhj_ubj)}(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^hj_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.hhM^hj_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:393: ./include/linux/clk.hhM`hj_ubj)}(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 }(hj5hhhNhNubj)}(h**dev**h]hdev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh and }(hj5hhhNhNubj)}(h**id**h]hid}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh 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().}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM`hj_ubj)}(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.hhMghj_ubj)}(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.hhMghj_ubj)}(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.hhMjhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*devm_clk_get_optional_enabled (C function)c.devm_clk_get_optional_enabledhNtauh1hhjthhhNhNubh)}(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}(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}(hjݻhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjڻubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj߻modnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_optional_enabledsbc.devm_clk_get_optional_enabledasbuh1hhjhhhj˻hMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj˻hMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj˻hMubj)}(hdevm_clk_get_optional_enabledh]j)}(hjh]hdevm_clk_get_optional_enabled}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(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}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(hdeviceh]hdevice}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]jc.devm_clk_get_optional_enabledasbuh1hhj4ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(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*}(hj߼hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(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˻hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj˻hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj˻hMhjhhubj)}(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&]uh1jhjhhhj˻hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj.jj.jjjuh1hhhhjthNhNubj)}(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)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMthj2ubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjWh]hstruct device *dev}(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:393: ./include/linux/clk.hhMrhjQubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMrhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhMrhjNubj")}(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.hhMshjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMshjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubj)}(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.hhMuhj2ubj)}(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.hhMuhj2ubj)}(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.hhMwhj2ubj)}(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.hhMwhj2ubj)}(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~hj2ubj)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM~hj2ubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(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_ratehNtauh1hhjthhhNhNubh)}(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}(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'devm_clk_get_optional_enabled_with_ratesb)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjhhhjhMubh)}(h h]h }(hjѾhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hj߾hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(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 hjhhhjhMubj/)}(h8(struct device *dev, const char *id, unsigned long rate)h](j5)}(hstruct device *devh](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)}(hdeviceh]hdevice}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+modnameN classnameNjwjz)}j}]j̾)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjbhhhNhNubah}(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: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)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(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 }(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)}(hrateh]hrate}(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?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()h]h?devm_clk_get_optional() + clk_set_rate() + 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.hhMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhjthNhNubj)}(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}(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.hhMhjVubj)}(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-hjyubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjuubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjrubj")}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjrubj")}(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!hjhMhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubj)}(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.hhMhjVubj)}(h May sleep.h]h May sleep.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjVubj)}(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:393: ./include/linux/clk.hhMhjVubj)}(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 }(hjehhhNhNubj)}(h**dev**h]hdev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh and }(hjehhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh 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().}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjVubj)}(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.hhMhjVubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjVubj)}(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.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$devm_get_clk_from_child (C function)c.devm_get_clk_from_childhNtauh1hhjthhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_get_clk_from_childsbc.devm_get_clk_from_childasbuh1hhjhhhjhMubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdevm_get_clk_from_childh]j)}(hj+h]hdevm_get_clk_from_child}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(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}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)c.devm_get_clk_from_childasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(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}]j)c.devm_get_clk_from_childasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnph]hnp}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(hconst char *con_idh](j;)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hcharh]hchar}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(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)}(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.}(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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubj")}(h:``struct device_node *np`` pointer to clock consumer node h](j()}(h``struct device_node *np``h]j.)}(hj0h]hstruct device_node *np}(hj2hhhNhNubah}(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)}(hpointer to clock consumer nodeh]hpointer to clock consumer node}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhjubj")}(h)``const char *con_id`` clock consumer ID h](j()}(h``const char *con_id``h]j.)}(hjih]hconst char *con_id}(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.hhMhjcubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hMhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(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: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 }(hjhhhNhNubj)}(h**np**h]hnp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_enable (C function) c.clk_enablehNtauh1hhjthhhNhNubh)}(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 }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj&hMubj)}(h clk_enableh]j)}(h clk_enableh]h clk_enable}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj&hMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](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)}(hclkh]hclk}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j)}jsj;sb c.clk_enableasbuh1hhjQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubah}(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: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&]uh1jhj hhhj&hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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}(hj2hhhNhNubah}(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)}(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)}(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.}(hjjhhhNhNubah}(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.}(hjyhhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_enable (C function)c.clk_bulk_enablehNtauh1hhjthhhNhNubh)}(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}(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_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 hjhhhjhMubj/)}(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}(hj)hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj;)}(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)}(h clk_bulk_datah]h clk_bulk_data}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_enableasbuh1hhj%ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%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-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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.}(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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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}(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)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj!hhhNhNubah}(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.)}(hjAh]h const struct clk_bulk_data *clks}(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.hhMhj;ubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(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)}(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.hhMhjubj)}(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.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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_disable (C function) c.clk_disablehNtauh1hhjthhhNhNubh)}(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&]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_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 hjhhhjhMubj/)}(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}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-modnameN classnameNjwjz)}j}]j)}jsjsb c.clk_disableasbuh1hhj ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hclkh]hclk}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(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 is no longer required.h]h>inform the system when the clock source is no longer required.}(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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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)}(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)}(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.}(hj"hhhNhNubah}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.h]hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.}(hj@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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhjthhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkhhhX/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&]uh1hhjkhhhj}hMubj)}(hclk_bulk_disableh]j)}(hclk_bulk_disableh]hclk_bulk_disable}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhj}hMubj/)}(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 }(hj hhhNhNubah}(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_disableasbuh1hhjubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjUhhhNhNubah}(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=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.}(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&]uh1jhjdhhhj}hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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}(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)}(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:393: ./include/linux/clk.hhMhjubj)}(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.}(hjJhhhNhNubah}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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.}(hjhhhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_rate (C function)c.clk_get_ratehNtauh1hhjthhhNhNubh)}(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}(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&]uh1hhjhhhjhMubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(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 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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_get_rateasbuh1hhjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(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)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](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 sourceh](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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_put (C function) c.clk_puthNtauh1hhjthhhNhNubh)}(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&]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)}(hclk_puth]j)}(hclk_puth]hclk_put}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(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}(hjKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjGubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubh)}(hhh]j)}(hclkh]hclk}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjkmodnameN classnameNjwjz)}j}]j)}jsj1sb c.clk_putasbuh1hhjGubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hclkh]hclk}(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 hhhjhMubeh}(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}(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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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-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 clock sourceh]h clock source}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjJh]hNote}(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)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hj`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)}(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.hhMhjubj)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_put (C function)c.clk_bulk_puthNtauh1hhjthhhNhNubh)}(hhh](h)}(hh]hstruct}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_putasbuh1hhj$ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjthhhNhNubah}(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-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"free" the clock sourceh]h“free” the 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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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)}(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")}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hj%h]hstruct clk_bulk_data *clks}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(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&]uh1jhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hj`h]hNote}(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.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.}(hjvhhhNhNubah}(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.hhMhjubj)}(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.}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_put_all (C function)c.clk_bulk_put_allhNtauh1hhjthhhNhNubh)}(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}(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_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 hjhhhjhMubj/)}(h*(int num_clks, struct clk_bulk_data *clks)h](j5)}(h int num_clksh](h)}(hinth]hint}(hj hhhNhNubah}(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-uh1j4hjubj5)}(hstruct clk_bulk_data *clksh](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 clk_bulk_datah]h clk_bulk_data}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj^modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_put_allasbuh1hhj:ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj: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-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"free" all the clock sourceh]h“free” all the 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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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.)}(hj;h]hstruct clk_bulk_data *clks}(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:393: ./include/linux/clk.hhM hj5ubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM hjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjvh]hNote}(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.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.}(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.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.}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_clk_put (C function)c.devm_clk_puthNtauh1hhjthhhNhNubh)}(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.hhM"ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM"ubj)}(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 hjhhhjhM"ubj/)}(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 }(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 reftargetj?modnameN classnameNjwjz)}j}]j)}jsjsbc.devm_clk_putasbuh1hhjubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjxhhhNhNubah}(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 }(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}]jYc.devm_clk_putasbuh1hhjubh)}(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-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"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&]uh1jhjhhhjhM"ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhjthNhNubj)}(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)}(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:393: ./include/linux/clk.hhMhj.ubj)}(hhh](j")}(h8``struct device *dev`` device used to acquire the clock 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)}(h device used to acquire the clockh]h device used to acquire the clock}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhMhjJubj")}(h>``struct clk *clk`` clock source acquired with devm_clk_get() h](j()}(h``struct clk *clk``h]j.)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(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**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.hhMhj.ubj)}(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.hhMhj.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.hhM hj.ubj)}(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 hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_round_rate (C function)c.clk_round_ratehNtauh1hhjthhhNhNubh)}(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}(hj3hhhNhNubah}(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 }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhM>ubj)}(hclk_round_rateh]j)}(hclk_round_rateh]hclk_round_rate}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhM>ubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](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)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.clk_round_rateasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hrateh]hrate}(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/hhhjAhM>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhM>ubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhM>hj(hhubj)}(hhh]j)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM*hjAhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhM>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhjthNhNubj)}(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)}(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: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.hhM+hjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM+hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM+hj|ubj")}(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.hhM,hjubjD)}(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&]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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM.hj`ubj)}(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.hj`ubj<8)}(hrate = clk_round_rate(clk, r); h]j)}(hrate = clk_round_rate(clk, r);h]hrate = clk_round_rate(clk, r);}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM2hj0ubah}(h]h ]h"]h$]h&]uh1j;8hjBhM2hj`ubj)}(hand:h]hand:}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM4hj`ubj<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.hhM6hjXubah}(h]h ]h"]h$]h&]uh1j;8hjjhM6hj`ubj)}(hOare equivalent except the former does not modify the clock hardware in any way.h]hOare equivalent except the former does not modify the clock hardware in any way.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM9hj`ubj)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM<hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_rate (C function)c.clk_set_ratehNtauh1hhjthhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMJubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMJubj)}(h clk_set_rateh]j)}(h clk_set_rateh]h clk_set_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMJubj/)}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_rateasbuh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjEhhhNhNubah}(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&]uh1hhjZubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjhhubj)}(hhh]j)}(h%set the clock rate for a clock sourceh]h%set the 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.hhMAhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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.)}(hj:h]hunsigned long rate}(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.hhMChj4ubjD)}(hhh]j)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhMChjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhMChjubeh}(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: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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhjthhhNhNubh)}(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}(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_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 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: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_rate_exclusiveasbuh1hhjubh)}(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.hjhhhjhM[ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM[hjhhubj)}(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&]uh1jhjhhhjhM[ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMOhj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hMOhjubj")}(h0``unsigned long rate`` desired clock rate in Hz 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.hhMPhjNubjD)}(hhh]j)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMPhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihMPhjubeh}(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.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.}(hjhhhNhNubah}(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()}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_has_parent (C function)c.clk_has_parenthNtauh1hhjthhhNhNubh)}(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.hhMgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMgubj)}(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 hjhhhjhMgubj/)}(h1(const struct clk *clk, const struct clk *parent)h](j5)}(hconst struct clk *clkh](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}(hjIhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*ubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hhh]j)}(hclkh]hclk}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_has_parentasbuh1hhj*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-uh1j4hj&ubj5)}(hconst struct clk *parenth](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}]jc.clk_has_parentasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(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.hjhhhjhMgubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMghjhhubj)}(hhh]j)}(h1check if a clock is a possible parent for anotherh]h1check if a clock is a possible parent for another}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM^hjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjojjojjjuh1hhhhjthNhNubj)}(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)}(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:393: ./include/linux/clk.hhMbhjsubj)}(hhh](j")}(h'``const struct clk *clk`` clock source h](j()}(h``const struct clk *clk``h]j.)}(hjh]hconst struct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM_hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM_hjubj")}(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`hjubjD)}(hhh]j)}(hparent clock sourceh]hparent clock source}(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&]uh1jhjsubj)}(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.hhMbhjsubj)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMbhjsubj)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hj1hhhNhNubj)}(h **parent**h]hparent}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh is a possible parent for }(hj1hhhNhNubj)}(h**clk**h]hclk}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh, false otherwise.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMehjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhjthhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMqubj)}(hclk_set_rate_rangeh]j)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMqubj/)}(h7(struct clk *clk, unsigned long min, unsigned long max)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_rangeasbuh1hhjubh)}(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-uh1j4hjubj5)}(hunsigned long minh](h)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hminh]hmin}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long maxh](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)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhjhMqubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMqhjyhhubj)}(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&]uh1jhjyhhhjhMqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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}(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.hhMnhjubj)}(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.hhMkhj!ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMkhj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMkhjubj")}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j()}(h``unsigned long min``h]j.)}(hj`h]hunsigned long min}(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.hhMlhjZubjD)}(hhh]j)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMlhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhMlhjubj")}(hB``unsigned long max`` desired maximum clock rate in Hz, inclusive h](j()}(h``unsigned long max``h]j.)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMmhjubjD)}(hhh]j)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMmhjubeh}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhjthhhNhNubh)}(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.hhMzubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hMzubj)}(hclk_set_min_rateh]j)}(hclk_set_min_rateh]hclk_set_min_rate}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj'hMzubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](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)}(hclkh]hclk}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsj<sbc.clk_set_min_rateasbuh1hhjRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(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-uh1j4hjNubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj'hMzubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj'hMzubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMzhjhhubj)}(hhh]j)}(h+set a minimum clock rate for a clock sourceh]h+set a minimum clock rate for a clock source}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMthj'hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMzubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjBjjBjjjuh1hhhhjthNhNubj)}(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)}(hjLh]h Parameters}(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.hhMxhjFubj)}(hhh](j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjkh]hstruct clk *clk}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuhjeubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMuhjubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjhMuhjbubj")}(hC``unsigned long rate`` desired minimum clock rate in Hz, inclusive h](j()}(h``unsigned long rate``h]j.)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMvhjubjD)}(hhh]j)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMvhjbubeh}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMxhjFubj)}(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.hhMxhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhjthhhNhNubh)}(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}(hj$hhhNhNubah}(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 }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj2hMubj)}(hclk_set_max_rateh]j)}(hclk_set_max_rateh]hclk_set_max_rate}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj2hMubj/)}(h%(struct clk *clk, unsigned long rate)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_set_max_rateasbuh1hhj]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-uh1j4hjYubj5)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj2hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj2hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj2hMhjhhubj)}(hhh]j)}(h+set a maximum clock rate for a clock sourceh]h+set a maximum clock rate for a clock source}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM}hj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjMjjMjjjuh1hhhhjthNhNubj)}(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)}(hjWh]h Parameters}(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.hhMhjQubj)}(hhh](j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjvh]hstruct clk *clk}(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:393: ./include/linux/clk.hhM~hjpubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM~hjubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhM~hjmubj")}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive h](j()}(h``unsigned long rate``h]j.)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]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+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(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&]uh1jhjQubj)}(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.hhMhjQubj)}(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.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_parent (C function)c.clk_set_parenthNtauh1hhjthhhNhNubh)}(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}(hj/hhhNhNubah}(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 }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hMubj)}(hclk_set_parenth]j)}(hclk_set_parenth]hclk_set_parent}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj=hMubj/)}(h%(struct clk *clk, struct clk *parent)h](j5)}(hstruct clk *clkh](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)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjRsbc.clk_set_parentasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(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}]jc.clk_set_parentasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubeh}(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*set the parent clock source for this clockh]h*set the parent clock source for this clock}(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$hhhj=hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhjthNhNubj)}(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)}(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")}(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!hjhMhjubj")}(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!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&]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.}(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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_parent (C function)c.clk_get_parenthNtauh1hhjthhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUhhhX/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&]uh1hhjUhhhjfhMubh)}(hhh]j)}(hclkh]hclk}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]j)}jsclk_get_parentsbc.clk_get_parentasbuh1hhjUhhhjfhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjfhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjfhMubj)}(hclk_get_parenth]j)}(hjh]hclk_get_parent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjfhMubj/)}(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}]jc.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}(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.hjUhhhjfhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjfhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjNhhubj)}(hhh]j)}(h*get the parent clock source for this clockh]h*get the parent clock source for this clock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjfhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjljjljjjuh1hhhhjthNhNubj)}(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)}(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.hhMhjpubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]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:393: ./include/linux/clk.hhMhjpubj)}(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.hhMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_sys (C function) c.clk_get_syshNtauh1hhjthhhNhNubh)}(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 }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj"hMubh)}(hhh]j)}(hclkh]hclk}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j)}js clk_get_syssb c.clk_get_sysasbuh1hhjhhhj"hMubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj"hMubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMubj)}(h clk_get_sysh]j)}(hjRh]h clk_get_sys}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj"hMubj/)}(h((const char *dev_id, const char *con_id)h](j5)}(hconst char *dev_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)}(hdev_idh]hdev_id}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcon_idh]hcon_id}(hj0hhhNhNubah}(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-juh1hjjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hMhj hhubj)}(hhh]j)}(h&get a clock based upon the device nameh]h&get a clock based upon the device name}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhjthNhNubj)}(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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjvubj)}(hhh](j")}(h#``const char *dev_id`` device name h](j()}(h``const char *dev_id``h]j.)}(hjh]hconst char *dev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 nameh]h device name}(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`` 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.hhMhjubjD)}(hhh]j)}(h connection IDh]h connection ID}(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&]uh1jhjvubj)}(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.hhMhjvubj)}(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 }(hj%hhhNhNubj)}(h **dev_id**h]hdev_id}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh and }(hj%hhhNhNubj)}(h **con_id**h]hcon_id}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh 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.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjvubj)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjvubj)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_save_context (C function)c.clk_save_contexthNtauh1hhjthhhNhNubh)}(hhh](h)}(hint clk_save_context (void)h]h)}(hint clk_save_context(void)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_save_contexth]j)}(hclk_save_contexth]hclk_save_context}(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)}(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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjthNhNubj)}(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}(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``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'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj8ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMhj5ubah}(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:393: ./include/linux/clk.hhMhjubj)}(hSaves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.h]hSaves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ clk_restore_context (C function)c.clk_restore_contexthNtauh1hhjthhhNhNubh)}(hhh](h)}(hvoid clk_restore_context (void)h]h)}(hvoid clk_restore_context(void)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_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 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$restore clock context after poweroffh]h$restore clock context after poweroff}(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&]jjqjj=jj=jjjuh1hhhhjthNhNubj)}(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)}(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:393: ./include/linux/clk.hhMhjAubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjfh]hvoid}(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:393: ./include/linux/clk.hhMhj`ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(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&]uh1jhjAubj)}(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.hhMhjAubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_drop_range (C function)c.clk_drop_rangehNtauh1hhjthhhNhNubh)}(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}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]j)}jsj sbc.clk_drop_rangeasbuh1hhjubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjohhhNhNubah}(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}(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&]jjqjjjjjjjuh1hhhhjthNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **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.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)}(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&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&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_optional (C function)c.clk_get_optionalhNtauh1hhjthhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjchhhX/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&]uh1hhjchhhjthMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsclk_get_optionalsbc.clk_get_optionalasbuh1hhjchhhjthMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjthMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjthMubj)}(hclk_get_optionalh]j)}(hjh]hclk_get_optional}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjthMubj/)}(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.clk_get_optionalasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hcharh]hchar}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhjthMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhjthMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjthMhj\hhubj)}(hhh]j)}(hubah}(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+``old_ts`` jiffies at start of processing. h](j()}(h ``old_ts``h]j.)}(hj_h]hold_ts}(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:402: ./include/linux/rcupdate.hhKhjYubjD)}(hhh]j)}(hjiffies at start of processing.h]hjiffies at start of processing.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthKhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthKhjVubah}(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)}(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 }(hjhhhNhNubj)}(h **old_ts**h]hold_ts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj:ubj)}(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.hhMhj:ubj)}(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 hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌRCU_LOCKDEP_WARN (C macro)c.RCU_LOCKDEP_WARNhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRCU_LOCKDEP_WARNh]h)}(hRCU_LOCKDEP_WARNh]j)}(hRCU_LOCKDEP_WARNh]j)}(hj h]hRCU_LOCKDEP_WARN}(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?jjjuh1hhhhjhNhNubj)}(h``RCU_LOCKDEP_WARN (c, s)``h]j.)}(hjEh]hRCU_LOCKDEP_WARN (c, s)}(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.hhMhjhhubj<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}(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;8hjmhMhjhhubj)}(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)}(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:402: ./include/linux/rcupdate.hhMhjtubj)}(hhh](j")}(h``c`` condition to check 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)}(hcondition to checkh]hcondition to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.hhMhjubjD)}(hhh]j)}(hinformative messageh]hinformative message}(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&]uh1jhjtubj)}(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:402: ./include/linux/rcupdate.hhMhjtubj)}(hXOThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h]hXSThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd (“rcu: Reject RCU_LOCKDEP_WARN() false positives”) for more detail.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)lockdep_assert_in_rcu_read_lock (C macro)!c.lockdep_assert_in_rcu_read_lockhNtauh1hhjhhhNhNubh)}(hhh](h)}(hlockdep_assert_in_rcu_read_lockh]h)}(hlockdep_assert_in_rcu_read_lockh]j)}(hlockdep_assert_in_rcu_read_lockh]j)}(hjLh]hlockdep_assert_in_rcu_read_lock}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjJhhhjihMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjGhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjGhhhjihMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h&``lockdep_assert_in_rcu_read_lock ()``h]j.)}(hjh]h"lockdep_assert_in_rcu_read_lock ()}(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.hhMhjhhubj<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()}(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)}(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.hhMhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubh)}(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_bhhNtauh1hhjhhhNhNubh)}(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&]jjqjj1jj1jjjuh1hhhhjhNhNubj)}(h)``lockdep_assert_in_rcu_read_lock_bh ()``h]j.)}(hj7h]h%lockdep_assert_in_rcu_read_lock_bh ()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjhhubj<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()}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjQubah}(h]h ]h"]h$]h&]uh1j;8hjchMhjMubj)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjMubj)}(hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.h]hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjMubeh}(h]h ]h"]h$]h&]uh1j;8hjchMhjhhubh)}(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_schedhNtauh1hhjhhhNhNubh)}(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)}(hjh]h%lockdep_assert_in_rcu_read_lock_sched}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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.}(hj1hhhNhNubah}(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;8hjhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhjhhhNhNubh)}(hhh](h)}(hlockdep_assert_in_rcu_readerh]h)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]j)}(hjYh]hlockdep_assert_in_rcu_reader}(hjchhhNhNubah}(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-juh1hjjhjWhhhjvhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjvhMhjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjvhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h#``lockdep_assert_in_rcu_reader ()``h]j.)}(hjh]hlockdep_assert_in_rcu_reader ()}(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.hhMhjhhubj<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}(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 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.hhMhjubj)}(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.hhMhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌunrcu_pointer (C macro)c.unrcu_pointerhNtauh1hhjhhhNhNubh)}(hhh](h)}(h unrcu_pointerh]h)}(h unrcu_pointerh]j)}(h unrcu_pointerh]j)}(hjh]h unrcu_pointer}(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:402: ./include/linux/rcupdate.hhM ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj4hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj4hM ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjMjjMjjjuh1hhhhjhNhNubj)}(h``unrcu_pointer (p)``h]j.)}(hjSh]hunrcu_pointer (p)}(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.hhM hjhhubj<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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjiubah}(h]h ]h"]h$]h&]uh1j;8hj{hMhjhhubj)}(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)}(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")}(h1``p`` pointer needing to lose its __rcu property 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*pointer needing to lose its __rcu propertyh]h*pointer needing to lose its __rcu property}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌRCU_INITIALIZER (C macro)c.RCU_INITIALIZERhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRCU_INITIALIZERh]h)}(hRCU_INITIALIZERh]j)}(hRCU_INITIALIZERh]j)}(hj3h]hRCU_INITIALIZER}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM+ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjPhM+ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjPhM+hj.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.hhhjPhM+ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjijjijjjuh1hhhhjhNhNubj)}(h``RCU_INITIALIZER (v)``h]j.)}(hjoh]hRCU_INITIALIZER (v)}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM-hjhhubj<8)}(h7statically initialize an RCU-protected global variable h]j)}(h6statically initialize an RCU-protected global variableh]h6statically initialize an RCU-protected global variable}(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;8hjhM(hjhhubj)}(h@**Parameters** ``v`` The value to statically initialize with.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.``v`` The value to statically initialize with.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.hhM.hjubjD)}(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&]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Ռrcu_assign_pointer (C macro)c.rcu_assign_pointerhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_assign_pointerh]h)}(hrcu_assign_pointerh]j)}(hrcu_assign_pointerh]j)}(hjh]hrcu_assign_pointer}(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:402: ./include/linux/rcupdate.hhMLubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj4hMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hMLhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj4hMLubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjMjjMjjjuh1hhhhjhNhNubj)}(h``rcu_assign_pointer (p, v)``h]j.)}(hjSh]hrcu_assign_pointer (p, v)}(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.hhMNhjhhubj<8)}(h assign to RCU-protected pointer h]j)}(hassign to RCU-protected pointerh]hassign to RCU-protected pointer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM.hjiubah}(h]h ]h"]h$]h&]uh1j;8hj{hM.hjhhubj)}(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)}(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.hhM2hjubj)}(hhh](j")}(h``p`` pointer to assign to 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.hhM/hjubjD)}(hhh]j)}(hpointer to assign toh]hpointer to assign to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM/hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM/hjubj")}(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!hjhM0hjubeh}(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.hhM2hjubj)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM2hjubj)}(hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.h]hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM6hjubj)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM<hjubj)}(hXNote that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the "extra" evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.h]hXNote that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the “extra” evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMDhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_replace_pointer (C macro)c.rcu_replace_pointerhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_replace_pointerh]h)}(hrcu_replace_pointerh]j)}(hrcu_replace_pointerh]j)}(hjh]hrcu_replace_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.hhMbubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMbhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMbubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j.)}(hjh]h%rcu_replace_pointer (rcu_ptr, ptr, 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.hhMdhjhhubj<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;8hjhMXhjhhubj)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMYhj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMYhjubj")}(h``ptr`` regular pointer h](j()}(h``ptr``h]j.)}(hjPh]hptr}(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:402: ./include/linux/rcupdate.hhMZhjJubjD)}(hhh]j)}(hregular pointerh]hregular pointer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMZhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMZhjubj")}(hI``c`` the lockdep conditions under which the dereference will take place h](j()}(h``c``h]j.)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM[hjubjD)}(hhh]j)}(hBthe lockdep conditions under which the dereference will take placeh]hBthe lockdep conditions under which the dereference will take place}(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&]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}(hj*hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_access_pointerh]h)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]j)}(hj]h]hrcu_access_pointer}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``rcu_access_pointer (p)``h]j.)}(hjh]hrcu_access_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.hhMhjhhubj<8)}(h(fetch RCU pointer with no dereferencing h]j)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMjhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMjhjhhubj)}(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)}(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.hhMnhjubj)}(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&]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.hhMmhjubj)}(hXKReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().h]hXKReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMmhjubj)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMwhjubj)}(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}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereference_checkh]h)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]j)}(hjh]hrcu_dereference_check}(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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h ``rcu_dereference_check (p, c)``h]j.)}(hjh]hrcu_dereference_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.hhMhjhhubj<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;8hjhMhjhhubj)}(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}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(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.)}(hjNh]hc}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjHubjD)}(hhh]j)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMhjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchMhj 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: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.}(hjhhhNhNubah}(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:}(hjhhhNhNubah}(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(}(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&]uh1jhjhMhjubah}(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(}(hj"hhhNhNubh)}(h:c:type:`foo->lock `h]j.)}(hj,h]h foo->lock}(hj.hhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8foouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj"ubh) ||}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1j'hjIhMhjubjD)}(hhh]j)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hjWhhhNhNubh)}(h:c:type:`foo->usage `h]j.)}(hjah]h foo->usage}(hjchhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8foouh1hhjIhMhjWubh) == 0);}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjTubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjubah}(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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_dereference_bh_check (C macro)c.rcu_dereference_bh_checkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereference_bh_checkh]h)}(hrcu_dereference_bh_checkh]j)}(hrcu_dereference_bh_checkh]j)}(hjh]hrcu_dereference_bh_check}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<8)}(h'rcu_dereference_bh with debug checking h]j)}(h&rcu_dereference_bh with debug checkingh]h&rcu_dereference_bh 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.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hj.hMhjhhubj)}(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)}(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:402: ./include/linux/rcupdate.hhMhj5ubj)}(hhh](j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hjZh]hp}(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:402: ./include/linux/rcupdate.hhMhjTubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohMhjQubj")}(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!hjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(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.hhMhj5ubj)}(hXThis is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.h]hXThis is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%rcu_dereference_sched_check (C macro)c.rcu_dereference_sched_checkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereference_sched_checkh]h)}(hrcu_dereference_sched_checkh]j)}(hrcu_dereference_sched_checkh]j)}(hj h]hrcu_dereference_sched_check}(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-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&]jjqjjCjjCjjjuh1hhhhjhNhNubj)}(h&``rcu_dereference_sched_check (p, c)``h]j.)}(hjIh]h"rcu_dereference_sched_check (p, c)}(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.hhMhjhhubj<8)}(h*rcu_dereference_sched with debug checking h]j)}(h)rcu_dereference_sched with debug checkingh]h)rcu_dereference_sched with debug checking}(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;8hjqhMhjhhubj)}(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}(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.hhMhjxubj)}(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&]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.hhMhjxubj)}(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.hhMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#rcu_dereference_protected (C macro)c.rcu_dereference_protectedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereference_protectedh]h)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]j)}(hjPh]hrcu_dereference_protected}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjmhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjmhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h$``rcu_dereference_protected (p, c)``h]j.)}(hjh]h rcu_dereference_protected (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.hhMhjhhubj<8)}(h)fetch RCU pointer when updates prevented h]j)}(h(fetch RCU pointer when updates preventedh]h(fetch RCU pointer when updates prevented}(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;8hjhMhjhhubj)}(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)}(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}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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 }(hjjhhhNhNubj)}(h*not*h]hnot}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h]hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference (C macro)c.rcu_dereferencehNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereferenceh]h)}(hrcu_dereferenceh]j)}(hrcu_dereferenceh]j)}(hjh]hrcu_dereference}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``rcu_dereference (p)``h]j.)}(hjh]hrcu_dereference (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.hhMhjhhubj<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 hMhjhhubj)}(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.)}(hjD h]hp}(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: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&]uh1jhjY hMhjZ ubah}(h]h ]h"]h$]h&]uh1jChj> ubeh}(h]h ]h"]h$]h&]uh1j!hjY 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&]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().}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference_bh (C macro)c.rcu_dereference_bhhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereference_bhh]h)}(hrcu_dereference_bhh]j)}(hrcu_dereference_bhh]j)}(hj h]hrcu_dereference_bh}(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 jjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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" hMhjhhubj)}(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}(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)}(hhh]j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hjN h]hp}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjL ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjH ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc hMhjd ubah}(h]h ]h"]h$]h&]uh1jChjH ubeh}(h]h ]h"]h$]h&]uh1j!hjc hMhjE 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&]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.}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference_sched (C macro)c.rcu_dereference_schedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_dereference_schedh]h)}(hrcu_dereference_schedh]j)}(hrcu_dereference_schedh]j)}(hj h]hrcu_dereference_sched}(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 jjjuh1hhhhjhNhNubj)}(h``rcu_dereference_sched (p)``h]j.)}(hj h]hrcu_dereference_sched (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.hhMhjhhubj<8)}(h4fetch RCU-sched-protected pointer for dereferencing h]j)}(h3fetch RCU-sched-protected pointer for dereferencingh]h3fetch RCU-sched-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, hMhjhhubj)}(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)}(hj9 h]h Parameters}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7 ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj3 ubj)}(hhh]j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hjX h]hp}(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:402: ./include/linux/rcupdate.hhMhjR ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm hMhjn ubah}(h]h ]h"]h$]h&]uh1jChjR ubeh}(h]h ]h"]h$]h&]uh1j!hjm hMhjO ubah}(h]h ]h"]h$]h&]uh1jhj3 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.hhMhj3 ubj)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj3 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_pointer_handoff (C macro)c.rcu_pointer_handoffhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_pointer_handoffh]h)}(hrcu_pointer_handoffh]j)}(hrcu_pointer_handoffh]j)}(hj h]hrcu_pointer_handoff}(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 jjjuh1hhhhjhNhNubj)}(h``rcu_pointer_handoff (p)``h]j.)}(hj h]hrcu_pointer_handoff (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.hhMhjhhubj<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}(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;8hj6 hMhjhhubj)}(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)}(hjC h]h Parameters}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj= ubj)}(hhh]j")}(h``p`` The pointer to hand off h](j()}(h``p``h]j.)}(hjb h]hp}(hjd 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)}(hThe pointer to hand offh]hThe pointer to hand off}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw hMhjx ubah}(h]h ]h"]h$]h&]uh1jChj\ ubeh}(h]h ]h"]h$]h&]uh1j!hjw hMhjY 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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj= ubj)}(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:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj= ubjo)}(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();}hj sbah}(h]h ]h"]h$]h&]j,j-uh1jnh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM hj= ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_lock (C function)c.rcu_read_lockhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid rcu_read_lock (void)h]h)}(hvoid rcu_read_lock(void)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMEubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMEubj)}(h rcu_read_lockh]j)}(h rcu_read_lockh]h rcu_read_lock}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hMEubj/)}(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 hMEubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMEubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMEhj hhubj)}(hhh]j)}(h7mark the beginning of an RCU read-side critical sectionh]h7mark the beginning of an RCU read-side critical section}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjU hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMEubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjp jjp jjjuh1hhhhjhNhNubj)}(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)}(hjz h]h Parameters}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjt 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'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM hj ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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&]uh1jhjt 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.hhM"hjt 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjt 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM"hjt 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&hjt 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.hhM2hjt 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!}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM6hjt 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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM;hjt ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_unlock (C function)c.rcu_read_unlockhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid rcu_read_unlock (void)h]h)}(hvoid rcu_read_unlock(void)h](h)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMcubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhjrhMcubj)}(hrcu_read_unlockh]j)}(hrcu_read_unlockh]hrcu_read_unlock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhjrhMcubj/)}(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`hhhjrhMcubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj\hhhjrhMcubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhMchjYhhubj)}(hhh]j)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhMcubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(hj h]hvoid}(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.hhM`hjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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`hjubah}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMbhjubj)}(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.}(hjlhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_lock_bh (C function)c.rcu_read_lock_bhhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid rcu_read_lock_bh (void)h]h)}(hvoid rcu_read_lock_bh(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.hhMzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMzubj)}(hrcu_read_lock_bhh]j)}(hrcu_read_lock_bhh]hrcu_read_lock_bh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMzubj/)}(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.hjhhhjhMzubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMzhjhhubj)}(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&]uh1jhjhhhjhMzubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.hhMqhjubj)}(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'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMthj=ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMthjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhMthj:ubah}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMvhjubj)}(hX7This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated.h]hX7This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_unlock_bh (C function)c.rcu_read_unlock_bhhNtauh1hhjhhhNhNubh)}(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&]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_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 hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(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)}(h4marks the end of a softirq-only RCU critical sectionh]h4marks the end of a softirq-only RCU critical section}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjQjjQjjjuh1hhhhjhNhNubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjUubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjzh]hvoid}(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:402: ./include/linux/rcupdate.hhMhjtubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjUubj)}(h,See rcu_read_lock_bh() for more information.h]h,See rcu_read_lock_bh() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ rcu_read_lock_sched (C function)c.rcu_read_lock_schedhNtauh1hhjhhhNhNubh)}(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 }(hj hhhNhNubah}(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}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(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)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjhNhNubj)}(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)}(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``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.hhMhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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)}(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)}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_read_unlock_sched (C function)c.rcu_read_unlock_schedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h!void rcu_read_unlock_sched (void)h]h)}(h void rcu_read_unlock_sched(void)h](h)}(hvoidh]hvoid}(hj1hhhNhNubah}(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 }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-hhhj?hMubj)}(hrcu_read_unlock_schedh]j)}(hrcu_read_unlock_schedh]hrcu_read_unlock_sched}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj-hhhj?hMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubah}(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/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() 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.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'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(h/See rcu_read_lock_sched() for more information.h]h/See rcu_read_lock_sched() 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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌRCU_INIT_POINTER (C macro)c.RCU_INIT_POINTERhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRCU_INIT_POINTERh]h)}(hRCU_INIT_POINTERh]j)}(hRCU_INIT_POINTERh]j)}(hjSh]hRCU_INIT_POINTER}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjphMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjphMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``RCU_INIT_POINTER (p, v)``h]j.)}(hjh]hRCU_INIT_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.hhMhjhhubj<8)}(h$initialize an RCU protected pointer h]j)}(h#initialize an RCU protected pointerh]h#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;8hjhMhjhhubj)}(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)}(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.)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhjubeh}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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:}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]j)}(hjh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(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&]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 }(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&]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.hhMhjubj)}(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.)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]jj)jhjjuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjubj)}(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()!!!}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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 }(hjchhhNhNubj)}(h*after*h]hafter}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhX you have completely initialized the reader-accessible portions of the linked structure.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!RCU_POINTER_INITIALIZER (C macro)c.RCU_POINTER_INITIALIZERhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRCU_POINTER_INITIALIZERh]h)}(hRCU_POINTER_INITIALIZERh]j)}(hRCU_POINTER_INITIALIZERh]j)}(hjh]hRCU_POINTER_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.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"``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.hhMhjhhubj<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;8hjhMhjhhubj)}(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}(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.hhMhjubj)}(hhh](j")}(h%``p`` The pointer to be initialized. h](j()}(h``p``h]j.)}(hj=h]hp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj7ubjD)}(hhh]j)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhj4ubj")}(h/``v`` The value to initialized the pointer to. h](j()}(h``v``h]j.)}(hjvh]hv}(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:402: ./include/linux/rcupdate.hhMhjpubjD)}(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&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj4ubeh}(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.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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfree_rcu (C macro) c.kfree_rcuhNtauh1hhjhhhNhNubh)}(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-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&jjjuh1hhhhjhNhNubj)}(h``kfree_rcu (ptr, rhf)``h]j.)}(hj,h]hkfree_rcu (ptr, rhf)}(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.hhMhjhhubj<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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjBubah}(h]h ]h"]h$]h&]uh1j;8hjThMhjhhubj)}(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)}(hjah]h Parameters}(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.hhMhj[ubj)}(hhh](j")}(h:``ptr`` pointer to kfree for double-argument invocations. h](j()}(h``ptr``h]j.)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjzubjD)}(hhh]j)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjwubj")}(hD``rhf`` the name of the struct rcu_head within the type of **ptr**. h](j()}(h``rhf``h]j.)}(hjh]hrhf}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjwubeh}(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.}(hj+hhhNhNubah}(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().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj[ubj)}(hh]hstruct}(hj)hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjImodnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_head_initasbuh1hhj%ubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hrhph]hrhp}(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.hjhhhjhMbubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMbhjhhubj)}(hhh]j)}(h1Initialize rcu_head for rcu_head_after_call_rcu()h]h1Initialize rcu_head for rcu_head_after_call_rcu()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMbubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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?``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&]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.hhM\hjubj)}(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.}(hj>hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$rcu_head_after_call_rcu (C function)c.rcu_head_after_call_rcuhNtauh1hhjhhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMtubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjzhMtubj)}(hrcu_head_after_call_rcuh]j)}(hrcu_head_after_call_rcuh]hrcu_head_after_call_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjzhMtubj/)}(h((struct rcu_head *rhp, rcu_callback_t f)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.rcu_head_after_call_rcuasbuh1hhjubh)}(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 fh](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jc.rcu_head_after_call_rcuasbuh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfh]hf}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjzhMtubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhjzhMtubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMthjbhhubj)}(hhh]j)}(h,Has this rcu_head been passed to call_rcu()?h]h,Has this rcu_head been passed to call_rcu()?}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhhjqhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjzhMtubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` The rcu_head structure to test. ``rcu_callback_t f`` The function passed to call_rcu() along with **rhp**. **Description** Returns **true** if the **rhp** has been passed to call_rcu() with **func**, and **false** otherwise. Emits a warning in any other case, including the case where **rhp** has already been invoked after a grace period. Calls to this function must not race with callback invocation. One way to avoid such races is to enclose the call to rcu_head_after_call_rcu() in an RCU read-side critical section that includes a read-side fetch of the pointer to the structure containing **rhp**.h](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.hhMlhjubj)}(hhh](j")}(h9``struct rcu_head *rhp`` The rcu_head structure to test. h](j()}(h``struct rcu_head *rhp``h]j.)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMihjubjD)}(hhh]j)}(hThe rcu_head structure to test.h]hThe rcu_head structure to test.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMihjubj")}(hK``rcu_callback_t f`` The function passed to call_rcu() along with **rhp**. h](j()}(h``rcu_callback_t f``h]j.)}(hjh]hrcu_callback_t f}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMjhjubjD)}(hhh]j)}(h5The function passed to call_rcu() along with **rhp**.h](h-The function passed to call_rcu() along with }(hjhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMjhjubeh}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMlhjubj)}(hXReturns **true** if the **rhp** has been passed to call_rcu() with **func**, and **false** otherwise. Emits a warning in any other case, including the case where **rhp** has already been invoked after a grace period. Calls to this function must not race with callback invocation. One way to avoid such races is to enclose the call to rcu_head_after_call_rcu() in an RCU read-side critical section that includes a read-side fetch of the pointer to the structure containing **rhp**.h](hReturns }(hjQhhhNhNubj)}(h**true**h]htrue}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh if the }(hjQhhhNhNubj)}(h**rhp**h]hrhp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh$ has been passed to call_rcu() with }(hjQhhhNhNubj)}(h**func**h]hfunc}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh, and }(hjQhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhI otherwise. Emits a warning in any other case, including the case where }(hjQhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhX0 has already been invoked after a grace period. Calls to this function must not race with callback invocation. One way to avoid such races is to enclose the call to rcu_head_after_call_rcu() in an RCU read-side critical section that includes a read-side fetch of the pointer to the structure containing }(hjQhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_softirq_qs (C function)c.rcu_softirq_qshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid rcu_softirq_qs (void)h]h)}(hvoid rcu_softirq_qs(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hrcu_softirq_qsh]j)}(hrcu_softirq_qsh]hrcu_softirq_qs}(hj hhhNhNubah}(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)}(h;Provide a set of RCU quiescent states in softirq processingh]h;Provide a set of RCU quiescent states in softirq processing}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhjhNhNubj)}(hX;**Parameters** ``void`` no arguments **Description** Mark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler. Note that from RCU's viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code:: local_bh_disable(); do_something(); rcu_softirq_qs(); // A do_something_else(); local_bh_enable(); // B A call to synchronize_rcu() that began concurrently with the call to do_something() would be guaranteed to wait only until execution reached statement A. Without that rcu_softirq_qs(), that same synchronize_rcu() would instead be guaranteed to wait until execution reached statement B.h](j)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjoubj)}(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'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjubjD)}(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&]uh1jhjoubj)}(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:404: ./kernel/rcu/tree.chKhjoubj)}(hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.h]hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjoubj)}(hNote that from RCU's viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code::h]hNote that from RCU’s viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjoubjo)}(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.chKhjoubj)}(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.chKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,rcu_watching_snap_stopped_since (C function)!c.rcu_watching_snap_stopped_sincehNtauh1hhjhhhNhNubh)}(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}(hjA 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 }(hjO hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj= hhhjN hM/ubj)}(hrcu_watching_snap_stopped_sinceh]j)}(hrcu_watching_snap_stopped_sinceh]hrcu_watching_snap_stopped_since}(hja hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj] ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj= hhhjN 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:hjy ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjy ubh)}(hhh]j)}(hrcu_datah]hrcu_data}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjc sb!c.rcu_watching_snap_stopped_sinceasbuh1hhjy 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)}(hrdph]hrdp}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hju 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-uh1j4hju ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj= hhhjN hM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9 hhhjN hM/ubah}(h]j4 ah ](jjeh"]h$]h&]jj)jhuh1hhjN hM/hj6 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 }(hj5!hhhNhNubj)}(h**snap**h]hsnap}(hj=!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5!ubh?}(hj5!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM#hj2!hhubah}(h]h ]h"]h$]h&]uh1jhj6 hhhjN hM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_!jj_!jjjuh1hhhhjhNhNubj)}(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)}(hji!h]h Parameters}(hjk!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg!ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM'hjc!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.)}(hj!h]hstruct rcu_data *rdp}(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)}(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.}(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")}(hH``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. h](j()}(h ``int snap``h]j.)}(hj!h]hint snap}(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)}(h:rcu_watching snapshot taken when the CPU wasn't in an EQS.h]h"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)hjc!ubj)}(hJThis is meant to be used in a loop waiting for a CPU to go through an EQS.h]hJThis is meant to be used in a loop waiting for a CPU to go through an EQS.}(hjW"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM-hjc!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'rcu_is_cpu_rrupt_from_idle (C function)c.rcu_is_cpu_rrupt_from_idlehNtauh1hhjhhhNhNubh)}(hhh](h)}(h%int rcu_is_cpu_rrupt_from_idle (void)h]h)}(h$int rcu_is_cpu_rrupt_from_idle(void)h](h)}(hinth]hint}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMqubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj"hMqubj)}(hrcu_is_cpu_rrupt_from_idleh]j)}(hrcu_is_cpu_rrupt_from_idleh]hrcu_is_cpu_rrupt_from_idle}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"hhhj"hMqubj/)}(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"hMqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~"hhhj"hMqubah}(h]jy"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hMqhj{"hhubj)}(hhh]j)}(hsee if 'interrupted' from idleh]h"see if ‘interrupted’ from idle}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMjhj"hhubah}(h]h ]h"]h$]h&]uh1jhj{"hhhj"hMqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj#jj#jjjuh1hhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** If the current CPU is idle and running at a first-level (not nested) interrupt, or directly, from idle, return true. The caller must have at least disabled IRQs.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.chMnhj #ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj.#h]hvoid}(hj0#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.chMqhj(#ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjG#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC#hMqhjD#ubah}(h]h ]h"]h$]h&]uh1jChj(#ubeh}(h]h ]h"]h$]h&]uh1j!hjC#hMqhj%#ubah}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMshj #ubj)}(htIf the current CPU is idle and running at a first-level (not nested) interrupt, or directly, from idle, return true.h]htIf the current CPU is idle and running at a first-level (not nested) interrupt, or directly, from idle, return true.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMkhj #ubj)}(h,The caller must have at least disabled IRQs.h]h,The caller must have at least disabled IRQs.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMnhj #ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'rcu_irq_exit_check_preempt (C function)c.rcu_irq_exit_check_preempthNtauh1hhjhhhNhNubh)}(hhh](h)}(h&void rcu_irq_exit_check_preempt (void)h]h)}(h%void rcu_irq_exit_check_preempt(void)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)}(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 hj#hhhj#hM]ubj/)}(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#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$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.chM[hj!$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hM]ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<$jj<$jjjuh1hhhhjhNhNubj)}(h'**Parameters** ``void`` no argumentsh](j)}(h**Parameters**h]j)}(hjF$h]h Parameters}(hjH$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD$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``void`` no argumentsh](j()}(h``void``h]j.)}(hje$h]hvoid}(hjg$hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjc$ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMahj_$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.chMbhj{$ubah}(h]h ]h"]h$]h&]uh1jChj_$ubeh}(h]h ]h"]h$]h&]uh1j!hjz$hMahj\$ubah}(h]h ]h"]h$]h&]uh1jhj@$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'__rcu_irq_enter_check_tick (C function)c.__rcu_irq_enter_check_tickhNtauh1hhjhhhNhNubh)}(hhh](h)}(h&void __rcu_irq_enter_check_tick (void)h]h)}(h%void __rcu_irq_enter_check_tick(void)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)}(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 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)}(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.chMmhj#%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>%jj>%jjjuh1hhhhjhNhNubj)}(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)}(hjH%h]h Parameters}(hjJ%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF%ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMqhjB%ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjg%h]hvoid}(hji%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hje%ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMthja%ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|%hMthj}%ubah}(h]h ]h"]h$]h&]uh1jChja%ubeh}(h]h ]h"]h$]h&]uh1j!hj|%hMthj^%ubah}(h]h ]h"]h$]h&]uh1jhjB%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.chMvhjB%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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMnhjB%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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMvhjB%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.chMhjB%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_is_watching (C function)c.rcu_is_watchinghNtauh1hhjhhhNhNubh)}(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}(hj7&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3&ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&hhhj&hMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjS&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjO&ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjK&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.chMhjz&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj&hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj&jj&jjjuh1hhhhjhNhNubj)}(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)}(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``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.chMhj&ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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:404: ./kernel/rcu/tree.chMhj&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.chMhj&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 }(hjT'hhhNhNubj)}(h**true**h]htrue}(hj\'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT'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 }(hjT'hhhNhNubj)}(h **false**h]hfalse}(hjn'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT'ubh.}(hjT'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj&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.}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_rcu_hurry (C function)c.call_rcu_hurryhNtauh1hhjhhhNhNubh)}(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.chM> ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hM> 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'hM> 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 }(hj1(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hj?(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hheadh]hhead}(hjL(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}(hjh(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhje(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjj(modnameN classnameNjwjz)}j}]j-(c.call_rcu_hurryasbuh1hhja(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja(ubj)}(hfunch]hfunc}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja(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)}(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.chM+ hj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hM> ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjhNhNubj)}(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.)}(hj8)h]hrcu_callback_t func}(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.chM0 hj2)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}(hjQ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM)hM0 hjN)ubah}(h]h ]h"]h$]h&]uh1jChj2)ubeh}(h]h ]h"]h$]h&]uh1j!hjM)hM0 hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Description**h]j)}(hjs)h]h Description}(hju)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq)ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM2 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.chM2 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.chM6 hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_rcu (C function) c.call_rcuhNtauh1hhjhhhNhNubh)}(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.chM ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj)hM 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)hM 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 }(hjB*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjP*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)ubj5)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjy*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjv*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{*modnameN classnameNjwjz)}j}]j>* c.call_rcuasbuh1hhjr*ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr*ubj)}(hfunch]hfunc}(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)}(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.chMH hj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhjhNhNubj)}(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.chML 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.chMM 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%+hMM hj&+ubah}(h]h ]h"]h$]h&]uh1jChj +ubeh}(h]h ]h"]h$]h&]uh1j!hj%+hMM 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.)}(hjI+h]hrcu_callback_t func}(hjK+hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjG+ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMN hjC+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}(hjb+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^+hMN hj_+ubah}(h]h ]h"]h$]h&]uh1jChjC+ubeh}(h]h ]h"]h$]h&]uh1j!hj^+hMN 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMP 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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMP 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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMV 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.}(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)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMc 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).}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMo 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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMv 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().}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMy hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsynchronize_rcu (C function)c.synchronize_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid synchronize_rcu (void)h]h)}(hvoid synchronize_rcu(void)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 }(hj2,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,hhhj1,hM ubj)}(hsynchronize_rcuh]j)}(hsynchronize_rcuh]hsynchronize_rcu}(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(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj`,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\,ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjX,ubah}(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&wait until a grace period has elapsed.h]h&wait until a grace period has elapsed.}(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,hhhj1,hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,jj,jjjuh1hhhhjhNhNubj)}(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)}(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``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.chM hj,ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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)}(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.}(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)}(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+-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj,ubj)}(hXNote that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXNote that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hj:-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj,ubj)}(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).}(hjI-hhhNhNubah}(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.}(hjX-hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/get_completed_synchronize_rcu_full (C function)$c.get_completed_synchronize_rcu_fullhNtauh1hhjhhhNhNubh)}(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}(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)}(h"get_completed_synchronize_rcu_fullh]j)}(h"get_completed_synchronize_rcu_fullh]h"get_completed_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}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-modnameN classnameNjwjz)}j}]j)}jsj-sb$c.get_completed_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-hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhj-hM ubah}(h]jz-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hM hj|-hhubj)}(hhh]j)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hjG.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hjD.hhubah}(h]h ]h"]h$]h&]uh1jhj|-hhhj-hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_.jj_.jjjuh1hhhhjhNhNubj)}(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)}(hji.h]h Parameters}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg.ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hjc.ubj)}(hhh]j")}(h<``struct rcu_gp_oldstate *rgosp`` Place to put state cookie 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)}(hPlace to put state cookieh]hPlace to put state cookie}(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&]uh1jhjc.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 hjc.ubj)}(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 }(hj.hhhNhNubj)}(h **rgosp**h]hrgosp}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hjc.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&get_state_synchronize_rcu (C function)c.get_state_synchronize_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.unsigned long get_state_synchronize_rcu (void)h]h)}(h-unsigned long get_state_synchronize_rcu(void)h](h)}(hunsignedh]hunsigned}(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! ubh)}(hlongh]hlong}(hj7/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhj(/hM! ubh)}(h h]h }(hjE/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhj(/hM! ubj)}(hget_state_synchronize_rcuh]j)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjW/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjS/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhj(/hM! ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjs/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo/ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjk/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)}(hSnapshot current RCU stateh]hSnapshot current RCU 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/hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj(/hM! ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/jj/jjjuh1hhhhjhNhNubj)}(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)}(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``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.chM" hj/ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM$ hj/ubj)}(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/0hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+get_state_synchronize_rcu_full (C function) c.get_state_synchronize_rcu_fullhNtauh1hhjhhhNhNubh)}(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}(hj^0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ0hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM< ubh)}(h h]h }(hjm0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ0hhhjl0hM< ubj)}(hget_state_synchronize_rcu_fullh]j)}(hget_state_synchronize_rcu_fullh]hget_state_synchronize_rcu_full}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZ0hhhjl0hM< ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](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)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j)}jsj0sb c.get_state_synchronize_rcu_fullasbuh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hrgosph]hrgosp}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjZ0hhhjl0hM< ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjV0hhhjl0hM< ubah}(h]jQ0ah ](jjeh"]h$]h&]jj)jhuh1hhjl0hM< hjS0hhubj)}(hhh]j)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(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&]uh1jhjS0hhhjl0hM< ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj61jj61jjjuh1hhhhjhNhNubj)}(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@1h]h Parameters}(hjB1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>1ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM1 hj:1ubj)}(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_1h]hstruct rcu_gp_oldstate *rgosp}(hja1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]1ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM. hjY1ubjD)}(hhh]j)}(h>location to place combined normal/expedited grace-period stateh]h>location to place combined normal/expedited grace-period state}(hjx1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt1hM. hju1ubah}(h]h ]h"]h$]h&]uh1jChjY1ubeh}(h]h ]h"]h$]h&]uh1j!hjt1hM. hjV1ubah}(h]h ]h"]h$]h&]uh1jhj:1ubj)}(h**Description**h]j)}(hj1h]h Description}(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.chM0 hj:1ubj)}(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 }(hj1hhhNhNubj)}(h **rgosp**h]hrgosp}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhX. 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.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM0 hj:1ubj)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM9 hj:1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'start_poll_synchronize_rcu (C function)c.start_poll_synchronize_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h/unsigned long start_poll_synchronize_rcu (void)h]h)}(h.unsigned long start_poll_synchronize_rcu(void)h](h)}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMq ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj2hMq ubh)}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhj2hMq ubh)}(h h]h }(hj+2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj2hMq ubj)}(hstart_poll_synchronize_rcuh]j)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hj=2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj92ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhj2hMq ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjY2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU2ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQ2ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhj2hMq ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhj2hMq ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMq hj1hhubj)}(hhh]j)}(h#Snapshot and start RCU grace periodh]h#Snapshot and start RCU grace period}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMi hj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj2hMq ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2jj2jjjuh1hhhhjhNhNubj)}(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)}(hj2h]h Parameters}(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.chMm hj2ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj2h]hvoid}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMp hj2ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMp hj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMp hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(h**Description**h]j)}(hj2h]h Description}(hj3hhhNhNubah}(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.chMr hj2ubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMj hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhjhhhNhNubh)}(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}(hjD3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@3hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hjS3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@3hhhjR3hM ubj)}(hstart_poll_synchronize_rcu_fullh]j)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hje3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@3hhhjR3hM ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}3ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j)}jsjg3sb!c.start_poll_synchronize_rcu_fullasbuh1hhj}3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}3ubj)}(hrgosph]hrgosp}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjy3ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj@3hhhjR3hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj<3hhhjR3hM ubah}(h]j73ah ](jjeh"]h$]h&]jj)jhuh1hhjR3hM hj93hhubj)}(hhh]j)}(h/Take a full snapshot and start RCU grace periodh]h/Take a full snapshot and start RCU grace period}(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&]uh1jhj93hhhjR3hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4jj4jjjuh1hhhhjhNhNubj)}(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&4h]h Parameters}(hj(4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$4ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj 4ubj)}(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.)}(hjE4h]hstruct rcu_gp_oldstate *rgosp}(hjG4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjC4ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM| hj?4ubjD)}(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^4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ4hM| hj[4ubah}(h]h ]h"]h$]h&]uh1jChj?4ubeh}(h]h ]h"]h$]h&]uh1j!hjZ4hM| hj<4ubah}(h]h ]h"]h$]h&]uh1jhj 4ubj)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~4ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM~ hj 4ubj)}(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 }(hj4hhhNhNubj)}(h ***rgos**h]h*rgos}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhXK. 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.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM~ hj 4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'poll_state_synchronize_rcu (C function)c.poll_state_synchronize_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8bool poll_state_synchronize_rcu (unsigned long oldstate)h]h)}(h7bool poll_state_synchronize_rcu(unsigned long oldstate)h](h)}(hjoh]hbool}(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 }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhj4hM ubj)}(hpoll_state_synchronize_rcuh]j)}(hpoll_state_synchronize_rcuh]hpoll_state_synchronize_rcu}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4hhhj4hM ubj/)}(h(unsigned long oldstate)h]j5)}(hunsigned long oldstateh](h)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hj!5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hlongh]hlong}(hj/5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hj=5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(holdstateh]holdstate}(hjK5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj 5ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhj4hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj4hhhj4hM ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hM hj4hhubj)}(hhh]j)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hju5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hjr5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhjhNhNubj)}(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)}(hj5h]h Parameters}(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.chM hj5ubj)}(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.)}(hj5h]hunsigned long oldstate}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj5ubjD)}(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()}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubj)}(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.chM hj5ubj)}(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 }(hj6hhhNhNubj)}(h **oldstate**h]holdstate}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh was obtained, return }(hj6hhhNhNubj)}(h**true**h]htrue}(hj!6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh, otherwise return }(hj6hhhNhNubj)}(h **false**h]hfalse}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh. If }(hj6hhhNhNubj)}(h **false**h]hfalse}(hjE6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hj6hhhNhNubj)}(h**true**h]htrue}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hj6hhhNhNubj)}(h **oldstate**h]holdstate}(hji6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj5ubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj5ubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj5ubj)}(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 }(hj6hhhNhNubj)}(h **oldstate**h]holdstate}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh0, and that returned at the end of this function.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,poll_state_synchronize_rcu_full (C function)!c.poll_state_synchronize_rcu_fullhNtauh1hhjhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj6hM ubj)}(hpoll_state_synchronize_rcu_fullh]j)}(hpoll_state_synchronize_rcu_fullh]hpoll_state_synchronize_rcu_full}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6hhhj6hM ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hj*7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj;7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj87ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=7modnameN classnameNjwjz)}j}]j)}jsj7sb!c.poll_state_synchronize_rcu_fullasbuh1hhj7ubh)}(h h]h }(hj[7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hji7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hrgosph]hrgosp}(hjv7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj6hhhj6hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhj6hM ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hM hj6hhubj)}(hhh]j)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhjhNhNubj)}(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)}(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.chM hj7ubj)}(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.)}(hj7h]hstruct rcu_gp_oldstate *rgosp}(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.chM hj7ubjD)}(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()}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(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:404: ./kernel/rcu/tree.chM hj7ubj)}(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 }(hj28hhhNhNubj)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28ubh, otherwise return }(hj28hhhNhNubj)}(h **false**h]hfalse}(hjL8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28ubh. If }(hj28hhhNhNubj)}(h **false**h]hfalse}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28ubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hj28hhhNhNubj)}(h**true**h]htrue}(hjp8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28ubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hj28hhhNhNubj)}(h **rgosp**h]hrgosp}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28ubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hj28hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj7ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj7ubj)}(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 }(hj8hhhNhNubj)}(h **rgosp**h]hrgosp}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhX, 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 }(hj8hhhNhNubj)}(h**true**h]htrue}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhF, then the root rcu_node structure is the one that needs to be polled.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!cond_synchronize_rcu (C function)c.cond_synchronize_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void cond_synchronize_rcu (unsigned long oldstate)h]h)}(h1void cond_synchronize_rcu(unsigned long oldstate)h](h)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj 9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj 9hM ubj)}(hcond_synchronize_rcuh]j)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj8hhhj 9hM ubj/)}(h(unsigned long oldstate)h]j5)}(hunsigned long oldstateh](h)}(hunsignedh]hunsigned}(hj:9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj69ubh)}(h h]h }(hjH9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj69ubh)}(hlongh]hlong}(hjV9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj69ubh)}(h h]h }(hjd9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj69ubj)}(holdstateh]holdstate}(hjr9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj69ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj29ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj8hhhj 9hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhj 9hM ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj 9hM hj8hhubj)}(hhh]j)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an 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 hj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj 9hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhjhNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj9ubj)}(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.)}(hj9h]hunsigned long oldstate}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj9ubjD)}(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()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hM hj9ubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hj9hM hj9ubah}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj9ubj)}(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 hj9ubj)}(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.chM hj9ubj)}(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 }(hjL:hhhNhNubj)}(h **oldstate**h]holdstate}(hjT:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL:ubh/ and that returned at the end of this function.}(hjL:hhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&cond_synchronize_rcu_full (C function)c.cond_synchronize_rcu_fullhNtauh1hhjhhhNhNubh)}(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}(hjM;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjJ;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjje;jje;jjjuh1hhhhjhNhNubj)}(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)}(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``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&]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.chMhji;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.chMhji;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.chM hji;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<hhhNhNubj)}(h **rgosp**h]hrgosp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh/ and that returned at the end of this function.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhji;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_barrier (C function) c.rcu_barrierhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid rcu_barrier (void)h]h)}(hvoid rcu_barrier(void)h](h)}(hvoidh]hvoid}(hjP<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjL<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&]uh1hhjL<hhhj^<hMubj)}(h rcu_barrierh]j)}(h rcu_barrierh]h rcu_barrier}(hjq<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm<ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjL<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.hjL<hhhj^<hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjH<hhhj^<hMubah}(h]jC<ah ](jjeh"]h$]h&]jj)jhuh1hhj^<hMhjE<hhubj)}(hhh]j)}(h7Wait until all in-flight call_rcu() callbacks complete.h]h7Wait until all in-flight call_rcu() callbacks complete.}(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&]uh1jhjE<hhhj^<hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhjhNhNubj)}(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)}(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``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.chMhj<ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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)}(hj3=h]h Description}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1=ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj<ubj)}(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.}(hjI=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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhjhhhNhNubh)}(hhh](h)}(h!void rcu_barrier_throttled (void)h]h)}(h void rcu_barrier_throttled(void)h](h)}(hvoidh]hvoid}(hjx=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt=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&]uh1hhjt=hhhj=hM(ubj)}(hrcu_barrier_throttledh]j)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjt=hhhj=hM(ubj/)}(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.hjt=hhhj=hM(ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjp=hhhj=hM(ubah}(h]jk=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hM(hjm=hhubj)}(hhh]j)}(h-Do rcu_barrier(), but limit to one per secondh]h-Do rcu_barrier(), but limit to one per second}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhjm=hhhj=hM(ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=jj=jjjuh1hhhhjhNhNubj)}(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)}(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``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.chMhj>ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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>ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(h**Description**h]j)}(hj[>h]h Description}(hj]>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY>ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj=ubj)}(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.}(hjq>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj=ubj)}(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>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj=ubj)}(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!}(hj>hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&synchronize_rcu_expedited (C function)c.synchronize_rcu_expeditedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void synchronize_rcu_expedited (void)h]h)}(h$void synchronize_rcu_expedited(void)h](h)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhj>hMubj)}(hsynchronize_rcu_expeditedh]j)}(hsynchronize_rcu_expeditedh]hsynchronize_rcu_expedited}(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)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hj%?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj"?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=?jj=?jjjuh1hhhhjhNhNubj)}(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)}(hjG?h]h Parameters}(hjI?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE?ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjA?ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjf?h]hvoid}(hjh?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjd?ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj`?ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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&]uh1jhjA?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:406: ./kernel/rcu/tree_exp.hhMhjA?ubj)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjA?ubj)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjA?ubj)}(hKThis has the same semantics as (but is more brutal than) synchronize_rcu().h]hKThis has the same semantics as (but is more brutal than) synchronize_rcu().}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjA?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]h)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](h)}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM$ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj@hM$ubh)}(hlongh]hlong}(hj!@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)}(h$start_poll_synchronize_rcu_expeditedh]j)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hjA@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhj@hM$ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj]@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY@ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjU@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;Snapshot current RCU state and start expedited grace periodh]h;Snapshot current RCU state and start expedited grace period}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj@hM$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhjhNhNubj)}(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)}(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:406: ./kernel/rcu/tree_exp.hhM hj@ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj@h]hvoid}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM#hj@ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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)}(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:406: ./kernel/rcu/tree_exp.hhM%hj@ubj)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhjhhhNhNubh)}(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}(hjHAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDAhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMHubh)}(h h]h }(hjWAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDAhhhjVAhMHubj)}(h)start_poll_synchronize_rcu_expedited_fullh]j)}(h)start_poll_synchronize_rcu_expedited_fullh]h)start_poll_synchronize_rcu_expedited_full}(hjiAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDAhhhjVAhMHubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](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)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjkAsb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhjAubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hrgosph]hrgosp}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}Aubah}(h]h ]h"]h$]h&]j,j-uh1j.hjDAhhhjVAhMHubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@AhhhjVAhMHubah}(h]j;Aah ](jjeh"]h$]h&]jj)jhuh1hhjVAhMHhj=Ahhubj)}(hhh]j)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM>hjBhhubah}(h]h ]h"]h$]h&]uh1jhj=AhhhjVAhMHubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj Bjj Bjjjuh1hhhhjhNhNubj)}(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*Bh]h Parameters}(hj,BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Bubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMBhj$Bubj)}(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.)}(hjIBh]hstruct rcu_gp_oldstate *rgosp}(hjKBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGBubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM?hjCBubjD)}(hhh]j)}(h+Place to put snapshot of grace-period stateh]h+Place to put snapshot of grace-period state}(hjbBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^BhM?hj_Bubah}(h]h ]h"]h$]h&]uh1jChjCBubeh}(h]h ]h"]h$]h&]uh1j!hj^BhM?hj@Bubah}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMAhj$Bubj)}(hXyPlaces the normal and expedited grace-period states in rgosp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h]hXyPlaces the normal and expedited grace-period states in rgosp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMAhj$Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+cond_synchronize_rcu_expedited (C function) c.cond_synchronize_rcu_expeditedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubah}(h]h ]h"]h$]h&]j,j-uh1j.hjBhhhjBhMcubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjBhhhjBhMcubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjBhMchjBhhubj)}(hhh]j)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hjhChhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMPhjeChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMcubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited() **Description** If any type of full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited(), 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 **oldstate** and that returned at the end of this function.h](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMThjCubj)}(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.)}(hjCh]hunsigned long oldstate}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMRhjCubjD)}(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()}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMRhjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChMRhjCubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMThjCubj)}(hX If any type of full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited(), just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.h]hX If any type of full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited(), just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMThjCubj)}(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 DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMYhjCubj)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hjDhhhNhNubj)}(h **oldstate**h]holdstate}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh/ and that returned at the end of this function.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM^hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ0cond_synchronize_rcu_expedited_full (C function)%c.cond_synchronize_rcu_expedited_fullhNtauh1hhjhhhNhNubh)}(hhh](h)}(hHvoid cond_synchronize_rcu_expedited_full (struct rcu_gp_oldstate *rgosp)h]h)}(hGvoid cond_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)h](h)}(hvoidh]hvoid}(hjYDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUDhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM~ubh)}(h h]h }(hjhDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUDhhhjgDhM~ubj)}(h#cond_synchronize_rcu_expedited_fullh]j)}(h#cond_synchronize_rcu_expedited_fullh]h#cond_synchronize_rcu_expedited_full}(hjzDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUDhhhjgDhM~ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsj|Dsb%c.cond_synchronize_rcu_expedited_fullasbuh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hrgosph]hrgosp}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubah}(h]h ]h"]h$]h&]j,j-uh1j.hjUDhhhjgDhM~ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQDhhhjgDhM~ubah}(h]jLDah ](jjeh"]h$]h&]jj)jhuh1hhjgDhM~hjNDhhubj)}(hhh]j)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMkhjEhhubah}(h]h ]h"]h$]h&]uh1jhjNDhhhjgDhM~ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1Ejj1Ejjjuh1hhhhjhNhNubj)}(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)}(hj;Eh]h Parameters}(hj=EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Eubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMohj5Eubj)}(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.)}(hjZEh]hstruct rcu_gp_oldstate *rgosp}(hj\EhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXEubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMlhjTEubjD)}(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()}(hjsEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoEhMlhjpEubah}(h]h ]h"]h$]h&]uh1jChjTEubeh}(h]h ]h"]h$]h&]uh1j!hjoEhMlhjQEubah}(h]h ]h"]h$]h&]uh1jhj5Eubj)}(h**Description**h]j)}(hjEh]h Description}(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.hhMnhj5Eubj)}(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 }(hjEhhhNhNubj)}(h **rgosp**h]hrgosp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhk was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMnhj5Eubj)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMthj5Eubj)}(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 }(hjEhhhNhNubj)}(h **rgosp**h]hrgosp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh/ and that returned at the end of this function.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMyhj5Eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&rcu_read_lock_held_common (C function)c.rcu_read_lock_held_commonhNtauh1hhjhhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKgubh)}(h h]h }(hj*FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhj)FhKgubj)}(hrcu_read_lock_held_commonh]j)}(hrcu_read_lock_held_commonh]hrcu_read_lock_held_common}(hjh]hstruct}(hjgOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcOubh)}(h h]h }(hjtOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcOubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjOmodnameN classnameNjwjz)}j}]j)}jsjMOsbc.wakeme_after_rcuasbuh1hhjcOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcOubj)}(hheadh]hhead}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_Oubah}(h]h ]h"]h$]h&]j,j-uh1j.hj&Ohhhj8OhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj"Ohhhj8OhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhj8OhMhjOhhubj)}(hhh]j)}(h5Callback function to awaken a task after grace periodh]h5Callback function to awaken a task after grace period}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhj8OhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjPjjPjjjuh1hhhhjhNhNubj)}(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)}(hj Ph]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Pubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjPubj)}(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+Ph]hstruct rcu_head *head}(hj-PhhhNhNubah}(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:408: ./kernel/rcu/update.chMhj%PubjD)}(hhh]j)}(h;Pointer to rcu_head member within rcu_synchronize structureh]h;Pointer to rcu_head member within rcu_synchronize structure}(hjDPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@PhMhjAPubah}(h]h ]h"]h$]h&]uh1jChj%Pubeh}(h]h ]h"]h$]h&]uh1j!hj@PhMhj"Pubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(h**Description**h]j)}(hjfPh]h Description}(hjhPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjPubj)}(hBAwaken the corresponding task now that a grace period has elapsed.h]hBAwaken the corresponding task now that a grace period has elapsed.}(hj|PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#init_rcu_head_on_stack (C function)c.init_rcu_head_on_stackhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3void init_rcu_head_on_stack (struct rcu_head *head)h]h)}(h2void init_rcu_head_on_stack(struct rcu_head *head)h](h)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjPhMubj)}(hinit_rcu_head_on_stackh]j)}(hinit_rcu_head_on_stackh]hinit_rcu_head_on_stack}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhjPhMubj/)}(h(struct rcu_head *head)h]j5)}(hstruct rcu_head *headh](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)}(hrcu_headh]hrcu_head}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjPsbc.init_rcu_head_on_stackasbuh1hhjPubh)}(h h]h }(hj&QhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hjh]h*}(hj4QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hheadh]hhead}(hjAQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubah}(h]h ]h"]h$]h&]j,j-uh1j.hjPhhhjPhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhjPhhubj)}(hhh]j)}(h-initialize on-stack rcu_head for debugobjectsh]h-initialize on-stack rcu_head for debugobjects}(hjkQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjhQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjQjjQjjjuh1hhhhjhNhNubj)}(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)}(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:408: ./kernel/rcu/update.chMhjQubj)}(hhh]j")}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j()}(h``struct rcu_head *head``h]j.)}(hjQh]hstruct rcu_head *head}(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:408: ./kernel/rcu/update.chMhjQubjD)}(hhh]j)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjQubah}(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:408: ./kernel/rcu/update.chMhjQubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&destroy_rcu_head_on_stack (C function)c.destroy_rcu_head_on_stackhNtauh1hhjhhhNhNubh)}(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,RhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(RhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMubh)}(h h]h }(hj;RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(Rhhhj:RhMubj)}(hdestroy_rcu_head_on_stackh]j)}(hdestroy_rcu_head_on_stackh]hdestroy_rcu_head_on_stack}(hjMRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj(Rhhhj:RhMubj/)}(h(struct rcu_head *head)h]j5)}(hstruct rcu_head *headh](j;)}(hj>h]hstruct}(hjiRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjeRubh)}(h h]h }(hjvRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeRubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j)}jsjORsbc.destroy_rcu_head_on_stackasbuh1hhjeRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeRubj)}(hheadh]hhead}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaRubah}(h]h ]h"]h$]h&]j,j-uh1j.hj(Rhhhj:RhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj$Rhhhj:RhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhj:RhMhj!Rhhubj)}(hhh]j)}(h*destroy on-stack rcu_head for debugobjectsh]h*destroy on-stack rcu_head for debugobjects}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhj!Rhhhj:RhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjhNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjSubj)}(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-Sh]hstruct rcu_head *head}(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:408: ./kernel/rcu/update.chMhj'SubjD)}(hhh]j)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjFShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBShMhjCSubah}(h]h ]h"]h$]h&]uh1jChj'Subeh}(h]h ]h"]h$]h&]uh1j!hjBShMhj$Subah}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hjhSh]h Description}(hjjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjSubj)}(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.}(hj~ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*get_completed_synchronize_rcu (C function)c.get_completed_synchronize_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2unsigned long get_completed_synchronize_rcu (void)h]h)}(h1unsigned long get_completed_synchronize_rcu(void)h](h)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM@ubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjShhhjShM@ubh)}(hlongh]hlong}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjShhhjShM@ubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjShhhjShM@ubj)}(hget_completed_synchronize_rcuh]j)}(hget_completed_synchronize_rcuh]hget_completed_synchronize_rcu}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjShhhjShM@ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubah}(h]h ]h"]h$]h&]j,j-uh1j.hjShhhjShM@ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjShM@ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjShM@hjShhubj)}(hhh]j)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hj0ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM:hj-Thhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShM@ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHTjjHTjjjuh1hhhhjhNhNubj)}(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)}(hjRTh]h Parameters}(hjTThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM>hjLTubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjqTh]hvoid}(hjsThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoTubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMAhjkTubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMAhjTubah}(h]h ]h"]h$]h&]uh1jChjkTubeh}(h]h ]h"]h$]h&]uh1j!hjThMAhjhTubah}(h]h ]h"]h$]h&]uh1jhjLTubj)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMChjLTubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM;hjLTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+get_completed_synchronize_srcu (C function) c.get_completed_synchronize_srcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3unsigned long get_completed_synchronize_srcu (void)h]h)}(h2unsigned long get_completed_synchronize_srcu(void)h](h)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKOubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjThKOubh)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhjThKOubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjThKOubj)}(hget_completed_synchronize_srcuh]j)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hj.UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*Uubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjThKOubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjJUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFUubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBUubah}(h]h ]h"]h$]h&]j,j-uh1j.hjThhhjThKOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjThKOubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjThKOhjThhubj)}(hhh]j)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjtUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKJhjqUhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThKOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjhNhNubj)}(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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKNhjUubj)}(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'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKQhjUubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhKQhjUubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjUhKQhjUubah}(h]h ]h"]h$]h&]uh1jhjUubj)}(h**Description**h]j)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKShjUubj)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKKhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhjhhhNhNubh)}(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}(hj5VhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1VhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhubh)}(h h]h }(hjCVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1VhhhjBVhKhubj)}(hsame_state_synchronize_srcuh]j)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hjUVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1VhhhjBVhKhubj/)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j5)}(hunsigned long oldstate1h](h)}(hunsignedh]hunsigned}(hjqVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmVubh)}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmVubj)}(h oldstate1h]h oldstate1}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiVubj5)}(hunsigned long oldstate2h](h)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h oldstate2h]h oldstate2}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiVubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1VhhhjBVhKhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-VhhhjBVhKhubah}(h]j(Vah ](jjeh"]h$]h&]jj)jhuh1hhjBVhKhhj*Vhhubj)}(hhh]j)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hj$WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhK]hj!Whhubah}(h]h ]h"]h$]h&]uh1jhj*VhhhjBVhKhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKubh)}(h h]h }(hjQXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>XhhhjPXhKubj)}(hsrcu_read_lock_heldh]j)}(hsrcu_read_lock_heldh]hsrcu_read_lock_held}(hjcXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_Xubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>XhhhjPXhKubj/)}(h(const struct srcu_struct *ssp)h]j5)}(hconst struct srcu_struct *ssph](j;)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{Xubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{Xubj;)}(hj>h]hstruct}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{Xubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{Xubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjeXsbc.srcu_read_lock_heldasbuh1hhj{Xubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{Xubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Xubj)}(hssph]hssp}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{Xubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwXubah}(h]h ]h"]h$]h&]j,j-uh1j.hj>XhhhjPXhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:XhhhjPXhKubah}(h]j5Xah ](jjeh"]h$]h&]jj)jhuh1hhjPXhKhj7Xhhubj)}(hhh]j)}(h/might we be in SRCU read-side critical section?h]h/might we be in SRCU read-side critical section?}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjYhhubah}(h]h ]h"]h$]h&]uh1jhj7XhhhjPXhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5Yjj5Yjjjuh1hhhhjhNhNubj)}(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?Yh]h Parameters}(hjAYhhhNhNubah}(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.hhKhj9Yubj)}(hhh]j")}(hE``const struct srcu_struct *ssp`` The srcu_struct structure to check h](j()}(h!``const struct srcu_struct *ssp``h]j.)}(hj^Yh]hconst struct srcu_struct *ssp}(hj`YhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\Yubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjXYubjD)}(hhh]j)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(hjwYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsYhKhjtYubah}(h]h ]h"]h$]h&]uh1jChjXYubeh}(h]h ]h"]h$]h&]uh1j!hjsYhKhjUYubah}(h]h ]h"]h$]h&]uh1jhj9Yubj)}(h**Description**h]j)}(hjYh]h Description}(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.hhKhj9Yubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj9Yubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj9Yubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj9Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_dereference_check (C macro)c.srcu_dereference_checkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hsrcu_dereference_checkh]h)}(hsrcu_dereference_checkh]j)}(hsrcu_dereference_checkh]j)}(hjYh]hsrcu_dereference_check}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjZhKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjZhKhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhjZhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj,Zjj,Zjjjuh1hhhhjhNhNubj)}(h&``srcu_dereference_check (p, ssp, c)``h]j.)}(hj2Zh]h"srcu_dereference_check (p, ssp, c)}(hj4ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0Zubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjhhubj<8)}(h5fetch SRCU-protected pointer for later dereferencing h]j)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjLZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjHZubah}(h]h ]h"]h$]h&]uh1j;8hjZZhKhjhhubj)}(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)}(hjgZh]h Parameters}(hjiZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeZubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjaZubj)}(hhh](j")}(h?``p`` the pointer to fetch and protect for later dereferencing h](j()}(h``p``h]j.)}(hjZh]hp}(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)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhKhj}Zubj")}(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.)}(hjZh]hssp}(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)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhKhj}Zubj")}(h-``c`` condition to check for update-side use h](j()}(h``c``h]j.)}(hjZh]hc}(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&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&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hj[hKhj}Zubeh}(h]h ]h"]h$]h&]uh1jhjaZubj)}(h**Description**h]j)}(hj4[h]h Description}(hj6[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2[ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjaZubj)}(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 }(hjJ[hhhNhNubj)}(h**c**h]hc}(hjR[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ[ubh evaluates to 1. The }(hjJ[hhhNhNubj)}(h**c**h]hc}(hjd[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ[ubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hjJ[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjaZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_dereference (C macro)c.srcu_dereferencehNtauh1hhjhhhNhNubh)}(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[jjjuh1hhhhjhNhNubj)}(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.hhKhjhhubj<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[hKhjhhubj)}(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)}(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.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<\hKhj\ubj")}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j()}(h``ssp``h]j.)}(hj`\h]hssp}(hjb\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.hhKhjZ\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.}(hjy\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjv\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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj\ubj)}(hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h]hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"srcu_dereference_notrace (C macro)c.srcu_dereference_notracehNtauh1hhjhhhNhNubh)}(hhh](h)}(hsrcu_dereference_notraceh]h)}(hsrcu_dereference_notraceh]j)}(hsrcu_dereference_notraceh]j)}(hj\h]hsrcu_dereference_notrace}(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]jjjuh1hhhhjhNhNubj)}(h%``srcu_dereference_notrace (p, ssp)``h]j.)}(hj]h]h!srcu_dereference_notrace (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.hhKhjhhubj<8)}(h*no tracing and no lockdep calls from here h]j)}(h)no tracing and no lockdep calls from hereh]h)no tracing and no lockdep calls from here}(hj1]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?]hKhjhhubj)}(h**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h](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:410: ./include/linux/srcu.hhKhjF]ubj)}(hhh](j")}(h?``p`` the pointer to fetch and protect for later dereferencing h](j()}(h``p``h]j.)}(hjk]h]hp}(hjm]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hji]ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhje]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&]uh1jChje]ubeh}(h]h ]h"]h$]h&]uh1j!hj]hKhjb]ubj")}(ht``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h](j()}(h``ssp``h]j.)}(hj]h]hssp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hj]hKhjb]ubeh}(h]h ]h"]h$]h&]uh1jhjF]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_read_lock (C function)c.srcu_read_lockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,int srcu_read_lock (struct srcu_struct *ssp)h]h)}(h+int srcu_read_lock(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 }(hj ^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhj ^hKubj)}(hsrcu_read_lockh]j)}(hsrcu_read_lockh]hsrcu_read_lock}(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 srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj:^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6^ubh)}(h h]h }(hjG^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6^ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjX^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjU^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZ^modnameN classnameNjwjz)}j}]j)}jsj ^sbc.srcu_read_lockasbuh1hhj6^ubh)}(h h]h }(hjx^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6^ubj)}(hssph]hssp}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2^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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj ^hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjhNhNubj)}(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)}(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.hhKhj^ubj)}(hhh]j")}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hj^h]hstruct srcu_struct *ssp}(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)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]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)}(hj9_h]h Description}(hj;_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj^ubj)}(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().}(hjO_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj^ubj)}(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.}(hj^_hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_read_lock_fast (C function)c.srcu_read_lock_fasthNtauh1hhjhhhNhNubh)}(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}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhj_hMubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj_modnameN classnameNjwjz)}j}]j)}jssrcu_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhj_hhhj_hMubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhj_hMubh__percpu}(hj_hhhNhNubh)}(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)}(hsrcu_read_lock_fasth]j)}(hj_h]hsrcu_read_lock_fast}(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}(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}(hj7`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9`modnameN classnameNjwjz)}j}]j_c.srcu_read_lock_fastasbuh1hhj`ubh)}(h h]h }(hjU`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hjh]h*}(hjc`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hssph]hssp}(hjp`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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjhNhNubj)}(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)}(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")}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hj`h]hstruct srcu_struct *ssp}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj`ubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]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)}(hjah]h Description}(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.hhMhj`ubj)}(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,ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj`ubj)}(hX<If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.h]hX<If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.}(hj;ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj`ubj)}(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.}(hjJahhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_down_read_fast (C function)c.srcu_down_read_fasthNtauh1hhjhhhNhNubh)}(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}(hjyahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuahhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM'ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuahhhjahM'ubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jssrcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhjuahhhjahM'ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuahhhjahM'ubh__percpu}(hjuahhhNhNubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuahhhjahM'ubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuahhhjahM'ubj)}(hsrcu_down_read_fasth]j)}(hjah]hsrcu_down_read_fast}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuahhhjahM'ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](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 srcu_structh]h srcu_struct}(hj#bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj bubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%bmodnameN classnameNjwjz)}j}]jac.srcu_down_read_fastasbuh1hhjbubh)}(h h]h }(hjAbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hjh]h*}(hjObhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hssph]hssp}(hj\bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubah}(h]h ]h"]h$]h&]j,j-uh1j.hjuahhhjahM'ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqahhhjahM'ubah}(h]jlaah ](jjeh"]h$]h&]jj)jhuh1hhjahM'hjnahhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjnahhhjahM'ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhjhNhNubj)}(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)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM!hjbubj)}(hhh]j")}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjbh]hstruct srcu_struct *ssp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjbubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hjbhMhjbubah}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM hjbubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM hjbubj)}(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'chhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM$hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_read_lock_lite (C function)c.srcu_read_lock_litehNtauh1hhjhhhNhNubh)}(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}(hjVchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRchhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM?ubh)}(h h]h }(hjechhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRchhhjdchM?ubj)}(hsrcu_read_lock_liteh]j)}(hsrcu_read_lock_liteh]hsrcu_read_lock_lite}(hjwchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjscubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRchhhjdchM?ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j)}jsjycsbc.srcu_read_lock_liteasbuh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hssph]hssp}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubah}(h]h ]h"]h$]h&]j,j-uh1j.hjRchhhjdchM?ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNchhhjdchM?ubah}(h]jIcah ](jjeh"]h$]h&]jj)jhuh1hhjdchM?hjKchhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM/hjdhhubah}(h]h ]h"]h$]h&]uh1jhjKchhhjdchM?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj.djj.djjjuh1hhhhjhNhNubj)}(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)}(hj8dh]h Parameters}(hj:dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6dubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM3hj2dubj)}(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.)}(hjWdh]hstruct srcu_struct *ssp}(hjYdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUdubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM0hjQdubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjpdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjldhM0hjmdubah}(h]h ]h"]h$]h&]uh1jChjQdubeh}(h]h ]h"]h$]h&]uh1j!hjldhM0hjNdubah}(h]h ]h"]h$]h&]uh1jhj2dubj)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM2hj2dubj)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM2hj2dubj)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM5hj2dubj)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM;hj2dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#srcu_read_lock_nmisafe (C function)c.srcu_read_lock_nmisafehNtauh1hhjhhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMTubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjehMTubj)}(hsrcu_read_lock_nmisafeh]j)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdhhhjehMTubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj2ehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.eubh)}(h h]h }(hj?ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.eubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjPehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMeubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRemodnameN classnameNjwjz)}j}]j)}jsjesbc.srcu_read_lock_nmisafeasbuh1hhj.eubh)}(h h]h }(hjpehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.eubj)}(hjh]h*}(hj~ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.eubj)}(hssph]hssp}(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.hjdhhhjehMTubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjehMTubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjehMThjdhhubj)}(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.hhMJhjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjehMTubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjhNhNubj)}(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)}(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.hhMNhjeubj)}(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.hhMKhjeubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj fhMKhj fubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hj fhMKhjeubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(h**Description**h]j)}(hj1fh]h Description}(hj3fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/fubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMMhjeubj)}(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.}(hjGfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMMhjeubj)}(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.}(hjVfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMPhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_down_read (C function)c.srcu_down_readhNtauh1hhjhhhNhNubh)}(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}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfhhhY/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&]uh1hhjfhhhjfhMubj)}(hsrcu_down_readh]j)}(hsrcu_down_readh]hsrcu_down_read}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjfhhhjfhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](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 srcu_structh]h srcu_struct}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j)}jsjfsbc.srcu_down_readasbuh1hhjfubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hssph]hssp}(hjghhhNhNubah}(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-juh1hjjhj}fhhhjfhMubah}(h]jxfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjzfhhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjEghhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMjhjBghhubah}(h]h ]h"]h$]h&]uh1jhjzfhhhjfhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]gjj]gjjjuh1hhhhjhNhNubj)}(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)}(hjggh]h Parameters}(hjighhhNhNubah}(h]h ]h"]h$]h&]uh1jhjegubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMnhjagubj)}(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.hhMkhjgubjD)}(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&]uh1jhjghMkhjgubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjghMkhj}gubah}(h]h ]h"]h$]h&]uh1jhjagubj)}(h**Description**h]j)}(hjgh]h Description}(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.hhMmhjagubj)}(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().}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMmhjagubj)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMvhjagubj)}(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().}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM{hjagubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_read_unlock (C function)c.srcu_read_unlockhNtauh1hhjhhhNhNubh)}(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$hhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hj3hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhhj2hhMubj)}(hsrcu_read_unlockh]j)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hjEhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhhj2hhMubj/)}(h"(struct srcu_struct *ssp, int idx)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjahhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj]hubh)}(h h]h }(hjnhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|hubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsjGhsbc.srcu_read_unlockasbuh1hhj]hubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hubj)}(hssph]hssp}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]hubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYhubj5)}(hint idxh](h)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hidxh]hidx}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhhj2hhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhj2hhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhj2hhMhjhhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from 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.hhMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhj2hhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1ijj1ijjjuh1hhhhjhNhNubj)}(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)}(hj;ih]h Parameters}(hj=ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9iubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj5iubj)}(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.)}(hjZih]hstruct srcu_struct *ssp}(hj\ihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXiubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjTiubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjsihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoihMhjpiubah}(h]h ]h"]h$]h&]uh1jChjTiubeh}(h]h ]h"]h$]h&]uh1j!hjoihMhjQiubj")}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j()}(h ``int idx``h]j.)}(hjih]hint idx}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjiubjD)}(hhh]j)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMhjiubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjihMhjQiubeh}(h]h ]h"]h$]h&]uh1jhj5iubj)}(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.hhMhj5iubj)}(h(Exit an SRCU read-side critical section.h]h(Exit an SRCU read-side critical section.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj5iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"srcu_read_unlock_fast (C function)c.srcu_read_unlock_fasthNtauh1hhjhhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hj"jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj!jhMubj)}(hsrcu_read_unlock_fasth]j)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hj4jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0jubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhj!jhMubj/)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjPjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLjubh)}(h h]h }(hj]jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLjubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjnjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpjmodnameN classnameNjwjz)}j}]j)}jsj6jsbc.srcu_read_unlock_fastasbuh1hhjLjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLjubj)}(hssph]hssp}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHjubj5)}(hstruct srcu_ctr __percpu *scph](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)}(hsrcu_ctrh]hsrcu_ctr}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]jjc.srcu_read_unlock_fastasbuh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh__percpu}(hjjhhhNhNubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hscph]hscp}(hj+khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhj!jhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj jhhhj!jhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhj!jhMhjjhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjUkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjRkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhj!jhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmkjjmkjjjuh1hhhhjhNhNubj)}(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)}(hjwkh]h Parameters}(hjykhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjukubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjqkubj)}(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.)}(hjkh]hstruct srcu_struct *ssp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjkubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjkhMhjkubj")}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j()}(h!``struct srcu_ctr __percpu *scp``h]j.)}(hjkh]hstruct srcu_ctr __percpu *scp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjkubjD)}(hhh]j)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjkhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjqkubj)}(h**Description**h]j)}(hj lh]h Description}(hj lhhhNhNubah}(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.hhMhjqkubj)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjqkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_up_read_fast (C function)c.srcu_up_read_fasthNtauh1hhjhhhNhNubh)}(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}(hjOlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKlhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hj^lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKlhhhj]lhMubj)}(hsrcu_up_read_fasth]j)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hjplhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjllubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjKlhhhj]lhMubj/)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j5)}(hstruct srcu_struct *ssph](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 srcu_structh]h srcu_struct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j)}jsjrlsbc.srcu_up_read_fastasbuh1hhjlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hssph]hssp}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(hstruct srcu_ctr __percpu *scph](j;)}(hj>h]hstruct}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jlc.srcu_up_read_fastasbuh1hhjlubh)}(h h]h }(hj:mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh__percpu}(hjlhhhNhNubh)}(h h]h }(hjLmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjZmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hscph]hscp}(hjgmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjKlhhhj]lhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjGlhhhj]lhMubah}(h]jBlah ](jjeh"]h$]h&]jj)jhuh1hhj]lhMhjDlhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjDlhhhj]lhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhjhNhNubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmubj)}(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.)}(hjmh]hstruct srcu_struct *ssp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhjmubj")}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j()}(h!``struct srcu_ctr __percpu *scp``h]j.)}(hj nh]hstruct srcu_ctr __percpu *scp}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj nubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjnubjD)}(hhh]j)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hj$nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nhMhj!nubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hj nhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubj)}(h**Description**h]j)}(hjFnh]h Description}(hjHnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmubj)}(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().}(hj\nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"srcu_read_unlock_lite (C function)c.srcu_read_unlock_litehNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void srcu_read_unlock_lite (struct srcu_struct *ssp, int idx)h]h)}(hh]hstruct}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j)}jsjnsbc.srcu_read_unlock_liteasbuh1hhjnubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hssph]hssp}(hj!ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hint idxh](h)}(hinth]hint}(hj:ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6oubh)}(h h]h }(hjHohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6oubj)}(hidxh]hidx}(hjVohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6oubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjnhhhjnhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjnhhhjnhMubah}(h]j~nah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjnhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj}ohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjojjojjjuh1hhhhjhNhNubj)}(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)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjoubj)}(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.)}(hjoh]hstruct srcu_struct *ssp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjoubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjohMhjoubj")}(hC``int idx`` return value from corresponding srcu_read_lock_lite(). h](j()}(h ``int idx``h]j.)}(hjoh]hint idx}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjoubjD)}(hhh]j)}(h6return value from corresponding srcu_read_lock_lite().h]h6return value from corresponding srcu_read_lock_lite().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjphMhjoubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hj5ph]h Description}(hj7phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3pubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjoubj)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hjKphhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%srcu_read_unlock_nmisafe (C function)c.srcu_read_unlock_nmisafehNtauh1hhjhhhNhNubh)}(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}(hjzphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvphhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvphhhjphMubj)}(hsrcu_read_unlock_nmisafeh]j)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvphhhjphMubj/)}(h"(struct srcu_struct *ssp, int idx)h](j5)}(hstruct srcu_struct *ssph](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 srcu_structh]h srcu_struct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]j)}jsjpsbc.srcu_read_unlock_nmisafeasbuh1hhjpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hssph]hssp}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubj5)}(hint idxh](h)}(hinth]hint}(hj)qhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%qubh)}(h h]h }(hj7qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%qubj)}(hidxh]hidx}(hjEqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%qubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjvphhhjphMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjrphhhjphMubah}(h]jmpah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjophhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjoqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjlqhhubah}(h]h ]h"]h$]h&]uh1jhjophhhjphMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhjhNhNubj)}(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)}(hjqh]h Parameters}(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.hhMhjqubj)}(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.)}(hjqh]hstruct srcu_struct *ssp}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjqubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjqhMhjqubj")}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). h](j()}(h ``int idx``h]j.)}(hjqh]hint idx}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjqubjD)}(hhh]j)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjqhMhjqubeh}(h]h ]h"]h$]h&]uh1jhjqubj)}(h**Description**h]j)}(hj$rh]h Description}(hj&rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"rubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjqubj)}(hCExit an SRCU read-side critical section, but in an NMI-safe manner.h]hCExit an SRCU read-side critical section, but in an NMI-safe manner.}(hj:rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_up_read (C function)c.srcu_up_readhNtauh1hhjhhhNhNubh)}(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}(hjirhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjerhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjxrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjerhhhjwrhMubj)}(h srcu_up_readh]j)}(h srcu_up_readh]h srcu_up_read}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjerhhhjwrhMubj/)}(h"(struct srcu_struct *ssp, int idx)h](j5)}(hstruct srcu_struct *ssph](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)}(h srcu_structh]h srcu_struct}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j)}jsjrsbc.srcu_up_readasbuh1hhjrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hssph]hssp}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubj5)}(hint idxh](h)}(hinth]hint}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubh)}(h h]h }(hj&shhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hidxh]hidx}(hj4shhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjerhhhjwrhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjarhhhjwrhMubah}(h]j\rah ](jjeh"]h$]h&]jj)jhuh1hhjwrhMhj^rhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj^shhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj[shhubah}(h]h ]h"]h$]h&]uh1jhj^rhhhjwrhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvsjjvsjjjuh1hhhhjhNhNubj)}(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)}(hjsh]h Parameters}(hjshhhNhNubah}(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.hhMhjzsubj)}(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.)}(hjsh]hstruct srcu_struct *ssp}(hjshhhNhNubah}(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)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjsubj")}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j()}(h ``int idx``h]j.)}(hjsh]hint idx}(hjshhhNhNubah}(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)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjsubeh}(h]h ]h"]h$]h&]uh1jhjzsubj)}(h**Description**h]j)}(hjth]h Description}(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.hhMhjzsubj)}(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)thhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjzsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhjhhhNhNubh)}(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}(hjXthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTthhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjgthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTthhhjfthMubj)}(hsmp_mb__after_srcu_read_unlockh]j)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hjythhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjutubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjTthhhjfthMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubah}(h]h ]h"]h$]h&]j,j-uh1j.hjTthhhjfthMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjPthhhjfthMubah}(h]jKtah ](jjeh"]h$]h&]jj)jhuh1hhjfthMhjMthhubj)}(hhh]j)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjthhubah}(h]h ]h"]h$]h&]uh1jhjMthhhjfthMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhjhNhNubj)}(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)}(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")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjuh]hvoid}(hjuhhhNhNubah}(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)}(h no argumentsh]h no arguments}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjuhMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(h**Description**h]j)}(hj;uh]h Description}(hj=uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9uubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubj)}(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.}(hjQuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubj)}(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`uhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)smp_mb__after_srcu_read_lock (C function)c.smp_mb__after_srcu_read_lockhNtauh1hhjhhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhY/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&]uh1hhjuhhhjuhMubj)}(hsmp_mb__after_srcu_read_lockh]j)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjuhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(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)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvjjvjjjuh1hhhhjhNhNubj)}(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)}(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")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj7vh]hvoid}(hj9vhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5vubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj1vubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjPvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLvhMhjMvubah}(h]h ]h"]h$]h&]uh1jChj1vubeh}(h]h ]h"]h$]h&]uh1j!hjLvhMhj.vubah}(h]h ]h"]h$]h&]uh1jhjvubj)}(h**Description**h]j)}(hjrvh]h Description}(hjtvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubj)}(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.}(hjvhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌinit_srcu_struct (C function)c.init_srcu_structhNtauh1hhjhhhNhNubh)}(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}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM5ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjvhM5ubj)}(hinit_srcu_structh]j)}(hinit_srcu_structh]hinit_srcu_struct}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjvhM5ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]u h1j:hjvubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj!whhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#wmodnameN classnameNjwjz)}j}]j)}jsjvsbc.init_srcu_structasbuh1hhjvubh)}(h h]h }(hjAwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjOwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hssph]hssp}(hj\whhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjvubah}(h]h ]h"]h$]h&]j,j-uh1j.hjvhhhjvhM5ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjvhM5ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjvhM5hjvhhubj)}(hhh]j)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM.hjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhM5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhjhNhNubj)}(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)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM2hjwubj)}(hhh]j")}(h5``struct srcu_struct *ssp`` structure to initialize. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjwh]hstruct srcu_struct *ssp}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM/hjwubjD)}(hhh]j)}(hstructure to initialize.h]hstructure to initialize.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhM/hjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhM/hjwubah}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM1hjwubj)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM1hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_readers_active (C function)c.srcu_readers_activehNtauh1hhjhhhNhNubh)}(hhh](h)}(h2bool srcu_readers_active (struct srcu_struct *ssp)h]h)}(h1bool srcu_readers_active(struct srcu_struct *ssp)h](h)}(hjoh]hbool}(hjGxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMAubh)}(h h]h }(hjUxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCxhhhjTxhMAubj)}(hsrcu_readers_activeh]j)}(hsrcu_readers_activeh]hsrcu_readers_active}(hjgxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjCxhhhjTxhMAubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](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)}(h srcu_structh]h srcu_struct}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsjixsbc.srcu_readers_activeasbuh1hhjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hssph]hssp}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{xubah}(h]h ]h"]h$]h&]j,j-uh1j.hjCxhhhjTxhMAubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?xhhhjTxhMAubah}(h]j:xah ](jjeh"]h$]h&]jj)jhuh1hhjTxhMAhjyubah}(h]h ]h"]h$]h&]uh1jhj"yubj)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM=hj"yubj)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM=hj"yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ cleanup_srcu_struct (C function)c.cleanup_srcu_structhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void cleanup_srcu_struct (struct srcu_struct *ssp)h]h)}(h1void cleanup_srcu_struct(struct srcu_struct *ssp)h](h)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjyhMubj)}(hcleanup_srcu_structh]j)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyhhhjyhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj"zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$zmodnameN classnameNjwjz)}j}]j)}jsjysbc.cleanup_srcu_structasbuh1hhjzubh)}(h h]h }(hjBzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hjPzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hssph]hssp}(hj]zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubah}(h]h ]h"]h$]h&]j,j-uh1j.hjyhhhjyhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjyhhhjyhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjyhhubj)}(hhh]j)}(h!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hjzhhhNhNubah}(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&]uh1jhjyhhhjyhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjzjjzjjjuh1hhhhjhNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjzubj)}(hhh]j")}(h3``struct srcu_struct *ssp`` structure to clean up. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjzh]hstruct srcu_struct *ssp}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjzubjD)}(hhh]j)}(hstructure to clean up.h]hstructure to clean up.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjzhMhjzubah}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjzubj)}(hMust invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.h]hMust invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_srcu (C function) c.call_srcuhNtauh1hhjhhhNhNubh)}(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}(hjH{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjD{hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjW{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD{hhhjV{hMubj)}(h call_srcuh]j)}(h call_srcuh]h call_srcu}(hji{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhje{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjD{hhhjV{hMubj/)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)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)}jsjk{sb c.call_srcuasbuh1hhj{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-uh1j4hj}{ubj5)}(hstruct rcu_head *rhph](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{ c.call_srcuasbuh1hhj{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)}(hrhph]hrhp}(hjN|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}(hjj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjg|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjl|modnameN classnameNjwjz)}j}]j{ c.call_srcuasbuh1hhjc|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc|ubj)}(hfunch]hfunc}(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.hjD{hhhjV{hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@{hhhjV{hMubah}(h]j;{ah ](jjeh"]h$]h&]jj)jhuh1hhjV{hMhj={hhubj)}(hhh]j)}(h:Queue a callback for invocation after an SRCU grace periodh]h:Queue a callback for invocation after an 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.chMqhj|hhubah}(h]h ]h"]h$]h&]uh1jhj={hhhjV{hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|jj|jjjuh1hhhhjhNhNubj)}(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}(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.chMuhj|ubj)}(hhh](j")}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j()}(h``struct srcu_struct *ssp``h]j.)}(hj}h]hstruct srcu_struct *ssp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMrhj|ubjD)}(hhh]j)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(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")}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j()}(h``struct rcu_head *rhp``h]j.)}(hj:}h]hstruct rcu_head *rhp}(hj<}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8}ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMshj4}ubjD)}(hhh]j)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hjS}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO}hMshjP}ubah}(h]h ]h"]h$]h&]uh1jChj4}ubeh}(h]h ]h"]h$]h&]uh1j!hjO}hMshj|ubj")}(hK``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j()}(h``rcu_callback_t func``h]j.)}(hjs}h]hrcu_callback_t func}(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:412: ./kernel/rcu/srcutree.chMthjm}ubjD)}(hhh]j)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hMthj}ubah}(h]h ]h"]h$]h&]uh1jChjm}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hMthj|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&]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.}(hj}hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'synchronize_srcu_expedited (C function)c.synchronize_srcu_expeditedhNtauh1hhjhhhNhNubh)}(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 }(hj ~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ~hhhj~hMubj)}(hsynchronize_srcu_expeditedh]j)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hj2~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}(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 srcu_structh]h srcu_struct}(hjl~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjn~modnameN classnameNjwjz)}j}]j)}jsj4~sbc.synchronize_srcu_expeditedasbuh1hhjJ~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)}(hssph]hssp}(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)}(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&]uh1jhj~hhhj~hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjhNhNubj)}(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)}(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.chMhj~ubj)}(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.chMhj ubjD)}(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&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj'hMhj ubah}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj~ubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj~ubj)}(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().}(hjrhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsynchronize_srcu (C function)c.synchronize_srcuhNtauh1hhjhhhNhNubh)}(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}(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.synchronize_srcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hssph]hssp}(hj7hhhNhNubah}(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)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(hjahhhNhNubah}(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&]jjqjjyjjyjjjuh1hhhhjhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubj)}(hhh]j")}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j()}(h``struct srcu_struct *ssp``h]j.)}(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&]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.chMhj}ubj)}(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&]uh1jhjhMhj}ubj)}(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.chMhj}ubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubj)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubj)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubj)}(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().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubj)}(hX)If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.h]hX)If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'get_state_synchronize_srcu (C function)c.get_state_synchronize_srcuhNtauh1hhjhhhNhNubh)}(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}(hjˁ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&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j)}jsjsbc.get_state_synchronize_srcuasbuh1hhjubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjShhhNhNubah}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(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.chMhjłubjD)}(hhh]j)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(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&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(start_poll_synchronize_srcu (C function)c.start_poll_synchronize_srcuhNtauh1hhjhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjYhMubh)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhjYhMubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjYhMubj)}(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 hjGhhhjYhMubj/)}(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.start_poll_synchronize_srcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(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.hjGhhhjYhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjChhhjYhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhj@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@hhhjYhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjhNhNubj)}(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)}(hjIh]h Parameters}(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.chMhjCubj)}(hhh]j")}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjhh]hstruct srcu_struct *ssp}(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:412: ./kernel/rcu/srcutree.chMhjbubjD)}(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&]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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjCubj)}(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.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(poll_state_synchronize_srcu (C function)c.poll_state_synchronize_srcuhNtauh1hhjhhhNhNubh)}(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.chM5ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM5ubj)}(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 hjhhhjhM5ubj/)}(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:hj ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsj sbc.poll_state_synchronize_srcuasbuh1hhj ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjphhhNhNubah}(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-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.hjhhhjhM5ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM5ubah}(h]jۄah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hj݄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݄hhhjhM5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(hj9h]hstruct srcu_struct *ssp}(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:412: ./kernel/rcu/srcutree.chMhj3ubjD)}(hhh]j)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhMhj0ubj")}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j()}(h``unsigned long cookie``h]j.)}(hjrh]hunsigned long cookie}(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:412: ./kernel/rcu/srcutree.chMhjlubjD)}(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&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj0ubeh}(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 }(hjÆhhhNhNubj)}(h**true**h]htrue}(hjˆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÆubhL if an SRCU grace period elapsed since the time that the cookie was created.}(hjÆhhhNhNubeh}(h]h ]h"]h$]h&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_barrier (C function)c.srcu_barrierhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+void srcu_barrier (struct srcu_struct *ssp)h]h)}(h*void srcu_barrier(struct srcu_struct *ssp)h](h)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj0hMjubj)}(h srcu_barrierh]j)}(h srcu_barrierh]h srcu_barrier}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj0hMjubj/)}(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 }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjEsbc.srcu_barrierasbuh1hhj[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}(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.hjhhhj0hMjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj0hMjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hMjhjhhubj)}(hhh]j)}(h8Wait until all in-flight call_srcu() callbacks complete.h]h8Wait until all in-flight call_srcu() callbacks complete.}(hjhhhNhNubah}(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&]uh1jhjhhhj0hMjubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(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.chMmhjubjD)}(hhh]j)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhhj9ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj8hMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#srcu_batches_completed (C function)c.srcu_batches_completedhNtauh1hhjhhhNhNubh)}(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}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhZ/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&]uh1hhjyhhhjhMubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjhMubj)}(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 hjyhhhjhMubj/)}(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.srcu_batches_completedasbuh1hhj҈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-uh1j4hjΈubah}(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)}(hreturn batches completed.h]hreturn batches completed.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhjhNhNubj)}(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)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjuubj)}(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&]uh1jhjuubj)}(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.chMhjuubj)}(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.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_bl_del_rcu (C function)c.hlist_bl_del_rcuhNtauh1hhjhhhNhNubh)}(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.hhK.ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj(hK.ubj)}(hhlist_bl_del_rcuh]j)}(hhlist_bl_del_rcuh]hhlist_bl_del_rcu}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj(hK.ubj/)}(h(struct hlist_bl_node *n)h]j5)}(hstruct hlist_bl_node *nh](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)}(h hlist_bl_nodeh]h hlist_bl_node}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]j)}jsj=sbc.hlist_bl_del_rcuasbuh1hhjSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hj h]hn}(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(hK.ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj(hK.ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(hK.hjhhubj)}(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&]uh1jhjhhhj(hK.ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hKhj0ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj/hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjUh]hNote}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(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.}(hjkhhhNhNubah}(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)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"hlist_bl_add_head_rcu (C function)c.hlist_bl_add_head_rcuhNtauh1hhjhhhNhNubh)}(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.hhKGubh)}(h h]h }(hjߋhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̋hhhjދhKGubj)}(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ދhKGubj/)}(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:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(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_rcuasbuh1hhj ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj h]hn}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_bl_head *hh](j;)}(hj>h]hstruct}(hj~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(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}]jGc.hlist_bl_add_head_rcuasbuh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hjȌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hj-ah]hh}(hjՌhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj̋hhhjދhKGubeh}(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 ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.hhK8hj ubj)}(hhh](j")}(hA``struct hlist_bl_node *n`` the element to add to the hash list. h](j()}(h``struct hlist_bl_node *n``h]j.)}(hj0h]hstruct hlist_bl_node *n}(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: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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhK6hjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhK6hj'ubj")}(h0``struct hlist_bl_head *h`` the list to add to. h](j()}(h``struct hlist_bl_head *h``h]j.)}(hjih]hstruct hlist_bl_head *h}(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:414: ./include/linux/rculist_bl.hhK7hjcubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hK7hjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hK7hj'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:414: ./include/linux/rculist_bl.hhK9hj ubj)}(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.hhK9hj 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_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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK\hj]ubj)}(hhh](j")}(h-``tpos`` the type * to use as a loop cursor. h](j()}(h``tpos``h]j.)}(hjh]htpos}(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.hhKYhj|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&]uh1jhjhKYhjubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhKYhjyubj")}(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}(hjhhhNhNubah}(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ЎhKZhjyubj")}(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[hjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hK[hj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hK[hjyubj")}(h;``member`` the name of the hlist_bl_node within the struct.h](j()}(h ``member``h]j.)}(hjPh]hmember}(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:414: ./include/linux/rculist_bl.hhK]hjJubjD)}(hhh]j)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK\hjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehK]hjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_tail_rcu (C macro)c.list_tail_rcuhNtauh1hhjhhhNhNubh)}(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.hhK5ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK5hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK5ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjڏjjڏjjjuh1hhhhjhNhNubj)}(h``list_tail_rcu (head)``h]j.)}(hjh]hlist_tail_rcu (head)}(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:416: ./include/linux/rculist.hhK7hjhhubj<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.hjhhubj)}(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.hhK2hjubj)}(hhh]j")}(h``head`` the head of the list h](j()}(h``head``h]j.)}(hj4h]hhead}(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.hhK/hj.ubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhK/hjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhK/hj+ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjoh]hNote}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK1hjubj)}(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.hhK1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_add_rcu (C function)c.list_add_rcuhNtauh1hhjhhhNhNubh)}(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.hhKsubh)}(h h]h }(hjÐhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKsubj)}(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 hjhhhjhKsubj/)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjאsbc.list_add_rcuasbuh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](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)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(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.hjhhhjhKsubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKshjhhubj)}(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.hhKdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKsubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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-hj#ubah}(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&]uh1jhj:hKehj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hKehjubj")}(h5``struct list_head *head`` list head to add it after h](j()}(h``struct list_head *head``h]j.)}(hj^h]hstruct list_head *head}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKfhjXubjD)}(hhh]j)}(hlist head to add it afterh]hlist head to add it after}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshKfhjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshKfhjubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_add_tail_rcu (C function)c.list_add_tail_rcuhNtauh1hhjhhhNhNubh)}(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.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hlist_add_tail_rcuh]j)}(hlist_add_tail_rcuh]hlist_add_tail_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(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}(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 list_headh]h list_head}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_add_tail_rcuasbuh1hhj&ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(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-uh1j4hj"ubj5)}(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}]jdc.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-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%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&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhjhNhNubj)}(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}(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.hhK}hj9ubj)}(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-hj\ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKzhjXubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshKzhjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshKzhjUubj")}(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{hjUubeh}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK}hj9ubj)}(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}hj9ubj)}(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.hhKhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_del_rcu (C function)c.list_del_rcuhNtauh1hhjhhhNhNubh)}(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&]uh1hhj"hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj4hKubj)}(h list_del_rcuh]j)}(h list_del_rcuh]h list_del_rcu}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"hhhj4hKubj/)}(h(struct list_head *entry)h]j5)}(hstruct list_head *entryh](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)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjIsbc.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-uh1j4hj[ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj"hhhj4hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj4hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hKhjhhubj)}(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&]uh1jhjhhhj4hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(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)}(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.hhKhj!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<hKhj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjbh]hNote}(hjdhhhNhNubah}(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.}(hjxhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_bidir_del_rcu (C function)c.list_bidir_del_rcuhNtauh1hhjhhhNhNubh)}(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&]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 }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(h list_headh]h list_head}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjImodnameN classnameNjwjz)}j}]j)}jsjsbc.list_bidir_del_rcuasbuh1hhj%ubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hjuhhhNhNubah}(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-uh1j4hj!ubah}(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)}(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&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjėjjėjjjuh1hhhhjhNhNubj)}(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().}(hjMhhhNhNubah}(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.}(hj\hhhNhNubah}(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.}(hjkhhhNhNubah}(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)}(hj|h]hNote}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(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 }(hj hhhNhNubah}(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 }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hjWhhhNhNubah}(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}(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&]uh1jhjhhhjϘhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(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.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)}(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.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.}(hj9hhhNhNubah}(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().}(hjHhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_replace_rcu (C function)c.list_replace_rcuhNtauh1hhjhhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjshhh\/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&]uh1hhjshhhjhKubj)}(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 hjshhhjhKubj/)}(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: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}]jc.list_replace_rcuasbuh1hhj"ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjphhhNhNubah}(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.hjshhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjhKubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjlhhubj)}(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&]uh1jhjlhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhKhjÛubj)}(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.hhKhjubjD)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(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.)}(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.hhKhjubjD)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hKhjߛubeh}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjÛubj)}(hThe **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any.h](hThe }(hjrhhhNhNubj)}(h**old**h]hold}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh! entry will be replaced with the }(hjrhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjÛubj)}(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.hhKhjÛubj)}(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.hhKhjÛubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__list_splice_init_rcu (C function)c.__list_splice_init_rcuhNtauh1hhjhhhNhNubh)}(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.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(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 hjhhhjhMubj/)}(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}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(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_splice_init_rcuasbuh1hhj3ubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(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&]uh1jhjĝubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjɝmodnameN classnameNjwjz)}j}]jqc.__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}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]jqc.__list_splice_init_rcuasbuh1hhjubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnexth]hnext}(hjphhhNhNubah}(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)}(hjh]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)}(hj1h]h)}(hj͞hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hjڞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hj1h]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.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj6jj6jjjuh1hhhhjhNhNubj)}(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}(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<``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}(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 RCU-protected list to spliceh]h the RCU-protected list to splice}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjVubj")}(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!hjhMhjVubj")}(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!hjhMhjVubj")}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j()}(h``void (*sync)(void)``h]j.)}(hj h]hvoid (*sync)(void)}(hj hhhNhNubah}(h]h ]h"]h$]h&]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, ...}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubj)}(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:416: ./include/linux/rculist.hhMhj:ubj)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hj[hhhNhNubj)}(h**prev**h]hprev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh and }(hj[hhhNhNubj)}(h**next**h]hnext}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh; can be RCU-read traversed concurrently with this function.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj:ubj)}(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.hhMhj:ubj)}(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 hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!list_splice_init_rcu (C function)c.list_splice_init_rcuhNtauh1hhjhhhNhNubh)}(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.hhMAubh)}(h h]h }(hj۠hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȠhhhjڠhMAubj)}(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ڠhMAubj/)}(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: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 }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjbhhhNhNubah}(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:hjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(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}]jCc.list_splice_init_rcuasbuh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjšhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hheadh]hhead}(hjҡhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(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)}(hjh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsynch]hsync}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(hj1h]h)}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hj1h]h)}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjȠhhhjڠhMAubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjĠhhhjڠhMAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjڠhMAhjhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM;hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjڠhMAubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(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.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)}(hhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM>hjubj")}(hF``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ...h](j()}(h``void (*sync)(void)``h]j.)}(hj3h]hvoid (*sync)(void)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(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, ...}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM?hjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhM@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_splice_tail_init_rcu (C function)c.list_splice_tail_init_rcuhNtauh1hhjhhhNhNubh)}(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.hhMPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMPubj)}(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 hjhhhjhMPubj/)}(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}(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:hj8ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(h list_headh]h list_head}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]jc.list_splice_tail_init_rcuasbuh1hhj8ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(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)}(hjh]h(}(hjȤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjդhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsynch]hsync}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(hj1h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hj1h]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.hjhhhjhMPubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMPubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMPhjhhubj)}(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.}(hjAhhhNhNubah}(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&]uh1jhjhhhjhMPubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYjjYjjjuh1hhhhjhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMNhj]ubj)}(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.hhMLhj|ubjD)}(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&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjyubj")}(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.)}(hj4h]htype}(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.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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhM[hjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhM[hjϦubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjmh]hmember}(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.hhM\hjgubjD)}(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&]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&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ list_first_or_null_rcu (C macro)c.list_first_or_null_rcuhNtauh1hhjhhhNhNubh)}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h.``list_first_or_null_rcu (ptr, type, member)``h]j.)}(hj#h]h*list_first_or_null_rcu (ptr, type, member)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjhhubj<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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj9ubah}(h]h ]h"]h$]h&]uh1j;8hjKhMhjhhubj)}(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)}(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")}(h0``ptr`` the list head to take the element from. h](j()}(h``ptr``h]j.)}(hjwh]hptr}(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 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&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjnubj")}(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&]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!hjhMhjnubeh}(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)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjRubj)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_next_or_null_rcu (C macro)c.list_next_or_null_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hlist_next_or_null_rcuh]h)}(hlist_next_or_null_rcuh]j)}(hlist_next_or_null_rcuh]j)}(hjrh]hlist_next_or_null_rcu}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjthhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjmhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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.hhMhjĩubah}(h]h ]h"]h$]h&]uh1j;8hj֩hMhjhhubj)}(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)}(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")}(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.)}(hj;h]hptr}(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:416: ./include/linux/rculist.hhMhj5ubjD)}(hhh]j)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhMhjubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hjth]htype}(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:416: ./include/linux/rculist.hhMhjnubjD)}(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&]uh1jChjnubeh}(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&]uh1jhjªhMhjêubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjªhMhjubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!list_for_each_entry_rcu (C macro)c.list_for_each_entry_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hlist_for_each_entry_rcuh]h)}(hlist_for_each_entry_rcuh]j)}(hlist_for_each_entry_rcuh]j)}(hj6h]hlist_for_each_entry_rcu}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj8hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj4hhhjShMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjShMhj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjShMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjljjljjjuh1hhhhjhNhNubj)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j.)}(hjrh]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjhhubj<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;8hjhMhjhhubj)}(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-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#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.)}(hj8h]hmember}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj2ubjD)}(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&]uh1jhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhjubj")}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j()}(h ``cond...``h]j.)}(hjqh]hcond...}(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>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&]uh1jChjkubeh}(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().}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_for_each_entry_srcu (C macro)c.list_for_each_entry_srcuhNtauh1hhjhhhNhNubh)}(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&]jjqjj!jj!jjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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}(hjAhhhNhNubah}(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;8hjOhMhjhhubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjVubj)}(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-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 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&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjrubj")}(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ɭhMhjrubj")}(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!hjhMhjrubj")}(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.hhMhj ubjD)}(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&]uh1jhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubj)}(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.hhMhjVubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_entry_lockless (C macro)c.list_entry_locklesshNtauh1hhjhhhNhNubh)}(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֮jjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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;8hjhMhjhhubj)}(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)}(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")}(h<``ptr`` the :c:type:`struct list_head ` pointer. 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:416: ./include/linux/rculist.hhMhj*ubjD)}(hhh]j)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjIhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjSh]hstruct list_head}(hjUhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjEhMhjIubh pointer.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhj'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.)}(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.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)}(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.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_for_each_entry_lockless (C macro)c.list_for_each_entry_locklesshNtauh1hhjhhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj=hhhj\hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj\hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjujjujjjuh1hhhhjhNhNubj)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j.)}(hj{h]h0list_for_each_entry_lockless (pos, head, member)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjhhubj<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;8hjhMhjhhubj)}(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}(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)}(hthe head for your list.h]hthe head for your list.}(hj!hhhNhNubah}(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.)}(hjAh]hmember}(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:416: ./include/linux/rculist.hhMhj;ubjD)}(hhh]j)}(h.the name of the list_struct within the struct.h]h.the name of the list_struct within the struct.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hjVhMhjưubeh}(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&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*list_for_each_entry_continue_rcu (C macro)"c.list_for_each_entry_continue_rcuhNtauh1hhjhhhNhNubh)}(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}(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: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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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}(hjhhhNhNubah}(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;8hjhMhjhhubj)}(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.)}(hjKh]hpos}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjEubjD)}(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`hMhjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhjBubj")}(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.hhMhj~ubjD)}(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&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjBubj")}(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ҲhMhjBubeh}(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 }(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.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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_for_each_entry_from_rcu (C macro)c.list_for_each_entry_from_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hlist_for_each_entry_from_rcuh]h)}(hlist_for_each_entry_from_rcuh]j)}(hlist_for_each_entry_from_rcuh]j)}(hjXh]hlist_for_each_entry_from_rcu}(hjbhhhNhNubah}(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:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjuhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjuhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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;8hjhMhjhhubj)}(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&]uh1jhjdzubah}(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")}(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!hjhMhj߳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-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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hM hj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hM hj߳ubj")}(h8``member`` the name of the list_node within the struct. h](j()}(h ``member``h]j.)}(hjZh]hmember}(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.hhM hjTubjD)}(hhh]j)}(h,the name of the list_node within the struct.h]h,the name of the list_node within the struct.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohM hjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohM 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjóubj)}(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 hjóubj)}(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.hhMhjóubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_del_rcu (C function)c.hlist_del_rcuhNtauh1hhjhhhNhNubh)}(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.hhM.ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hM.ubj)}(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 hjhhhj hM.ubj/)}(h(struct hlist_node *n)h]j5)}(hstruct hlist_node *nh](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_nodeh]h hlist_node}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_del_rcuasbuh1hhj4ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hj h]hn}(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 hM.ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hM.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM.hjhhubj)}(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&]uh1jhjhhhj hM.ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjҵjjҵjjjuh1hhhhjhNhNubj)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjֵubj)}(h**Note**h]j)}(hj6h]hNote}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(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.}(hjLhhhNhNubah}(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)}(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.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.}(hjshhhNhNubah}(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().}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_replace_rcu (C function)c.hlist_replace_rcuhNtauh1hhjhhhNhNubh)}(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.hhM=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM=ubj)}(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 hjhhhjhM=ubj/)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjԶsbc.hlist_replace_rcuasbuh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjGhhhNhNubah}(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:hj\ubh)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNjwjz)}j}]j(c.hlist_replace_rcuasbuh1hhj\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hjhhhNhNubah}(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-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)}(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.hhM5hj޷hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM=ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.)}(hj"h]hstruct hlist_node *old}(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.hhM6hjubjD)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hM6hj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hM6hjubj")}(h5``struct hlist_node *new`` the new element to insert h](j()}(h``struct hlist_node *new``h]j.)}(hj[h]hstruct hlist_node *new}(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.hhM7hjUubjD)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphM7hjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphM7hjubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"hlists_swap_heads_rcu (C function)c.hlists_swap_heads_rcuhNtauh1hhjhhhNhNubh)}(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.hhMTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMTubj)}(hhlists_swap_heads_rcuh]j)}(hhlists_swap_heads_rcuh]hhlists_swap_heads_rcu}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMTubj/)}(h3(struct hlist_head *left, struct hlist_head *right)h](j5)}(hstruct hlist_head *lefth](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 hlist_headh]h hlist_head}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j)}jsj"sbc.hlists_swap_heads_rcuasbuh1hhj8ubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlefth]hleft}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(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}]jvc.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-uh1j4hj4ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMTubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMThjhhubj)}(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 hMTubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjGjjGjjjuh1hhhhjhNhNubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMOhjKubj)}(hhh](j")}(h7``struct hlist_head *left`` The hlist head on the left h](j()}(h``struct hlist_head *left``h]j.)}(hjph]hstruct hlist_head *left}(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.hhMLhjjubjD)}(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&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjgubj")}(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}(hjºhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMMhjgubeh}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMOhjKubj)}(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}(hj hhhNhNubah}(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.hhMPhj"ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj!hMOhjubj")}(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 [}(hjVhhhNhNubj)}(h**left**h]hleft}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh ][node2 ... ]}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMQhjRubjD)}(hhh]j)}(h[**right** ][node1 ... ]h](h[}(hjzhhhNhNubj)}(h **right**h]hright}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh ][node1 ... ]}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMRhjwubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjvhMQhjubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_head_rcu (C function)c.hlist_add_head_rcuhNtauh1hhjhhhNhNubh)}(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}(hjͻhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɻhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMyubh)}(h h]h }(hjܻhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɻhhhjۻhMyubj)}(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 hjɻhhhjۻhMyubj/)}(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: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 }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_head *hh](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 hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jDc.hlist_add_head_rcuasbuh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjżhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hj-ah]hh}(hjҼhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(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ۻhMyhj»hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj»hhhjۻhMyubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]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.hhMjhjubj)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhhjCubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhhj$ubj")}(h-``struct hlist_head *h`` the list to add to. h](j()}(h``struct hlist_head *h``h]j.)}(hjfh]hstruct hlist_head *h}(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.hhMihj`ubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hMihj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hMihj$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().}(hjƽhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_tail_rcu (C function)c.hlist_add_tail_rcuhNtauh1hhjhhhNhNubh)}(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}(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 hlist_nodeh]h hlist_node}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_add_tail_rcuasbuh1hhj.ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hj~hhhNhNubah}(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 reftargetjþmodnameN classnameNjwjz)}j}]jlc.hlist_add_tail_rcuasbuh1hhjubh)}(h h]h }(hj߾hhhNhNubah}(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,jjjuh1hhhhjhNhNubj)}(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)}(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:416: ./include/linux/rculist.hhMhj0ubj)}(hhh](j")}(h>``struct hlist_node *n`` the element to add to the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hjUh]hstruct hlist_node *n}(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$the element to add to the hash list.h]h$the element to add to the hash list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhMhjLubj")}(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!hjhMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubj)}(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.hhMhj0ubj)}(hVAdds the specified element to the specified hlist, while permitting racing traversals.h]hVAdds the specified element to the specified hlist, while permitting racing traversals.}(hj߿hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj0ubj)}(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.hhMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!hlist_add_before_rcu (C function)c.hlist_add_before_rcuhNtauh1hhjhhhNhNubh)}(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&]uh1jhj:ubah}(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}(hjZhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjVubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]j)}jsj@sbc.hlist_add_before_rcuasbuh1hhjVubh)}(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-uh1j4hjRubj5)}(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}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubeh}(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]h}(h]h ]h"]h$]h&]uh1jhjhhhj+hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjhNhNubj)}(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.Kh](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.hhMhjYubj)}(hhh](j")}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hj~h]hstruct hlist_node *n}(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.hhMhjxubjD)}(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&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjuubj")}(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!hjhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubj)}(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.hhMhjYubj)}(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.hhMhjYubj)}(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.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhjhhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBhhhjThMubj)}(hhlist_add_behind_rcuh]j)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjBhhhjThMubj/)}(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: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)}jsjisbc.hlist_add_behind_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-uh1j4hj{ubj5)}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.hlist_add_behind_rcuasbuh1hhjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprevh]hprev}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubeh}(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]h}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjhNhNubj)}(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.hhMhjubj)}(hhh](j")}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(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&]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)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"hlist_for_each_entry_rcu (C macro)c.hlist_for_each_entry_rcuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_rcuh]h)}(hhlist_for_each_entry_rcuh]j)}(hhlist_for_each_entry_rcuh]j)}(hjih]hhlist_for_each_entry_rcu}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhjhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjhhubj<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;8hjhMhjhhubj)}(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&]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.)}(hj2h]hhead}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhjubj")}(h9``member`` the name of the hlist_node within the struct. h](j()}(h ``member``h]j.)}(hjkh]hmember}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjeubjD)}(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&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#hlist_for_each_entry_srcu (C macro)c.hlist_for_each_entry_srcuhNtauh1hhjhhhNhNubh)}(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 hj hhh\/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&]jjqjjTjjTjjjuh1hhhhjhNhNubj)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j.)}(hjZh]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjhhubj<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}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjpubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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.)}(hj h]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 hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMhjubj")}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j()}(h``cond``h]j.)}(hjYh]hcond}(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:416: ./include/linux/rculist.hhMhjSubjD)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*hlist_for_each_entry_rcu_notrace (C macro)"c.hlist_for_each_entry_rcu_notracehNtauh1hhjhhhNhNubh)}(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&]jjqjj jj jjjuh1hhhhjhNhNubj)}(h8``hlist_for_each_entry_rcu_notrace (pos, head, member)``h]j.)}(hjh]h4hlist_for_each_entry_rcu_notrace (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjhhubj<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;8hj7hMhjhhubj)}(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)}(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.hhMhj>ubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjch]hpos}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhjZubj")}(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!hjhMhjZubj")}(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!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&]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.}(hj5hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%hlist_for_each_entry_rcu_bh (C macro)c.hlist_for_each_entry_rcu_bhhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_rcu_bhh]h)}(hhlist_for_each_entry_rcu_bhh]j)}(hhlist_for_each_entry_rcu_bhh]j)}(hj^h]hhlist_for_each_entry_rcu_bh}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(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-juh1hjjhj\hhhj{hM,ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj{hM,hjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hM,ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hjhhubj<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#hjhhubj)}(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%hj!ubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(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")}(h9``member`` the name of the hlist_node within the struct. h](j()}(h ``member``h]j.)}(hj`h]hmember}(hjbhhhNhNubah}(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&hjZubjD)}(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&]uh1jhjuhM&hjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhM&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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+hlist_for_each_entry_continue_rcu (C macro)#c.hlist_for_each_entry_continue_rcuhNtauh1hhjhhhNhNubh)}(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.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)}(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.hhM:hjhhubj<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}(hj0hhhNhNubah}(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>hM4hjhhubj)}(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)}(hjKh]h Parameters}(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.hhM8hjEubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjjh]hpos}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM5hjdubjD)}(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&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhM5hjaubj")}(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!hjhM7hjaubeh}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(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_bhhNtauh1hhjhhhNhNubh)}(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.hhMDubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMDhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMDubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj-jj-jjjuh1hhhhjhNhNubj)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j.)}(hj3h]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMFhjhhubj<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}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM@hjIubah}(h]h ]h"]h$]h&]uh1j;8hj[hM@hjhhubj)}(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)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMDhjbubj)}(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.hhMAhjubjD)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMAhj~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.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!hjhMChj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'hlist_for_each_entry_from_rcu (C macro)c.hlist_for_each_entry_from_rcuhNtauh1hhjhhhNhNubh)}(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.hhMPubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hMPubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMPhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hMPubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjJjjJjjjuh1hhhhjhNhNubj)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j.)}(hjPh]h+hlist_for_each_entry_from_rcu (pos, member)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMRhjhhubj<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}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMLhjfubah}(h]h ]h"]h$]h&]uh1j;8hjxhMLhjhhubj)}(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.hhMPhjubj)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%hlist_nulls_del_init_rcu (C function)c.hlist_nulls_del_init_rcuhNtauh1hhjhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK!ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3hhhjEhK!ubj)}(hhlist_nulls_del_init_rcuh]j)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj3hhhjEhK!ubj/)}(h(struct hlist_nulls_node *n)h]j5)}(hstruct hlist_nulls_node *nh](j;)}(hj>h]hstruct}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(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)}jsjZsbc.hlist_nulls_del_init_rcuasbuh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubah}(h]h ]h"]h$]h&]j,j-uh1j.hj3hhhjEhK!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj/hhhjEhK!ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhK!hj,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,hhhjEhK!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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$]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.)}(hj7h]hstruct hlist_nulls_node *n}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj1ubjD)}(hhh]j)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhKhjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjrh]hNote}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_nulls_first_rcu (C macro)c.hlist_nulls_first_rcuhNtauh1hhjhhhNhNubh)}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h ``hlist_nulls_first_rcu (head)``h]j.)}(hj#h]hhlist_nulls_first_rcu (head)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK/hjhhubj<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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK*hj9ubah}(h]h ]h"]h$]h&]uh1j;8hjKhK*hjhhubj)}(h0**Parameters** ``head`` the head of the list.h](j)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK.hjRubj)}(hhh]j")}(h``head`` the head of the list.h](j()}(h``head``h]j.)}(hjwh]hhead}(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:418: ./include/linux/rculist_nulls.hhK0hjqubjD)}(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&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhK0hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_nulls_next_rcu (C macro)c.hlist_nulls_next_rcuhNtauh1hhjhhhNhNubh)}(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.hhK4ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK4hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK4ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``hlist_nulls_next_rcu (node)``h]j.)}(hjh]hhlist_nulls_next_rcu (node)}(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.hhK6hjhhubj<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 }(hj!hhhNhNubj)}(h**node**h]hnode}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh.}(hj!hhhNhNubeh}(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;8hjAhK1hjhhubj)}(h/**Parameters** ``node`` element of the list.h](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(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.hhK5hjHubj)}(hhh]j")}(h``node`` element of the list.h](j()}(h``node``h]j.)}(hjmh]hnode}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK7hjgubjD)}(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&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhK7hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ hlist_nulls_del_rcu (C function)c.hlist_nulls_del_rcuhNtauh1hhjhhhNhNubh)}(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.hhKJubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKJubj)}(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 hjhhhjhKJubj/)}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj"hhhNhNubah}(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 }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjPhhhNhNubah}(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-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKJhjhhubj)}(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&]uh1jhjhhhjhKJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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 }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]jc.hlist_nulls_add_head_rcuasbuh1hhj'ubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hj-ah]hh}(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.hjyhhhjhKcubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjhKcubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhKchjrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjrhhhjhKcubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.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.hhKShjubjD)}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hKShjubeh}(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&]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.}(hjghhhNhNubah}(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().}(hjvhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%hlist_nulls_add_tail_rcu (C function)c.hlist_nulls_add_tail_rcuhNtauh1hhjhhhNhNubh)}(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.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(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 hjhhhjhKubj/)}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj.hhhNhNubah}(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_nulls_head *hh](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)}(hhlist_nulls_headh]hhlist_nulls_head}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]jc.hlist_nulls_add_tail_rcuasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hj-ah]hh}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhKshjubj)}(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-hj<ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKrhj8ubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShKrhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShKrhjubeh}(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&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(hlist_nulls_for_each_entry_rcu (C macro) c.hlist_nulls_for_each_entry_rcuhNtauh1hhjhhhNhNubh)}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhKhjhhubj<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+hKhjhhubj)}(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)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj2ubj)}(hhh](j")}(h-``tpos`` the type * to use as a loop cursor. h](j()}(h``tpos``h]j.)}(hjWh]htpos}(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:418: ./include/linux/rculist_nulls.hhKhjQubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhKhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhKhjNubj")}(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!hjhKhjNubj")}(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!hjhKhjNubj")}(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-hj#ubah}(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&]uh1jhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hKhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(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.hhKhj2ubj)}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)hlist_nulls_for_each_entry_safe (C macro)!c.hlist_nulls_for_each_entry_safehNtauh1hhjhhhNhNubh)}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhKhjhhubj<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;8hjhKhjhhubj)}(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)}(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.hhKhj ubj)}(hhh](j")}(h-``tpos`` the type * to use as a loop cursor. h](j()}(h``tpos``h]j.)}(hj/h]htpos}(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: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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhKhj&ubj")}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjhh]hpos}(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:418: ./include/linux/rculist_nulls.hhKhjbubjD)}(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_nodeuh1hhj}hKhjubh to use as a loop cursor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj}hKhj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hKhj&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&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_is_idle (C function)c.rcu_sync_is_idlehNtauh1hhjhhhNhNubh)}(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}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjShhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhK ubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjShhhjdhK ubj)}(hrcu_sync_is_idleh]j)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjShhhjdhK 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 }(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)}jsjysbc.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.hjShhhjdhK ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjOhhhjdhK ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjdhK hjLhhubj)}(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&]uh1jhjLhhhjdhK ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj.jj.jjjuh1hhhhjhNhNubj)}(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)}(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:420: ./include/linux/rcu_sync.hhKhj2ubj)}(hhh]j")}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j()}(h``struct rcu_sync *rsp``h]j.)}(hjWh]hstruct rcu_sync *rsp}(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:420: ./include/linux/rcu_sync.hhKhjQubjD)}(hhh]j)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhKhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhKhjNubah}(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:420: ./include/linux/rcu_sync.hhKhj2ubj)}(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.hhKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_init (C function)c.rcu_sync_inithNtauh1hhjhhhNhNubh)}(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:hjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_initasbuh1hhjubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(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 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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_func (C function)c.rcu_sync_funchNtauh1hhjhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK9ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj@hK9ubj)}(h rcu_sync_funch]j)}(h rcu_sync_funch]h rcu_sync_func}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj@hK9ubj/)}(h(struct rcu_head *rhp)h]j5)}(hstruct rcu_head *rhph](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)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjUsbc.rcu_sync_funcasbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hrhph]hrhp}(hjhhhNhNubah}(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@hK9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*hhhj@hK9ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hK9hj'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@hK9ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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'hjubj)}(hhh]j")}(h^``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization h](j()}(h``struct rcu_head *rhp``h]j.)}(hj3h]hstruct rcu_head *rhp}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhK$hjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhK$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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK&hjubj)}(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&hjubj)}(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*hjubj)}(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-hjubj)}(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.chK1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_enter (C function)c.rcu_sync_enterhNtauh1hhjhhhNhNubh)}(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.chKiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKiubj)}(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 hjhhhjhKiubj/)}(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}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_enterasbuh1hhjubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKihjhhubj)}(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&]uh1jhjhhhjhKiubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.h]hX*This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths.}(hj2hhhNhNubah}(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().}(hjAhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_exit (C function)c.rcu_sync_exithNtauh1hhjhhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhV/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&]uh1hhjlhhhj~hKubj)}(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 hjlhhhj~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)}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.hjlhhhj~hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhj~hKubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj~hKhjehhubj)}(hhh]j)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hj0hhhNhNubah}(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&]uh1jhjehhhj~hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHjjHjjjuh1hhhhjhNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjLubj)}(hhh]j")}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j()}(h``struct rcu_sync *rsp``h]j.)}(hjqh]hstruct rcu_sync *rsp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjkubjD)}(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&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(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.chKhjLubj)}(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.chKhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_dtor (C function)c.rcu_sync_dtorhNtauh1hhjhhhNhNubh)}(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&]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}(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_synch]hrcu_sync}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_dtorasbuh1hhj*ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(hj hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_tasks_percpu (C struct)c.rcu_tasks_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hrcu_tasks_percpuh]h)}(hstruct rcu_tasks_percpuh](j;)}(hj>h]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjHhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHhhhjYhKubj)}(hrcu_tasks_percpuh]j)}(hjFh]hrcu_tasks_percpu}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjHhhhjYhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhjYhKubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjYhKhjAhhubj)}(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&]uh1jhjAhhhjYhKubeh}(h]h ](jqstructeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h0``lock`` Lock protecting per-CPU callback list. h](j()}(h``lock``h]j.)}(hj4h]hlock}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhKhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhKhjubj")}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j()}(h``rtp_jiffies``h]j.)}(hjmh]h rtp_jiffies}(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.hhKhjgubjD)}(hhh]j)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(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.}(hj1hhhNhNubah}(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.)}(hjQh]hrtp_work}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK hjKubjD)}(hhh]j)}(h"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhK hjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhK 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&]uh1jhjhK#hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK#hjubj")}(hD``rtp_exit_list`` List of tasks in the latter portion of do_exit(). h](j()}(h``rtp_exit_list``h]j.)}(hj5h]h rtp_exit_list}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(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().}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhK$hjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhK$hjubj")}(h0``cpu`` CPU number corresponding to this entry. h](j()}(h``cpu``h]j.)}(hjnh]hcpu}(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.hhK%hjhubjD)}(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&]uh1jChjhubeh}(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}(hj:hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK-ubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhjGhK-ubj)}(h rcu_tasksh]j)}(hj4h]h rcu_tasks}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6hhhjGhK-ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj2hhhjGhK-ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjGhK-hj/hhubj)}(hhh]j)}(h*Definition for a Tasks-RCU-like mechanism.h]h*Definition for a Tasks-RCU-like mechanism.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK:hjyhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjGhK-ubeh}(h]h ](jqstructeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhjhKhjUubjD)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphK>hjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphK>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}(hjAhhhNhNubah}(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.hhKChj9ubjD)}(hhh]j)}(h%Time of last **gp_state** transition.h](h Time of last }(hjXhhhNhNubj)}(h **gp_state**h]hgp_state}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh transition.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjThKChjUubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hjThKChjubj")}(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&]uh1jhjhKFhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKFhjubj")}(h.``n_ipis_fails`` Number of IPI-send failures. h](j()}(h``n_ipis_fails``h]j.)}(hj5h]h n_ipis_fails}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhKGhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhKGhjubj")}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j()}(h``kthread_ptr``h]j.)}(hjnh]h kthread_ptr}(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.hhKHhjhubjD)}(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&]uh1jChjhubeh}(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).}(hj2hhhNhNubah}(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.)}(hjRh]h pertask_func}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKKhjLubjD)}(hhh]j)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghKKhjhubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjghKKhjubj")}(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.)}(hj6h]h call_func}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKOhj0ubjD)}(hhh]j)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhKOhjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhKOhjubj")}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j()}(h``wait_state``h]j.)}(hjoh]h wait_state}(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.hhKPhjiubjD)}(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&]uh1jChjiubeh}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hKShj0ubah}(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.)}(hjSh]hpercpu_enqueue_lim}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKThjMubjD)}(hhh]j)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhKThjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhKThjubj")}(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.)}(hj7h]hbarrier_q_count}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKXhj1ubjD)}(hhh]j)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhKXhjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhKXhjubj")}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j()}(h``barrier_q_completion``h]j.)}(hjph]hbarrier_q_completion}(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.hhKYhjjubjD)}(hhh]j)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKYhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hK\hj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hK\hjubj")}(h%``kname`` This flavor's kthread name.h](j()}(h ``kname``h]j.)}(hjTh]hkname}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK\hjNubjD)}(hhh]j)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK]hjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihK\hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_rcu_tasks (C function)c.call_rcu_taskshNtauh1hhjhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.call_rcu_tasksasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hjDhhhNhNubah}(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&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j%c.call_rcu_tasksasbuh1hhjYubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(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&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubj")}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j()}(h``rcu_callback_t func``h]j.)}(hj0h]hrcu_callback_t func}(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.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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"synchronize_rcu_tasks (C function)c.synchronize_rcu_taskshNtauh1hhjhhhNhNubh)}(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.hhMhj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>jj>jjjuh1hhhhjhNhNubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjBubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjgh]hvoid}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjaubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhj^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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjBubj)}(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.hhMhjBubj)}(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.hhMhjBubj)}(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.hhMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_barrier_tasks (C function)c.rcu_barrier_taskshNtauh1hhjhhhNhNubh)}(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&]uh1jhj"ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(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.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'synchronize_rcu_tasks_rude (C function)c.synchronize_rcu_tasks_rudehNtauh1hhjhhhNhNubh)}(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.hhMubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hMubj)}(hsynchronize_rcu_tasks_rudeh]j)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(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)}(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.hhMohjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMshjubj)}(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.hhMvhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMxhjubj)}(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.hhMphjubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMwhjubj)}(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.}(hjDhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!call_rcu_tasks_trace (C function)c.call_rcu_tasks_tracehNtauh1hhjhhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhhW/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&]uh1hhjohhhjhMubj)}(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 hjohhhjhMubj/)}(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}(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&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]jc.call_rcu_tasks_traceasbuh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfunch]hfunc}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjhMubeh}(yh]h ]h"]h$]h&]j,j-juh1hjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhhubj)}(hhh]j)}(h.Queue a callback trace task-based grace periodh]h.Queue a callback trace task-based grace period}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(hjhhhNhNubah}(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)}(hj0h]h Description}(hj2hhhNhNubah}(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().}(hjFhhhNhNubah}(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.}(hjUhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(synchronize_rcu_tasks_trace (C function)c.synchronize_rcu_tasks_tracehNtauh1hhjhhhNhNubh)}(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&]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_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 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-juh1hjjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjyhhubj)}(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&]uh1jhjyhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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}(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.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.hhMhj&ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhj#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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(hX3Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().h]hX3Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().}(hj}hhhNhNubah}(h]h ]h"]h$]h&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$rcu_barrier_tasks_trace (C function)c.rcu_barrier_tasks_tracehNtauh1hhjhhhNhNubh)}(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.}(hj1hhhNhNubah}(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&]jjqjjIjjIjjjuh1hhhhjhNhNubj)}(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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjMubj)}(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'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjlubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjiubah}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjMubj)}(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.hhMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ rcu_cpu_stall_reset (C function)c.rcu_cpu_stall_resethNtauh1hhjhhhNhNubh)}(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&]uh1jhjubah}(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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhK{hjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhjhNhNubj)}(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)}(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:426: ./kernel/rcu/tree_stall.hhKhjuubj)}(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&]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:426: ./kernel/rcu/tree_stall.hhKhjuubj)}(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.hhK|hjuubj)}(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.hhKhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.rcu_stall_chain_notifier_register (C function)#c.rcu_stall_chain_notifier_registerhNtauh1hhjhhhNhNubh)}(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.hhM:ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhhj7hM:ubj)}(h!rcu_stall_chain_notifier_registerh]j)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%hhhj7hM:ubj/)}(h(struct notifier_block *n)h]j5)}(hstruct notifier_block *nh](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)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjLsb#c.rcu_stall_chain_notifier_registerasbuh1hhjbubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hj h]hn}(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.hj%hhhj7hM:ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj7hM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hM:hjhhubj)}(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.hhM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hM:ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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)}(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:426: ./kernel/rcu/tree_stall.hhM4hjubj)}(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.hhM1hj#ubjD)}(hhh]j)}(h Entry to add.h]h Entry to add.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hM1hj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hM1hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhM3hjubj)}(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 }(hjzhhhNhNubj)}(h **action**h]haction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh passed to a notifier will be }(hjzhhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh or friends. The }(hjzhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhM3hjubj)}(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.hhM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ0rcu_stall_chain_notifier_unregister (C function)%c.rcu_stall_chain_notifier_unregisterhNtauh1hhjhhhNhNubh)}(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.hhMNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMNubj)}(h#rcu_stall_chain_notifier_unregisterh]j)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMNubj/)}(h(struct notifier_block *n)h]j5)}(hstruct notifier_block *nh](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)}(hnotifier_blockh]hnotifier_block}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj#sb%c.rcu_stall_chain_notifier_unregisterasbuh1hhj9ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMNubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMNhjhhubj)}(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.hhMGhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMNubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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.hhMKhjubj)}(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.hhMHhjubjD)}(hhh]j)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMHhjubah}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMJhjubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMJhjubj)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hj`hhhNhNubj.)}(h ``-ENOENT``h]h-ENOENT}(hjhhhhNhNubah}(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.hhMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ rcu_read_lock_trace (C function)c.rcu_read_lock_tracehNtauh1hhjhhhNhNubh)}(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.hhK1ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK1ubj)}(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 hjhhhjhK1ubj/)}(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.hjhhhjhK1ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK1hjhhubj)}(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&]uh1jhjhhhjhK1ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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.)}(hjIh]hvoid}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK-hjCubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hK-hj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hK-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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK/hj$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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_read_unlock_trace (C function)c.rcu_read_unlock_tracehNtauh1hhjhhhNhNubh)}(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.hhKFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKFubj)}(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 hjhhhjhKFubj/)}(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.hjhhhjhKFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKFhjhhubj)}(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>hj<hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjWjjWjjjuh1hhhhjhNhNubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(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.hhKBhj[ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'hc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKEhjzubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKEhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhKEhjwubah}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKGhj[ubj)}(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?hj[ubj)}(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.hhKChj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsynchronize_rcu_mult (C macro)c.synchronize_rcu_multhNtauh1hhjhhhNhNubh)}(hhh](h)}(hsynchronize_rcu_multh]h)}(hsynchronize_rcu_multh]j)}(hsynchronize_rcu_multh]j)}(hj h]hsynchronize_rcu_mult}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhb/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?jjjuh1hhhhjhNhNubj)}(h``synchronize_rcu_mult (...)``h]j.)}(hjEh]hsynchronize_rcu_mult (...)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK=hjhhubj<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'hj[ubah}(h]h ]h"]h$]h&]uh1j;8hjmhK'hjhhubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK+hjtubj)}(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&]uh1jhjtubj)}(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*hjtubj)}(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*hjtubj)}(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.hhK1hjtubj)}(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.hhK6hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_init (C function) c.rcuref_inithNtauh1hhjhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3hhhjEhKubj)}(h rcuref_inith]j)}(h rcuref_inith]h rcuref_init}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj3hhhjEhKubj/)}(h!(rcuref_t *ref, unsigned int cnt)h](j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j)}jsjZsb c.rcuref_initasbuh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(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-uh1j4hjlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj3hhhjEhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj/hhhjEhKubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhKhj,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,hhhjEhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjhNhNubj)}(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)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjIubj)}(hhh](j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hjnh]h rcuref_t *ref}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjhubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjeubj")}(h>``unsigned int cnt`` The initial reference count typically '1'h](j()}(h``unsigned int cnt``h]j.)}(hjh]hunsigned int cnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubjD)}(hhh]j)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hjhhhNhNubah}(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&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_read (C function) c.rcuref_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(h(unsigned int rcuref_read (rcuref_t *ref)h]h)}(h'unsigned int rcuref_read(rcuref_t *ref)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK#ubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhK#ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK#ubj)}(h rcuref_readh]j)}(h rcuref_readh]h rcuref_read}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK#ubj/)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj_modnameN classnameNjwjz)}j}]j)}jsj@sb c.rcuref_readasbuh1hhjVubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubah}(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)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hw**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Return** The number of held references (0 ... N)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:432: ./include/linux/rcuref.hhK"hjubj)}(hhh]j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(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 **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.hhK!hjubj)}(h'The number of held references (0 ... N)h]h'The number of held references (0 ... N)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_get (C function) c.rcuref_gethNtauh1hhjhhhNhNubh)}(hhh](h)}(hbool rcuref_get (rcuref_t *ref)h]h)}(hbool rcuref_get(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.hhK=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK=ubj)}(h rcuref_geth]j)}(h rcuref_geth]h rcuref_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK=ubj/)}(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_getasbuh1hhjubh)}(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.hjhhhjhK=ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhjhK=ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhK=hjxhhubj)}(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.hhK.hj$hhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhK=ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjhNhNubj)}(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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK2hjCubj)}(hhh]j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hjhh]h rcuref_t *ref}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK/hjbubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hK/hj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hK/hj_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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK1hjCubj)}(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.hhK1hjCubj)}(hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.ch]hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK3hjCubj)}(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.hhK7hjCubj<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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK7hjubj)}(h-True if a reference was successfully acquiredh]h-True if a reference was successfully acquired}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK:hjubeh}(h]h ]h"]h$]h&]uh1j;8hjhK7hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_put_rcusafe (C function)c.rcuref_put_rcusafehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'bool rcuref_put_rcusafe (rcuref_t *ref)h]h)}(h&bool rcuref_put_rcusafe(rcuref_t *ref)h](h)}(hjoh]hbool}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKzubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3hhhjDhKzubj)}(hrcuref_put_rcusafeh]j)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj3hhhjDhKzubj/)}(h(rcuref_t *ref)h]j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsjYsbc.rcuref_put_rcusafeasbuh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubah}(h]h ]h"]h$]h&]j,j-uh1j.hj3hhhjDhKzubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj/hhhjDhKzubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjDhKzhj,hhubj)}(hhh]j)}(hhh]j)}(h;Release one reference for a rcuref reference count RCU safeh]j)}(hjh]h;Release one reference for a rcuref reference count RCU safe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKehjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKehjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjDhKzubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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)}(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.hhKihj 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}(hj0 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.hhKfhj( ubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC hKfhjD ubah}(h]h ]h"]h$]h&]uh1jChj( ubeh}(h]h ]h"]h$]h&]uh1j!hjC hKfhj% ubah}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhhj ubj)}(hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.h]hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.:}}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhhj ubj)}(hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify.h]hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()’ed and atomic contexts qualify.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKlhj 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.hhKqhj ubj<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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKqhj ubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.h]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.hhKuhj ubeh}(h]h ]h"]h$]h&]uh1j;8hj hKqhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_put (C function) c.rcuref_puthNtauh1hhjhhhNhNubh)}(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&]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 hKubj)}(h rcuref_puth]j)}(h rcuref_puth]h rcuref_put}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 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}(hj< hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9 ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj> modnameN classnameNjwjz)}j}]j)}jsj sb c.rcuref_putasbuh1hhj5 ubh)}(h h]h }(hj\ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5 ubj)}(hjh]h*}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5 ubj)}(hrefh]href}(hjw hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5 ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1 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)}(hhh]j)}(h2Release one reference for a rcuref reference counth]j)}(hj h]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.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhj hNubah}(h]h ]h"]h$]h&]jjuh1jhj hKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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)}(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.hhKhj ubj)}(hhh]j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hj h]h rcuref_t *ref}(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**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:432: ./include/linux/rcuref.hhKhj ubj)}(h Can be invoked from any context.h]h Can be invoked from any context.}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj ubj)}(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.}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj ubj)}(h **Return**h]j)}(hje h]hReturn}(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.hhKhj ubj<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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj{ ubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj{ ubeh}(h]h ]h"]h$]h&]uh1j;8hj hKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,same_state_synchronize_rcu_full (C function)!c.same_state_synchronize_rcu_fullhNtauh1hhjhhhNhNubh)}(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.hhKDubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hKDubj)}(hsame_state_synchronize_rcu_fullh]j)}(hsame_state_synchronize_rcu_fullh]hsame_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 hKDubj/)}(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 }(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 sb!c.same_state_synchronize_rcu_fullasbuh1hhj 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)}(hrgosp1h]hrgosp1}(hjX hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct rcu_gp_oldstate *rgosp2h](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)}(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}]j9 !c.same_state_synchronize_rcu_fullasbuh1hhjm 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)}(hrgosp2h]hrgosp2}(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 hKDubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hKDubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKDhj 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK3hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKDubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(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)}(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:434: ./include/linux/rcutree.hhK7hj ubj)}(hhh](j")}(h:``struct rcu_gp_oldstate *rgosp1`` First old-state value. h](j()}(h"``struct rcu_gp_oldstate *rgosp1``h]j.)}(hj3 h]hstruct rcu_gp_oldstate *rgosp1}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1 ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK4hj- ubjD)}(hhh]j)}(hFirst old-state value.h]hFirst old-state value.}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH hK4hjI ubah}(h]h ]h"]h$]h&]uh1jChj- ubeh}(h]h ]h"]h$]h&]uh1j!hjH hK4hj* ubj")}(h;``struct rcu_gp_oldstate *rgosp2`` Second old-state value. h](j()}(h"``struct rcu_gp_oldstate *rgosp2``h]j.)}(hjl h]hstruct rcu_gp_oldstate *rgosp2}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjj ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK5hjf ubjD)}(hhh]j)}(hSecond old-state value.h]hSecond old-state value.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hK5hj ubah}(h]h ]h"]h$]h&]uh1jChjf ubeh}(h]h ]h"]h$]h&]uh1j!hj hK5hj* 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:434: ./include/linux/rcutree.hhK7hj ubj)}(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 }(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK7hj ubj)}(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](hhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]read-copy-update-rcuah ]h"]read-copy update (rcu)ah$]h&]uh1hhjhhhhhMubeh}(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_handlerjderror_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}(j?j<jVjSjlajiajxjujdajaajjjHjEjjj^jjjjjj jjjjȇjŇj<j<jSjSj^j^jgjgjBj?jjjj jjj%j"jjj 'j'j'j&jJ.jG.jm)jj)j.j.j+j+j.j.jB.j?.jwjwj~1j{1jtjtjwjvjzjzjZjWjjj$Wj!Wjtjtjjj7j4j/j,u nametypes}(j?jVjlajxjdajjHjj^jjj jjȇj<jSj^jgjBjjjj%jj 'j'jJ.jm)j.j+j.jB.jwj~1jtjwjzjZjj$Wjtjj7j/uh}(j<hjShhhjjjjjjjwj|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 jjjjjOjTjŇjj<jjjjjj jjjjNjSjjjrjwj j j!j!j$j$j&j&j'j'j)j)j+j+j.j.j/j/j{1j1jT3jY3j-5j25j7j7j8j8j:j:jSj<j<j<j?j?jRBjWBjCDjHDj2Fj7FjyIj~IjLjLjNjNjQjQj^jSjSjSjiUjnUjVjVjXjXjYj"Yj6Zj;Zj@[jE[jJ\jO\j]j]jgj^j^j^j`j`jbjbjdjdjFfjKfj?jgjgjgjgijlijlj ljnjnj5qj:qj"sj'sjujuj#wj(wjyjyjzzjzj{j{jN}jS}j~j~j"j'jkjpjjEjbjgjjj jˇjj܇jjj0j5jjj.j3jzjj0j5jǖj̖j|jj"j'jLjQj\jajjjjjwj|jūjʫjjjOjTjjj#j(j'j,j jjnjsj"jjj$jAjFj^jcjjjjjjjBjGj&j+j jjjjjjjjjjjjjjj jjjjjjjjjjjbjgjFjKjjj#j(jujzjjjRjWjj jjjGjLjjjjjjjjjjjjjjjMjRjjjjj'j(j&jGjdjijjjFjKjLjQj%j*j1j6jjjj#jjj j j j jjjjjNjSjjj"j'jjjjjjjjjjjj j-!j2!j#j!#j$j$jG.j 'jj)j'j;'j@'j.jp)j+j**j.j +j?.j.jwjM.j{1j^.j{.j.jK0jP0jtj1j1j1j4j4j8j8jC;jH;j=j=j@j@jAjAjCjCjEjEjGjGjIj!IjMjMjQjQj~UjUjZjZj\j\j^j^j`j`jcjcjfjfj6ij;ij'lj,ljQnjVnj@qjEqjvjtjtjujzj wj(wj-wjPxjUxj{j{jt}jy}jjjj jjjjj7j<jLJj̇jWj\jjjwj|jjjjjړjߓjjjZj_jj jjjʠjϠjjj]jbj jjjjױjܱjjjjjjjֹj۹jjjjjjjjjPjUjjjjjjjKjPjjjqjvjFjKjjjjjjj j%jjj.j3j2j7jmjrj!j&jQjVj{jjjjjjjjjj)j.jjjjjjjjj&j+j j j^ jc jjjjjjjhjmj~jjjjjjf#jk#j'j'j*j*j -j-j0j0j2j2j6j6j8j8j:j:j=j=j?j?jAjAj/Dj4DjeHjjHjLjLjNjNj!Qj&Qj7Sjj>j@j @jjCjoCjxFj}FjHjHjIJjNJjMjMjQjQj,Tj1TjVjVjXjXj=ZjBZj[j[j?]jD]j^j^jd`ji`jajajcjcj5ej:ej gjgjYhj^hjjjjjPkjUkjxlj}ljpjpjsjsjwjwjSyjXyjWjzjzjzj}j}j!j&jjjjjkjpjojtjjjqjvj̏jяjMjRjjjjjjj!j&jӛj؛jjjjjjjyj~jæjȦjũjʩjjjjjjjرjݱjjjjj׶jܶjWj\jojtjϽjԽjjjOjTjjjjjjjj]jzjjj$jjj!Wjjjjjjhjmjjj/j4jjjjjjj%j*jjjjjjj>jCjjjjjjjCjHj jjjjjjmjrjjj(j-jjj<jAjjj>jCjjjjjRjWj j j^ jc jvj{jZj_jjjjjejjjjj!j"!js#jx#j$j$jd(ji(j+j+j.j.j1j1jB3jG3j6j6j:j:j=j=j&?j+?j@jAjBjBjrDjwDjFjFjHjHj>JjCJjKjKjOjOjQj QjRjRj UjUjtj'WjDWjIWjYjYj\j\j`j`jbjbjejejZhj_hjjjjjmjmjvoj{oj/qj4qjrjrjjtjujuj[wj`wjxjyjfzjkzj|j|j~j~jgjljjjׄj܄jXj]jjjjjjjYj^jjjUjZjjjjjjj˚jКjƝj˝j<jAjԢj٢j{jjvj{jΪjӪj&j+jj"jjj jj޸jjjjjjjj jjjjjjbjgjjjjjjjjjjj&j+jjjjjjjwj|j jjjj"j'jLjQjj jjjjjjjZj_j4jj,jjjjjjjjjjjjEjJjjjjjRjWjjj,j1jjjjjVj[j~jjjjj jIjNjjj j j j j j j j jWj\jjjjjjj$j)jLjQjjjjjzjjjj`jejjj4 j9 jy"j~"j#j#j$j$j%j%j'j'j)j)j,j,jz-j-j /j/jQ0jV0j1j1j73j<3j4j4j6j6j8j8j:j:jC<jH<jk=jp=j>j>j?j?j;Aj@AjBjBjLDjQDjFjFjGjGj IjIj2Jj7JjZKj_KjLjLjMjMjOj"OjPjPjRj$RjSjSjTjTj(Vj-Vj5Xj:XjYjYj[j[j\j\j]j]j_j_jlajqajIcjNcjdjdjxfj}fjhjhjjj jjBljGlj~njnjmpjrpj\rjarjKtjPtjujujvjvj:xj?xjyjyj;{j@{j~j ~jjjjj>jCjۄjjjjpjuj jjËjȋjjjjjjjjjjjߖjjjjjjojjjjĠjjjAjFjjjkjpj/j4jjjjj8j=jjjQjVjjjjjjjjŻjjjjj9j>jbjgjjjjjWj\jjjjj jj*j/jjjjjjjpjujjjjjjjJjOjjj%j*jjjcjhjjj?jDj-j2jjjjjjj j%jfjkjwj|jjjjjj!u(jjjjjjjjj*j/jjjvj{j*j/j j j j u 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}jrKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.