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/listmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/zh_TW/core-api/listmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/it_IT/core-api/listmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ja_JP/core-api/listmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ko_KR/core-api/listmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/pt_BR/core-api/listmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/sp_SP/core-api/listmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h!SPDX-License-Identifier: GPL-2.0+h]h!SPDX-License-Identifier: GPL-2.0+}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh;/var/lib/git/docbuild/linux/Documentation/core-api/list.rsthKubhsection)}(hhh](htitle)}(hLinked Lists in Linuxh]hLinked Lists in Linux}(hhhhhNhNubah}(h]h ]h"]h$]h&]refidid1uh1hhhhhhhhKubh field_list)}(hhh]hfield)}(hhh](h field_name)}(hAuthorh]hAuthor}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(h6Nicolas Frattaroli h]h paragraph)}(h5Nicolas Frattaroli h](hNicolas Frattaroli <}(hjhhhNhNubh reference)}(h nicolas.frattaroli@collabora.comh]h nicolas.frattaroli@collabora.com}(hj hhhNhNubah}(h]h ]h"]h$]h&]refuri'mailto:nicolas.frattaroli@collabora.comuh1j hjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhtopic)}(h Contents h](h)}(hContentsh]hContents}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hhhK ubh bullet_list)}(hhh]h list_item)}(hhh](j)}(hhh]j )}(hhh]hLinked Lists in Linux}(hjXhhhNhNubah}(h]hah ]h"]h$]h&]refidlinked-lists-in-linuxuh1j hjUubah}(h]h ]h"]h$]h&]uh1hhjRubjL)}(hhh](jQ)}(hhh]j)}(hhh]j )}(hhh]h Introduction}(hjvhhhNhNubah}(h]id2ah ]h"]h$]h&]refid introductionuh1j hjsubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1jPhjmubjQ)}(hhh](j)}(hhh]j )}(hhh]h+Linux implementation of doubly linked lists}(hjhhhNhNubah}(h]id3ah ]h"]h$]h&]refid+linux-implementation-of-doubly-linked-listsuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubjL)}(hhh](jQ)}(hhh]j)}(hhh]j )}(hhh]hDeclaring a node}(hjhhhNhNubah}(h]id4ah ]h"]h$]h&]refiddeclaring-a-nodeuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]h!Declaring and initializing a list}(hjhhhNhNubah}(h]id5ah ]h"]h$]h&]refid!declaring-and-initializing-a-listuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hAdding nodes to the list}(hjhhhNhNubah}(h]id6ah ]h"]h$]h&]refidadding-nodes-to-the-listuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hTraversing the list}(hjhhhNhNubah}(h]id7ah ]h"]h$]h&]refidtraversing-the-listuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hRemoving nodes from the list}(hj?hhhNhNubah}(h]id8ah ]h"]h$]h&]refidremoving-nodes-from-the-listuh1j hj<ubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]h Traversing whilst removing nodes}(hjahhhNhNubah}(h]id9ah ]h"]h$]h&]refid traversing-whilst-removing-nodesuh1j hj^ubah}(h]h ]h"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hCutting a list}(hjhhhNhNubah}(h]id10ah ]h"]h$]h&]refidcutting-a-listuh1j hjubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]h Moving entries and partial lists}(hjhhhNhNubah}(h]id11ah ]h"]h$]h&]refid moving-entries-and-partial-listsuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hRotating entries}(hjhhhNhNubah}(h]id12ah ]h"]h$]h&]refidrotating-entriesuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hSwapping entries}(hjhhhNhNubah}(h]id13ah ]h"]h$]h&]refidswapping-entriesuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hSplicing two lists together}(hj hhhNhNubah}(h]id14ah ]h"]h$]h&]refidsplicing-two-lists-togetheruh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hConcurrency considerations}(hj-hhhNhNubah}(h]id15ah ]h"]h$]h&]refidconcurrency-considerationsuh1j hj*ubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]j)}(hhh]j )}(hhh]hFurther reading}(hjOhhhNhNubah}(h]id16ah ]h"]h$]h&]refidfurther-readinguh1j hjLubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]uh1jPhjmubjQ)}(hhh]j)}(hhh]j )}(hhh]h Full List API}(hj}hhhNhNubah}(h]id17ah ]h"]h$]h&]refid full-list-apiuh1j hjzubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1jPhjmubjQ)}(hhh]j)}(hhh]j )}(hhh]hPrivate List API}(hjhhhNhNubah}(h]id18ah ]h"]h$]h&]refidprivate-list-apiuh1j hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jPhjmubeh}(h]h ]h"]h$]h&]uh1jKhjRubeh}(h]h ]h"]h$]h&]uh1jPhjMubah}(h]h ]h"]h$]h&]uh1jKhj9hhhNhNubeh}(h]contentsah ]contentsah"]contentsah$]h&]uh1j7hhhK hhhhubh)}(hhh](h)}(h Introductionh]h Introduction}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhK ubj)}(hX<Linked lists are one of the most basic data structures used in many programs. The Linux kernel implements several different flavours of linked lists. The purpose of this document is not to explain linked lists in general, but to show new kernel developers how to use the Linux kernel implementations of linked lists.h]hX<Linked lists are one of the most basic data structures used in many programs. The Linux kernel implements several different flavours of linked lists. The purpose of this document is not to explain linked lists in general, but to show new kernel developers how to use the Linux kernel implementations of linked lists.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hXPlease note that while linked lists certainly are ubiquitous, they are rarely the best data structure to use in cases where a simple array doesn't already suffice. In particular, due to their poor data locality, linked lists are a bad choice in situations where performance may be of consideration. Familiarizing oneself with other in-kernel generic data structures, especially for concurrent accesses, is highly encouraged.h]hXPlease note that while linked lists certainly are ubiquitous, they are rarely the best data structure to use in cases where a simple array doesn’t already suffice. In particular, due to their poor data locality, linked lists are a bad choice in situations where performance may be of consideration. Familiarizing oneself with other in-kernel generic data structures, especially for concurrent accesses, is highly encouraged.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]jah ]h"] introductionah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h+Linux implementation of doubly linked listsh]h+Linux implementation of doubly linked lists}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhKubj)}(h`Linux's linked list implementations can be used by including the header file ````.h](hOLinux’s linked list implementations can be used by including the header file }(hjhhhNhNubhliteral)}(h````h]h}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj)}(hThe doubly-linked list will likely be the most familiar to many readers. It's a list that can efficiently be traversed forwards and backwards.h]hThe doubly-linked list will likely be the most familiar to many readers. It’s a list that can efficiently be traversed forwards and backwards.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hj hhubj)}(hXThe Linux kernel's doubly-linked list is circular in nature. This means that to get from the head node to the tail, we can just travel one edge backwards. Similarly, to get from the tail node to the head, we can simply travel forwards "beyond" the tail and arrive back at the head.h]hXThe Linux kernel’s doubly-linked list is circular in nature. This means that to get from the head node to the tail, we can just travel one edge backwards. Similarly, to get from the tail node to the head, we can simply travel forwards “beyond” the tail and arrive back at the head.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hj hhubh)}(hhh](h)}(hDeclaring a nodeh]hDeclaring a node}(hj\hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjYhhhhhK*ubj)}(hA node in a doubly-linked list is declared by adding a struct list_head member to the data structure you wish to be contained in the list:h]hA node in a doubly-linked list is declared by adding a struct list_head member to the data structure you wish to be contained in the list:}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjYhhubh literal_block)}(hstruct clown { unsigned long long shoe_size; const char *name; struct list_head node; /* the aforementioned member */ };h]hstruct clown { unsigned long long shoe_size; const char *name; struct list_head node; /* the aforementioned member */ };}hjzsbah}(h]h ]h"]h$]h&]hhƌforcelanguagechighlight_args}uh1jxhhhK/hjYhhubj)}(hXZThis may be an unfamiliar approach to some, as the classical explanation of a linked list is a list node data structure with pointers to the previous and next list node, as well the payload data. Linux chooses this approach because it allows for generic list modification code regardless of what data structure is contained within the list. Since the struct list_head member is not a pointer but part of the data structure proper, the container_of() pattern can be used by the list implementation to access the payload data regardless of its type, while staying oblivious to what said type actually is.h]hXZThis may be an unfamiliar approach to some, as the classical explanation of a linked list is a list node data structure with pointers to the previous and next list node, as well the payload data. Linux chooses this approach because it allows for generic list modification code regardless of what data structure is contained within the list. Since the struct list_head member is not a pointer but part of the data structure proper, the container_of() pattern can be used by the list implementation to access the payload data regardless of its type, while staying oblivious to what said type actually is.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjYhhubeh}(h]jah ]h"]declaring a nodeah$]h&]uh1hhj hhhhhK*ubh)}(hhh](h)}(h!Declaring and initializing a listh]h!Declaring and initializing a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKAubj)}(hA doubly-linked list can then be declared as just another struct list_head, and initialized with the LIST_HEAD_INIT() macro during initial assignment, or with the INIT_LIST_HEAD() function later:h]hA doubly-linked list can then be declared as just another struct list_head, and initialized with the LIST_HEAD_INIT() macro during initial assignment, or with the INIT_LIST_HEAD() function later:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChjhhubjy)}(hXstruct clown_car { int tyre_pressure[4]; struct list_head clowns; /* Looks like a node! */ }; /* ... Somewhere later in our driver ... */ static int circus_init(struct circus_priv *circus) { struct clown_car other_car = { .tyre_pressure = {10, 12, 11, 9}, .clowns = LIST_HEAD_INIT(other_car.clowns) }; INIT_LIST_HEAD(&circus->car.clowns); return 0; }h]hXstruct clown_car { int tyre_pressure[4]; struct list_head clowns; /* Looks like a node! */ }; /* ... Somewhere later in our driver ... */ static int circus_init(struct circus_priv *circus) { struct clown_car other_car = { .tyre_pressure = {10, 12, 11, 9}, .clowns = LIST_HEAD_INIT(other_car.clowns) }; INIT_LIST_HEAD(&circus->car.clowns); return 0; }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhKGhjhhubj)}(hA further point of confusion to some may be that the list itself doesn't really have its own type. The concept of the entire linked list and a struct list_head member that points to other entries in the list are one and the same.h]hA further point of confusion to some may be that the list itself doesn’t really have its own type. The concept of the entire linked list and a struct list_head member that points to other entries in the list are one and the same.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjhhubeh}(h]jah ]h"]!declaring and initializing a listah$]h&]uh1hhj hhhhhKAubh)}(hhh](h)}(hAdding nodes to the listh]hAdding nodes to the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKbubj)}(hFAdding a node to the linked list is done through the list_add() macro.h]hFAdding a node to the linked list is done through the list_add() macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhjhhubj)}(hTWe'll return to our clown car example to illustrate how nodes get added to the list:h]hVWe’ll return to our clown car example to illustrate how nodes get added to the list:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjhhubjy)}(hXstatic int circus_fill_car(struct circus_priv *circus) { struct clown_car *car = &circus->car; struct clown *grock; struct clown *dimitri; /* State 1 */ grock = kzalloc_obj(*grock); if (!grock) return -ENOMEM; grock->name = "Grock"; grock->shoe_size = 1000; /* Note that we're adding the "node" member */ list_add(&grock->node, &car->clowns); /* State 2 */ dimitri = kzalloc_obj(*dimitri); if (!dimitri) return -ENOMEM; dimitri->name = "Dimitri"; dimitri->shoe_size = 50; list_add(&dimitri->node, &car->clowns); /* State 3 */ return 0; }h]hXstatic int circus_fill_car(struct circus_priv *circus) { struct clown_car *car = &circus->car; struct clown *grock; struct clown *dimitri; /* State 1 */ grock = kzalloc_obj(*grock); if (!grock) return -ENOMEM; grock->name = "Grock"; grock->shoe_size = 1000; /* Note that we're adding the "node" member */ list_add(&grock->node, &car->clowns); /* State 2 */ dimitri = kzalloc_obj(*dimitri); if (!dimitri) return -ENOMEM; dimitri->name = "Dimitri"; dimitri->shoe_size = 50; list_add(&dimitri->node, &car->clowns); /* State 3 */ return 0; }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhKihjhhubj)}(h/In State 1, our list of clowns is still empty::h]h.In State 1, our list of clowns is still empty:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(hB .------. v | .--------. | | clowns |--' '--------'h]hB .------. v | .--------. | | clowns |--' '--------'}hj/sbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjhhubj)}(hThis diagram shows the singular "clowns" node pointing at itself. In this diagram, and all following diagrams, only the forward edges are shown, to aid in clarity.h]hThis diagram shows the singular “clowns” node pointing at itself. In this diagram, and all following diagrams, only the forward edges are shown, to aid in clarity.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h3In State 2, we've added Grock after the list head::h]h4In State 2, we’ve added Grock after the list head:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(h .--------------------. v | .--------. .-------. | | clowns |---->| Grock |--' '--------' '-------'h]h .--------------------. v | .--------. .-------. | | clowns |---->| Grock |--' '--------' '-------'}hjYsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjhhubj)}(hThis diagram shows the "clowns" node pointing at a new node labeled "Grock". The Grock node is pointing back at the "clowns" node.h]hThis diagram shows the “clowns” node pointing at a new node labeled “Grock”. The Grock node is pointing back at the “clowns” node.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hQIn State 3, we've added Dimitri after the list head, resulting in the following::h]hRIn State 3, we’ve added Dimitri after the list head, resulting in the following:}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(h .------------------------------------. v | .--------. .---------. .-------. | | clowns |---->| Dimitri |---->| Grock |--' '--------' '---------' '-------'h]h .------------------------------------. v | .--------. .---------. .-------. | | clowns |---->| Dimitri |---->| Grock |--' '--------' '---------' '-------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjhhubj)}(hThis diagram shows the "clowns" node pointing at a new node labeled "Dimitri", which then points at the node labeled "Grock". The "Grock" node still points back at the "clowns" node.h]hThis diagram shows the “clowns” node pointing at a new node labeled “Dimitri”, which then points at the node labeled “Grock”. The “Grock” node still points back at the “clowns” node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hIf we wanted to have Dimitri inserted at the end of the list instead, we'd use list_add_tail(). Our code would then look like this:h]hIf we wanted to have Dimitri inserted at the end of the list instead, we’d use list_add_tail(). Our code would then look like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(hstatic int circus_fill_car(struct circus_priv *circus) { /* ... */ list_add_tail(&dimitri->node, &car->clowns); /* State 3b */ return 0; }h]hstatic int circus_fill_car(struct circus_priv *circus) { /* ... */ list_add_tail(&dimitri->node, &car->clowns); /* State 3b */ return 0; }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhKhjhhubj)}(h$This results in the following list::h]h#This results in the following list:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(h .------------------------------------. v | .--------. .-------. .---------. | | clowns |---->| Grock |---->| Dimitri |--' '--------' '-------' '---------'h]h .------------------------------------. v | .--------. .-------. .---------. | | clowns |---->| Grock |---->| Dimitri |--' '--------' '-------' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhKhjhhubj)}(hThis diagram shows the "clowns" node pointing at the node labeled "Grock", which points at the new node labeled "Dimitri". The node labeled "Dimitri" points back at the "clowns" node.h]hThis diagram shows the “clowns” node pointing at the node labeled “Grock”, which points at the new node labeled “Dimitri”. The node labeled “Dimitri” points back at the “clowns” node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]j ah ]h"]adding nodes to the listah$]h&]uh1hhj hhhhhKbubh)}(hhh](h)}(hTraversing the listh]hTraversing the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hj&uh1hhjhhhhhKubj)}(hXTo iterate the list, we can loop through all nodes within the list with list_for_each().h]hXTo iterate the list, we can loop through all nodes within the list with list_for_each().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hJIn our clown example, this results in the following somewhat awkward code:h]hJIn our clown example, this results in the following somewhat awkward code:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(hXstatic unsigned long long circus_get_max_shoe_size(struct circus_priv *circus) { unsigned long long res = 0; struct clown *e; struct list_head *cur; list_for_each(cur, &circus->car.clowns) { e = list_entry(cur, struct clown, node); if (e->shoe_size > res) res = e->shoe_size; } return res; }h]hXstatic unsigned long long circus_get_max_shoe_size(struct circus_priv *circus) { unsigned long long res = 0; struct clown *e; struct list_head *cur; list_for_each(cur, &circus->car.clowns) { e = list_entry(cur, struct clown, node); if (e->shoe_size > res) res = e->shoe_size; } return res; }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhKhjhhubj)}(hThe list_entry() macro internally uses the aforementioned container_of() to retrieve the data structure instance that ``node`` is a member of.h](hvThe list_entry() macro internally uses the aforementioned container_of() to retrieve the data structure instance that }(hj)hhhNhNubj$)}(h``node``h]hnode}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj)ubh is a member of.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hXBNote how the additional list_entry() call is a little awkward here. It's only there because we're iterating through the ``node`` members, but we really want to iterate through the payload, i.e. the ``struct clown`` that contains each node's struct list_head. For this reason, there is a second macro: list_for_each_entry()h](h|Note how the additional list_entry() call is a little awkward here. It’s only there because we’re iterating through the }(hjIhhhNhNubj$)}(h``node``h]hnode}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjIubhF members, but we really want to iterate through the payload, i.e. the }(hjIhhhNhNubj$)}(h``struct clown``h]h struct clown}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjIubhn that contains each node’s struct list_head. For this reason, there is a second macro: list_for_each_entry()}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h6Using it would change our code to something like this:h]h6Using it would change our code to something like this:}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjy)}(hX?static unsigned long long circus_get_max_shoe_size(struct circus_priv *circus) { unsigned long long res = 0; struct clown *e; list_for_each_entry(e, &circus->car.clowns, node) { if (e->shoe_size > res) res = e->shoe_size; } return res; }h]hX?static unsigned long long circus_get_max_shoe_size(struct circus_priv *circus) { unsigned long long res = 0; struct clown *e; list_for_each_entry(e, &circus->car.clowns, node) { if (e->shoe_size > res) res = e->shoe_size; } return res; }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhKhjhhubj)}(hXThis eliminates the need for the list_entry() step, and our loop cursor is now of the type of our payload. The macro is given the member name that corresponds to the list's struct list_head within the clown data structure so that it can still walk the list.h]hXThis eliminates the need for the list_entry() step, and our loop cursor is now of the type of our payload. The macro is given the member name that corresponds to the list’s struct list_head within the clown data structure so that it can still walk the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]j,ah ]h"]traversing the listah$]h&]uh1hhj hhhhhKubh)}(hhh](h)}(hRemoving nodes from the listh]hRemoving nodes from the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjHuh1hhjhhhhhMubj)}(hThe list_del() function can be used to remove entries from the list. It not only removes the given entry from the list, but poisons the entry's ``prev`` and ``next`` pointers, so that unintended use of the entry after removal does not go unnoticed.h](hThe list_del() function can be used to remove entries from the list. It not only removes the given entry from the list, but poisons the entry’s }(hjhhhNhNubj$)}(h``prev``h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh and }(hjhhhNhNubj$)}(h``next``h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubhS pointers, so that unintended use of the entry after removal does not go unnoticed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(h@We can extend our previous example to remove one of the entries:h]h@We can extend our previous example to remove one of the entries:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubjy)}(hstatic int circus_fill_car(struct circus_priv *circus) { /* ... */ list_add(&dimitri->node, &car->clowns); /* State 3 */ list_del(&dimitri->node); /* State 4 */ return 0; }h]hstatic int circus_fill_car(struct circus_priv *circus) { /* ... */ list_add(&dimitri->node, &car->clowns); /* State 3 */ list_del(&dimitri->node); /* State 4 */ return 0; }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhM hjhhubj)}(h"The result of this would be this::h]h!The result of this would be this:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h .--------------------. v | .--------. .-------. | .---------. | clowns |---->| Grock |--' | Dimitri | '--------' '-------' '---------'h]h .--------------------. v | .--------. .-------. | .---------. | clowns |---->| Grock |--' | Dimitri | '--------' '-------' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjhhubj)}(hThis diagram shows the "clowns" node pointing at the node labeled "Grock", which points back at the "clowns" node. Off to the side is a lone node labeled "Dimitri", which has no arrows pointing anywhere.h]hThis diagram shows the “clowns” node pointing at the node labeled “Grock”, which points back at the “clowns” node. Off to the side is a lone node labeled “Dimitri”, which has no arrows pointing anywhere.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjhhubj)}(hNote how the Dimitri node does not point to itself; its pointers are intentionally set to a "poison" value that the list code refuses to traverse.h]hNote how the Dimitri node does not point to itself; its pointers are intentionally set to a “poison” value that the list code refuses to traverse.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM)hjhhubj)}(hIf we wanted to reinitialize the removed node instead to make it point at itself again like an empty list head, we can use list_del_init() instead:h]hIf we wanted to reinitialize the removed node instead to make it point at itself again like an empty list head, we can use list_del_init() instead:}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hjhhubjy)}(hstatic int circus_fill_car(struct circus_priv *circus) { /* ... */ list_add(&dimitri->node, &car->clowns); /* State 3 */ list_del_init(&dimitri->node); /* State 4b */ return 0; }h]hstatic int circus_fill_car(struct circus_priv *circus) { /* ... */ list_add(&dimitri->node, &car->clowns); /* State 3 */ list_del_init(&dimitri->node); /* State 4b */ return 0; }}hjSsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhM/hjhhubj)}(h;This results in the deleted node pointing to itself again::h]h:This results in the deleted node pointing to itself again:}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjhhubjy)}(h .--------------------. .-------. v | v | .--------. .-------. | .---------. | | clowns |---->| Grock |--' | Dimitri |--' '--------' '-------' '---------'h]h .--------------------. .-------. v | v | .--------. .-------. | .---------. | | clowns |---->| Grock |--' | Dimitri |--' '--------' '-------' '---------'}hjpsbah}(h]h ]h"]h$]h&]hhuh1jxhhhMBhjhhubj)}(hThis diagram shows the "clowns" node pointing at the node labeled "Grock", which points back at the "clowns" node. Off to the side is a lone node labeled "Dimitri", which points to itself.h]hThis diagram shows the “clowns” node pointing at the node labeled “Grock”, which points back at the “clowns” node. Off to the side is a lone node labeled “Dimitri”, which points to itself.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjhhubeh}(h]jNah ]h"]removing nodes from the listah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(h Traversing whilst removing nodesh]h Traversing whilst removing nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjjuh1hhjhhhhhMMubj)}(hX Deleting entries while we're traversing the list will cause problems if we use list_for_each() and list_for_each_entry(), as deleting the current entry would modify the ``next`` pointer of it, which means the traversal can't properly advance to the next list entry.h](hDeleting entries while we’re traversing the list will cause problems if we use list_for_each() and list_for_each_entry(), as deleting the current entry would modify the }(hjhhhNhNubj$)}(h``next``h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubhZ pointer of it, which means the traversal can’t properly advance to the next list entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMOhjhhubj)}(hThere is a solution to this however: list_for_each_safe() and list_for_each_entry_safe(). These take an additional parameter of a pointer to a struct list_head to use as temporary storage for the next entry during iteration, solving the issue.h]hThere is a solution to this however: list_for_each_safe() and list_for_each_entry_safe(). These take an additional parameter of a pointer to a struct list_head to use as temporary storage for the next entry during iteration, solving the issue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjhhubj)}(hAn example of how to use it:h]hAn example of how to use it:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjhhubjy)}(hXMstatic void circus_eject_insufficient_clowns(struct circus_priv *circus) { struct clown *e; struct clown *n; /* temporary storage for safe iteration */ list_for_each_entry_safe(e, n, &circus->car.clowns, node) { if (e->shoe_size < 500) list_del(&e->node); } }h]hXMstatic void circus_eject_insufficient_clowns(struct circus_priv *circus) { struct clown *e; struct clown *n; /* temporary storage for safe iteration */ list_for_each_entry_safe(e, n, &circus->car.clowns, node) { if (e->shoe_size < 500) list_del(&e->node); } }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhM[hjhhubj)}(hProper memory management (i.e. freeing the deleted node while making sure nothing still references it) in this case is left as an exercise to the reader.h]hProper memory management (i.e. freeing the deleted node while making sure nothing still references it) in this case is left as an exercise to the reader.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhhjhhubeh}(h]jpah ]h"] traversing whilst removing nodesah$]h&]uh1hhj hhhhhMMubh)}(hhh](h)}(hCutting a listh]hCutting a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhMlubj)}(hThere are two helper functions to cut lists with. Both take elements from the list ``head``, and replace the contents of the list ``list``.h](hSThere are two helper functions to cut lists with. Both take elements from the list }(hjhhhNhNubj$)}(h``head``h]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh', and replace the contents of the list }(hjhhhNhNubj$)}(h``list``h]hlist}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMnhjhhubj)}(hThe first such function is list_cut_position(). It removes all list entries from ``head`` up to and including ``entry``, placing them in ``list`` instead.h](hQThe first such function is list_cut_position(). It removes all list entries from }(hjGhhhNhNubj$)}(h``head``h]hhead}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubh up to and including }(hjGhhhNhNubj$)}(h ``entry``h]hentry}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubh, placing them in }(hjGhhhNhNubj$)}(h``list``h]hlist}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubh instead.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMqhjhhubj)}(h@In this example, it's assumed we start with the following list::h]hAIn this example, it’s assumed we start with the following list:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthjhhubjy)}(hXd .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------'h]hXd .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhMvhjhhubj)}(hWith the following code, every clown up to and including "Pic" is moved from the "clowns" list head to a separate struct list_head initialized at local stack variable ``retirement``:h](hWith the following code, every clown up to and including “Pic” is moved from the “clowns” list head to a separate struct list_head initialized at local stack variable }(hjhhhNhNubj$)}(h``retirement``h]h retirement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM|hjhhubjy)}(hXzstatic void circus_retire_clowns(struct circus_priv *circus) { struct list_head retirement = LIST_HEAD_INIT(retirement); struct clown *grock, *dimitri, *pic, *alfredo; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ list_cut_position(&retirement, &car->clowns, &pic->node); /* State 1 */ }h]hXzstatic void circus_retire_clowns(struct circus_priv *circus) { struct list_head retirement = LIST_HEAD_INIT(retirement); struct clown *grock, *dimitri, *pic, *alfredo; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ list_cut_position(&retirement, &car->clowns, &pic->node); /* State 1 */ }}hjsbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMhjhhubj)}(h2The resulting ``car->clowns`` list would be this::h](hThe resulting }(hjhhhNhNubj$)}(h``car->clowns``h]h car->clowns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh list would be this:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h .----------------------. v | .--------. .---------. | | clowns |---->| Alfredo |--' '--------' '---------'h]h .----------------------. v | .--------. .---------. | | clowns |---->| Alfredo |--' '--------' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjhhubj)}(hDMeanwhile, the ``retirement`` list is transformed to the following::h](hMeanwhile, the }(hj hhhNhNubj$)}(h``retirement``h]h retirement}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh& list is transformed to the following:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(hX( .--------------------------------------------------. v | .------------. .-------. .---------. .-----. | | retirement |---->| Grock |---->| Dimitri |---->| Pic |--' '------------' '-------' '---------' '-----'h]hX( .--------------------------------------------------. v | .------------. .-------. .---------. .-----. | | retirement |---->| Grock |---->| Dimitri |---->| Pic |--' '------------' '-------' '---------' '-----'}hj$ sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjhhubj)}(hX The second function, list_cut_before(), is much the same, except it cuts before the ``entry`` node, i.e. it removes all list entries from ``head`` up to but excluding ``entry``, placing them in ``list`` instead. This example assumes the same initial starting list as the previous example:h](hTThe second function, list_cut_before(), is much the same, except it cuts before the }(hj2 hhhNhNubj$)}(h ``entry``h]hentry}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2 ubh- node, i.e. it removes all list entries from }(hj2 hhhNhNubj$)}(h``head``h]hhead}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2 ubh up to but excluding }(hj2 hhhNhNubj$)}(h ``entry``h]hentry}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2 ubh, placing them in }(hj2 hhhNhNubj$)}(h``list``h]hlist}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2 ubhV instead. This example assumes the same initial starting list as the previous example:}(hj2 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(hXystatic void circus_retire_clowns(struct circus_priv *circus) { struct list_head retirement = LIST_HEAD_INIT(retirement); struct clown *grock, *dimitri, *pic, *alfredo; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ list_cut_before(&retirement, &car->clowns, &pic->node); /* State 1b */ }h]hXystatic void circus_retire_clowns(struct circus_priv *circus) { struct list_head retirement = LIST_HEAD_INIT(retirement); struct clown *grock, *dimitri, *pic, *alfredo; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ list_cut_before(&retirement, &car->clowns, &pic->node); /* State 1b */ }}hj sbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMhjhhubj)}(h2The resulting ``car->clowns`` list would be this::h](hThe resulting }(hj hhhNhNubj$)}(h``car->clowns``h]h car->clowns}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh list would be this:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h .----------------------------------. v | .--------. .-----. .---------. | | clowns |---->| Pic |---->| Alfredo |--' '--------' '-----' '---------'h]h .----------------------------------. v | .--------. .-----. .---------. | | clowns |---->| Pic |---->| Alfredo |--' '--------' '-----' '---------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjhhubj)}(hDMeanwhile, the ``retirement`` list is transformed to the following::h](hMeanwhile, the }(hj hhhNhNubj$)}(h``retirement``h]h retirement}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh& list is transformed to the following:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjy)}(h .--------------------------------------. v | .------------. .-------. .---------. | | retirement |---->| Grock |---->| Dimitri |--' '------------' '-------' '---------'h]h .--------------------------------------. v | .------------. .-------. .---------. | | retirement |---->| Grock |---->| Dimitri |--' '------------' '-------' '---------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjhhubj)}(h~It should be noted that both functions will destroy links to any existing nodes in the destination ``struct list_head *list``.h](hcIt should be noted that both functions will destroy links to any existing nodes in the destination }(hj hhhNhNubj$)}(h``struct list_head *list``h]hstruct list_head *list}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]jah ]h"]cutting a listah$]h&]uh1hhj hhhhhMlubh)}(hhh](h)}(h Moving entries and partial listsh]h Moving entries and partial lists}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhMubj)}(hThe list_move() and list_move_tail() functions can be used to move an entry from one list to another, to either the start or end respectively.h]hThe list_move() and list_move_tail() functions can be used to move an entry from one list to another, to either the start or end respectively.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(hIn the following example, we'll assume we start with two lists ("clowns" and "sidewalk") in the following initial state "State 0"::h]hIn the following example, we’ll assume we start with two lists (“clowns” and “sidewalk”) in the following initial state “State 0”:}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(hX .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------' .-------------------. v | .----------. .-----. | | sidewalk |---->| Pio |--' '----------' '-----'h]hX .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------' .-------------------. v | .----------. .-----. | | sidewalk |---->| Pio |--' '----------' '-----'}hjG sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhj hhubj)}(h5We apply the following example code to the two lists:h]h5We apply the following example code to the two lists:}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(hXstatic void circus_clowns_exit_car(struct circus_priv *circus) { struct list_head sidewalk = LIST_HEAD_INIT(sidewalk); struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_move(&pic->node, &sidewalk); /* State 1 */ list_move_tail(&dimitri->node, &sidewalk); /* State 2 */ }h]hXstatic void circus_clowns_exit_car(struct circus_priv *circus) { struct list_head sidewalk = LIST_HEAD_INIT(sidewalk); struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_move(&pic->node, &sidewalk); /* State 1 */ list_move_tail(&dimitri->node, &sidewalk); /* State 2 */ }}hjc sbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMhj hhubj)}(h2In State 1, we arrive at the following situation::h]h1In State 1, we arrive at the following situation:}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(hX* .-----------------------------------------------------. | | v | .--------. .-------. .---------. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Alfredo |--' '--------' '-------' '---------' '---------' .-------------------------------. v | .----------. .-----. .-----. | | sidewalk |---->| Pic |---->| Pio |--' '----------' '-----' '-----'h]hX* .-----------------------------------------------------. | | v | .--------. .-------. .---------. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Alfredo |--' '--------' '-------' '---------' '---------' .-------------------------------. v | .----------. .-----. .-----. | | sidewalk |---->| Pic |---->| Pio |--' '----------' '-----' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhj hhubj)}(haIn State 2, after we've moved Dimitri to the tail of sidewalk, the situation changes as follows::h]hbIn State 2, after we’ve moved Dimitri to the tail of sidewalk, the situation changes as follows:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(hX .-------------------------------------. | | v | .--------. .-------. .---------. | | clowns |---->| Grock |---->| Alfredo |--' '--------' '-------' '---------' .-----------------------------------------------. v | .----------. .-----. .-----. .---------. | | sidewalk |---->| Pic |---->| Pio |---->| Dimitri |--' '----------' '-----' '-----' '---------'h]hX .-------------------------------------. | | v | .--------. .-------. .---------. | | clowns |---->| Grock |---->| Alfredo |--' '--------' '-------' '---------' .-----------------------------------------------. v | .----------. .-----. .-----. .---------. | | sidewalk |---->| Pic |---->| Pio |---->| Dimitri |--' '----------' '-----' '-----' '---------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhj hhubj)}(hX*As long as the source and destination list head are part of the same list, we can also efficiently bulk move a segment of the list to the tail end of the list. We continue the previous example by adding a list_bulk_move_tail() after State 2, moving Pic and Pio to the tail end of the sidewalk list.h]hX*As long as the source and destination list head are part of the same list, we can also efficiently bulk move a segment of the list to the tail end of the list. We continue the previous example by adding a list_bulk_move_tail() after State 2, moving Pic and Pio to the tail end of the sidewalk list.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(hX static void circus_clowns_exit_car(struct circus_priv *circus) { struct list_head sidewalk = LIST_HEAD_INIT(sidewalk); struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_move(&pic->node, &sidewalk); /* State 1 */ list_move_tail(&dimitri->node, &sidewalk); /* State 2 */ list_bulk_move_tail(&sidewalk, &pic->node, &pio->node); /* State 3 */ }h]hX static void circus_clowns_exit_car(struct circus_priv *circus) { struct list_head sidewalk = LIST_HEAD_INIT(sidewalk); struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_move(&pic->node, &sidewalk); /* State 1 */ list_move_tail(&dimitri->node, &sidewalk); /* State 2 */ list_bulk_move_tail(&sidewalk, &pic->node, &pio->node); /* State 3 */ }}hj sbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMhj hhubj)}(hkFor the sake of brevity, only the altered "sidewalk" list at State 3 is depicted in the following diagram::h]hnFor the sake of brevity, only the altered “sidewalk” list at State 3 is depicted in the following diagram:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hj hhubjy)}(hX .-----------------------------------------------. v | .----------. .---------. .-----. .-----. | | sidewalk |---->| Dimitri |---->| Pic |---->| Pio |--' '----------' '---------' '-----' '-----'h]hX .-----------------------------------------------. v | .----------. .---------. .-----. .-----. | | sidewalk |---->| Dimitri |---->| Pic |---->| Pio |--' '----------' '---------' '-----' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhM2hj hhubj)}(hX Do note that list_bulk_move_tail() does not do any checking as to whether all three supplied ``struct list_head *`` parameters really do belong to the same list. If you use it outside the constraints the documentation gives, then the result is a matter between you and the implementation.h](h]Do note that list_bulk_move_tail() does not do any checking as to whether all three supplied }(hj hhhNhNubj$)}(h``struct list_head *``h]hstruct list_head *}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh parameters really do belong to the same list. If you use it outside the constraints the documentation gives, then the result is a matter between you and the implementation.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM8hj hhubeh}(h]jah ]h"] moving entries and partial listsah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(hRotating entriesh]hRotating entries}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhM>ubj)}(hA common write operation on lists, especially when using them as queues, is to rotate it. A list rotation means entries at the front are sent to the back.h]hA common write operation on lists, especially when using them as queues, is to rotate it. A list rotation means entries at the front are sent to the back.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hj hhubj)}(hXFFor rotation, Linux provides us with two functions: list_rotate_left() and list_rotate_to_front(). The former can be pictured like a bicycle chain, taking the entry after the supplied ``struct list_head *`` and moving it to the tail, which in essence means the entire list, due to its circular nature, rotates by one position.h](hFor rotation, Linux provides us with two functions: list_rotate_left() and list_rotate_to_front(). The former can be pictured like a bicycle chain, taking the entry after the supplied }(hj) hhhNhNubj$)}(h``struct list_head *``h]hstruct list_head *}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj) ubhx and moving it to the tail, which in essence means the entire list, due to its circular nature, rotates by one position.}(hj) hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMChj hhubj)}(hThe latter, list_rotate_to_front(), takes the same concept one step further: instead of advancing the list by one entry, it advances it *until* the specified entry is the new front.h](hThe latter, list_rotate_to_front(), takes the same concept one step further: instead of advancing the list by one entry, it advances it }(hjI hhhNhNubhemphasis)}(h*until*h]huntil}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1jQ hjI ubh& the specified entry is the new front.}(hjI hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMIhj hhubj)}(hIIn the following example, our starting state, State 0, is the following::h]hHIn the following example, our starting state, State 0, is the following:}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhj hhubjy)}(hXj .-----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-' '--------' '-------' '---------' '-----' '---------' '-----'h]hXj .-----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-' '--------' '-------' '---------' '-----' '---------' '-----'}hjy sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMOhj hhubj)}(hKThe example code being used to demonstrate list rotations is the following:h]hKThe example code being used to demonstrate list rotations is the following:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj hhubjy)}(hXstatic void circus_clowns_rotate(struct circus_priv *circus) { struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_rotate_left(&car->clowns); /* State 1 */ list_rotate_to_front(&alfredo->node, &car->clowns); /* State 2 */ }h]hXstatic void circus_clowns_rotate(struct circus_priv *circus) { struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_rotate_left(&car->clowns); /* State 1 */ list_rotate_to_front(&alfredo->node, &car->clowns); /* State 2 */ }}hj sbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMWhj hhubj)}(h2In State 1, we arrive at the following situation::h]h1In State 1, we arrive at the following situation:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj hhubjy)}(hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .---------. .-----. .-------. | | clowns |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-->| Grock |-' '--------' '---------' '-----' '---------' '-----' '-------'h]hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .---------. .-----. .-------. | | clowns |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-->| Grock |-' '--------' '---------' '-----' '---------' '-----' '-------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMnhj hhubj)}(hQNext, after the list_rotate_to_front() call, we arrive in the following State 2::h]hPNext, after the list_rotate_to_front() call, we arrive in the following State 2:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthj hhubjy)}(hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .-------. .---------. .-----. | | clowns |-->| Alfredo |-->| Pio |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '---------' '-----' '-------' '---------' '-----'h]hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .-------. .---------. .-----. | | clowns |-->| Alfredo |-->| Pio |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '---------' '-----' '-------' '---------' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMwhj hhubj)}(huAs is hopefully evident from the diagrams, the entries in front of "Alfredo" were cycled to the tail end of the list.h]hyAs is hopefully evident from the diagrams, the entries in front of “Alfredo” were cycled to the tail end of the list.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM}hj hhubeh}(h]jah ]h"]rotating entriesah$]h&]uh1hhj hhhhhM>ubh)}(hhh](h)}(hSwapping entriesh]hSwapping entries}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhMubj)}(hPAnother common operation is that two entries need to be swapped with each other.h]hPAnother common operation is that two entries need to be swapped with each other.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(h-For this, Linux provides us with list_swap().h]h-For this, Linux provides us with list_swap().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(h|In the following example, we have a list with three entries, and swap two of them. This is our starting state in "State 0"::h]hIn the following example, we have a list with three entries, and swap two of them. This is our starting state in “State 0”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(h .-----------------------------------------. v | .--------. .-------. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '-------' '---------' '-----'h]h .-----------------------------------------. v | .--------. .-------. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '-------' '---------' '-----'}hj, sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhj hhubjy)}(hX0static void circus_clowns_swap(struct circus_priv *circus) { struct clown *grock, *dimitri, *pic; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_swap(&dimitri->node, &pic->node); /* State 1 */ }h]hX0static void circus_clowns_swap(struct circus_priv *circus) { struct clown *grock, *dimitri, *pic; struct clown_car *car = &circus->car; /* ... clown initialization, list adding ... */ /* State 0 */ list_swap(&dimitri->node, &pic->node); /* State 1 */ }}hj: sbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMhj hhubj)}(h0The resulting list at State 1 is the following::h]h/The resulting list at State 1 is the following:}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjy)}(h .-----------------------------------------. v | .--------. .-------. .-----. .---------. | | clowns |-->| Grock |-->| Pic |-->| Dimitri |-' '--------' '-------' '-----' '---------'h]h .-----------------------------------------. v | .--------. .-------. .-----. .---------. | | clowns |-->| Grock |-->| Pic |-->| Dimitri |-' '--------' '-------' '-----' '---------'}hjW sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhj hhubj)}(hZAs is evident by comparing the diagrams, the "Pic" and "Dimitri" nodes have traded places.h]hbAs is evident by comparing the diagrams, the “Pic” and “Dimitri” nodes have traded places.}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]jah ]h"]swapping entriesah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(hSplicing two lists togetherh]hSplicing two lists together}(hj} hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjz hhhhhMubj)}(hSay we have two lists, in the following example one represented by a list head we call "knie" and one we call "stey". In a hypothetical circus acquisition, the two list of clowns should be spliced together. The following is our situation in "State 0"::h]hXSay we have two lists, in the following example one represented by a list head we call “knie” and one we call “stey”. In a hypothetical circus acquisition, the two list of clowns should be spliced together. The following is our situation in “State 0”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjz hhubjy)}(hX .-----------------------------------------. | | v | .------. .-------. .---------. .-----. | | knie |-->| Grock |-->| Dimitri |-->| Pic |--' '------' '-------' '---------' '-----' .-----------------------------. v | .------. .---------. .-----. | | stey |-->| Alfredo |-->| Pio |--' '------' '---------' '-----'h]hX .-----------------------------------------. | | v | .------. .-------. .---------. .-----. | | knie |-->| Grock |-->| Dimitri |-->| Pic |--' '------' '-------' '---------' '-----' .-----------------------------. v | .------. .---------. .-----. | | stey |-->| Alfredo |-->| Pio |--' '------' '---------' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjz hhubj)}(haThe function to splice these two lists together is list_splice(). Our example code is as follows:h]haThe function to splice these two lists together is list_splice(). Our example code is as follows:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjz hhubjy)}(hXKstatic void circus_clowns_splice(void) { struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct list_head knie = LIST_HEAD_INIT(knie); struct list_head stey = LIST_HEAD_INIT(stey); /* ... Clown allocation and initialization here ... */ list_add_tail(&grock->node, &knie); list_add_tail(&dimitri->node, &knie); list_add_tail(&pic->node, &knie); list_add_tail(&alfredo->node, &stey); list_add_tail(&pio->node, &stey); /* State 0 */ list_splice(&stey, &dimitri->node); /* State 1 */ }h]hXKstatic void circus_clowns_splice(void) { struct clown *grock, *dimitri, *pic, *alfredo, *pio; struct list_head knie = LIST_HEAD_INIT(knie); struct list_head stey = LIST_HEAD_INIT(stey); /* ... Clown allocation and initialization here ... */ list_add_tail(&grock->node, &knie); list_add_tail(&dimitri->node, &knie); list_add_tail(&pic->node, &knie); list_add_tail(&alfredo->node, &stey); list_add_tail(&pio->node, &stey); /* State 0 */ list_splice(&stey, &dimitri->node); /* State 1 */ }}hj sbah}(h]h ]h"]h$]h&]hhjjjj}uh1jxhhhMhjz hhubj)}(hThe list_splice() call here adds all the entries in ``stey`` to the list ``dimitri``'s ``node`` list_head is in, after the ``node`` of ``dimitri``. A somewhat surprising diagram of the resulting "State 1" follows::h](h4The list_splice() call here adds all the entries in }(hj hhhNhNubj$)}(h``stey``h]hstey}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh to the list }(hj hhhNhNubj$)}(h ``dimitri``h]hdimitri}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh’s }(hj hhhNhNubj$)}(h``node``h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh list_head is in, after the }(hj hhhNhNubj$)}(h``node``h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh of }(hj hhhNhNubj$)}(h ``dimitri``h]hdimitri}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubhG. A somewhat surprising diagram of the resulting “State 1” follows:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjz hhubjy)}(hX1 .-----------------------------------------------------------------. | | v | .------. .-------. .---------. .---------. .-----. .-----. | | knie |-->| Grock |-->| Dimitri |-->| Alfredo |-->| Pio |-->| Pic |--' '------' '-------' '---------' '---------' '-----' '-----' ^ .-------------------------------' | .------. | | stey |--' '------'h]hX1 .-----------------------------------------------------------------. | | v | .------. .-------. .---------. .---------. .-----. .-----. | | knie |-->| Grock |-->| Dimitri |-->| Alfredo |-->| Pio |-->| Pic |--' '------' '-------' '---------' '---------' '-----' '-----' ^ .-------------------------------' | .------. | | stey |--' '------'}hj, sbah}(h]h ]h"]h$]h&]hhuh1jxhhhMhjz hhubj)}(hTraversing the ``stey`` list no longer results in correct behavior. A call of list_for_each() on ``stey`` results in an infinite loop, as it never returns back to the ``stey`` list head.h](hTraversing the }(hj: hhhNhNubj$)}(h``stey``h]hstey}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj: ubhJ list no longer results in correct behavior. A call of list_for_each() on }(hj: hhhNhNubj$)}(h``stey``h]hstey}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj: ubh> results in an infinite loop, as it never returns back to the }(hj: hhhNhNubj$)}(h``stey``h]hstey}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj: ubh list head.}(hj: hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjz hhubj)}(hThis is because list_splice() did not reinitialize the list_head it took entries from, leaving its pointer pointing into what is now a different list.h]hThis is because list_splice() did not reinitialize the list_head it took entries from, leaving its pointer pointing into what is now a different list.}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjz hhubj)}(hIf we want to avoid this situation, list_splice_init() can be used. It does the same thing as list_splice(), except reinitializes the donor list_head after the transplant.h]hIf we want to avoid this situation, list_splice_init() can be used. It does the same thing as list_splice(), except reinitializes the donor list_head after the transplant.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjz hhubeh}(h]jah ]h"]splicing two lists togetherah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(hConcurrency considerationsh]hConcurrency considerations}(hj hhhNhNubah}(h]h ]h"]h$]h&]hj6uh1hhj hhhhhMubj)}(hXDConcurrent access and modification of a list needs to be protected with a lock in most cases. Alternatively and preferably, one may use the RCU primitives for lists in read-mostly use-cases, where read accesses to the list are common but modifications to the list less so. See Documentation/RCU/listRCU.rst for more details.h]hXDConcurrent access and modification of a list needs to be protected with a lock in most cases. Alternatively and preferably, one may use the RCU primitives for lists in read-mostly use-cases, where read accesses to the list are common but modifications to the list less so. See Documentation/RCU/listRCU.rst for more details.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]j<ah ]h"]concurrency considerationsah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(hFurther readingh]hFurther reading}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjXuh1hhj hhhhhMubjL)}(hhh]jQ)}(hl`How does the kernel implements Linked Lists? - KernelNewbies `_ h]j)}(hk`How does the kernel implements Linked Lists? - KernelNewbies `_h](j )}(hj h]hh]h}(h]9how-does-the-kernel-implements-linked-lists-kernelnewbiesah ]h"]`'s links to point to itself h]j)}(hNinitialize a :c:type:`struct list_head `'s links to point to itselfh](h initialize a }(hjhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjh]hstruct list_head}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdoc core-api/list refdomainjreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftarget list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubh’s links to point to itself}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj&hhubh container)}(h0**Parameters** ``name`` name of the list_headh](j)}(h**Parameters**h]hstrong)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubhdefinition_list)}(hhh]hdefinition_list_item)}(h``name`` name of the list_headh](hterm)}(h``name``h]j$)}(hj4h]hname}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhj,ubh definition)}(hhh]j)}(hname of the list_headh]hname of the list_head}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjLubah}(h]h ]h"]h$]h&]uh1jJhj,ubeh}(h]h ]h"]h$]h&]uh1j*hjIhKhj'ubah}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDLIST_HEAD (C macro) c.LIST_HEADhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h LIST_HEADh]jT)}(h LIST_HEADh]jZ)}(h LIST_HEADh]j`)}(hjh]h LIST_HEAD}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(h``LIST_HEAD (name)``h]j$)}(hjh]hLIST_HEAD (name)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK hj&hhubj)}(hRdefinition of a :c:type:`struct list_head ` with initialization values h]j)}(hQdefinition of a :c:type:`struct list_head ` with initialization valuesh](hdefinition of a }(hjhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjh]hstruct list_head}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubh with initialization values}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj&hhubj)}(h0**Parameters** ``name`` name of the list_headh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK"hjubj&)}(hhh]j+)}(h``name`` name of the list_headh](j1)}(h``name``h]j$)}(hj=h]hname}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj;ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK$hj7ubjK)}(hhh]j)}(hname of the list_headh]hname of the list_head}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjSubah}(h]h ]h"]h$]h&]uh1jJhj7ubeh}(h]h ]h"]h$]h&]uh1j*hjRhK$hj4ubah}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDLIST_HEAD_GUARDED (C macro)c.LIST_HEAD_GUARDEDhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hLIST_HEAD_GUARDEDh]jT)}(hLIST_HEAD_GUARDEDh]jZ)}(hLIST_HEAD_GUARDEDh]j`)}(hjh]hLIST_HEAD_GUARDED}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK%ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhK%ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhK%hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK%ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(h"``LIST_HEAD_GUARDED (name, lock)``h]j$)}(hjh]hLIST_HEAD_GUARDED (name, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK'hj&hhubj)}(hNdefine a :c:type:`struct list_head ` annotated with __guarded_by() h]j)}(hMdefine a :c:type:`struct list_head ` annotated with __guarded_by()h](h define a }(hjhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjh]hstruct list_head}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK%hjubh annotated with __guarded_by()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK%hjubah}(h]h ]h"]h$]h&]uh1jhjhK%hj&hhubj)}(hU**Parameters** ``name`` name of the list_head ``lock`` lock protecting 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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK)hjubj&)}(hhh](j+)}(h``name`` name of the list_head h](j1)}(h``name``h]j$)}(hjDh]hname}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjBubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK&hj>ubjK)}(hhh]j)}(hname of the list_headh]hname of the list_head}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhK&hjZubah}(h]h ]h"]h$]h&]uh1jJhj>ubeh}(h]h ]h"]h$]h&]uh1j*hjYhK&hj;ubj+)}(h!``lock`` lock protecting the listh](j1)}(h``lock``h]j$)}(hj}h]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj{ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK(hjwubjK)}(hhh]j)}(hlock protecting the listh]hlock protecting the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK'hjubah}(h]h ]h"]h$]h&]uh1jJhjwubeh}(h]h ]h"]h$]h&]uh1j*hjhK(hj;ubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDINIT_LIST_HEAD (C function)c.INIT_LIST_HEADhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h,void INIT_LIST_HEAD (struct list_head *list)h]jT)}(h+void INIT_LIST_HEAD(struct list_head *list)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK-ubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhK-ubjZ)}(hINIT_LIST_HEADh]j`)}(hINIT_LIST_HEADh]hINIT_LIST_HEAD}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhK-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&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h list_headh]h list_head}(hj@hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj=ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjBmodnameN classnameNjj)}j]j ASTIdentifier)}jVjsbc.INIT_LIST_HEADasbuh1hhjubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(hjh]h*}(hjshhhNhNubah}(h]h ]pah"]h$]h&]uh1jqhjubj`)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhK-ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhK-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhK-hjhhubj)}(hhh]j)}(h Initialize a list_head structureh]h Initialize a list_head structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK-hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK1hjubj&)}(hhh]j+)}(hB``struct list_head *list`` list_head structure to be initialized. h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK.hjubjK)}(hhh]j)}(h&list_head structure to be initialized.h]h&list_head structure to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK.hjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhK.hjubah}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK0hjubj)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_add (C function) c.list_addhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h=void list_add (struct list_head *new, struct list_head *head)h]jT)}(hnext pointer that points to it. This is useful for implementing queues, in particular one that the elements will be walked through forwards locklessly.h](j)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubj&)}(hhh](j+)}(h0``struct list_head *new`` new entry to be added h](j1)}(h``struct list_head *new``h]j$)}(hj@h]hstruct list_head *new}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj>ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhj:ubjK)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjVubah}(h]h ]h"]h$]h&]uh1jJhj:ubeh}(h]h ]h"]h$]h&]uh1j*hjUhKhj7ubj+)}(h6``struct list_head *head`` list head to add it before h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjsubjK)}(hhh]j)}(hlist head to add it beforeh]hlist head to add it before}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjsubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj7ubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubj)}(hInsert a new entry before the specified head, using a release barrier to set the ->next pointer that points to it. This is useful for implementing queues, in particular one that the elements will be walked through forwards locklessly.h]hInsert a new entry before the specified head, using a release barrier to set the ->next pointer that points to it. This is useful for implementing queues, in particular one that the elements will be walked through forwards locklessly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_del (C function) c.list_delhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h'void list_del (struct list_head *entry)h]jT)}(h&void list_del(struct list_head *entry)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubjZ)}(hlist_delh]j`)}(hlist_delh]hlist_del}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhM ubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj"h]hstruct}(hj6hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j`)}(h list_headh]h list_head}(hjThhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjQubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjVmodnameN classnameNjj)}j]j^)}jVjsb c.list_delasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj2ubj`)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj2ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj.ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhM hjhhubj)}(hhh]j)}(hdeletes entry from list.h]hdeletes entry from list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj&)}(hhh]j+)}(hA``struct list_head *entry`` the element to delete from the list. h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjubjK)}(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&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhM hjubah}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Note**h]j)}(hj5h]hNote}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_replace (C function)c.list_replacehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h@void list_replace (struct list_head *old, struct list_head *new)h]jT)}(h?void list_replace(struct list_head *old, struct list_head *new)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubjZ)}(h list_replaceh]j`)}(h list_replaceh]h list_replace}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjvhhhjhMubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]j^)}jVjsbc.list_replaceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(holdh]hold}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct list_head *newh](j)}(hj"h]hstruct}(hj)hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j`)}(h list_headh]h list_head}(hjGhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjDubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjImodnameN classnameNjj)}j]jc.list_replaceasbuh1hhj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjr)}(hjh]h*}(hjshhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj%ubj`)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjvhhhjhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjrhhhjhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jMhjhMhjohhubj)}(hhh]j)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj&)}(hhh](j+)}(h5``struct list_head *old`` the element to be replaced h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubj+)}(h4``struct list_head *new`` the new element to insert h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj9hMhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj)}(h-If **old** was empty, it will be overwritten.h](hIf }(hjuhhhNhNubj)}(h**old**h]hold}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh# was empty, it will be overwritten.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_replace_init (C function)c.list_replace_inithNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hEvoid list_replace_init (struct list_head *old, struct list_head *new)h]jT)}(hDvoid list_replace_init(struct list_head *old, struct list_head *new)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM)ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM)ubjZ)}(hlist_replace_inith]j`)}(hlist_replace_inith]hlist_replace_init}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhM)ubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]j^)}jVjsbc.list_replace_initasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hj?hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(holdh]hold}(hjLhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct list_head *newh](j)}(hj"h]hstruct}(hjehhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j`)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]j-c.list_replace_initasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjaubj`)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjaubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM)ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhM)ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhM)hjhhubj)}(hhh]j)}(h7replace old entry by new one and initialize the old oneh]h7replace old entry by new one and initialize the old one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM)hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(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)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM-hjubj&)}(hhh](j+)}(h5``struct list_head *old`` the element to be replaced h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM*hj!ubjK)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM*hj=ubah}(h]h ]h"]h$]h&]uh1jJhj!ubeh}(h]h ]h"]h$]h&]uh1j*hj<hM*hjubj+)}(h4``struct list_head *new`` the new element to insert h](j1)}(h``struct list_head *new``h]j$)}(hj`h]hstruct list_head *new}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj^ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM+hjZubjK)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM+hjvubah}(h]h ]h"]h$]h&]uh1jJhjZubeh}(h]h ]h"]h$]h&]uh1j*hjuhM+hjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM-hjubj)}(h-If **old** was empty, it will be overwritten.h](hIf }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# was empty, it will be overwritten.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_swap (C function) c.list_swaphNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hCvoid list_swap (struct list_head *entry1, struct list_head *entry2)h]jT)}(hBvoid list_swap(struct list_head *entry1, struct list_head *entry2)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM7ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM7ubjZ)}(h list_swaph]j`)}(h list_swaph]h list_swap}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhj hM7ubj)}(h4(struct list_head *entry1, struct list_head *entry2)h](j)}(hstruct list_head *entry1h](j)}(hj"h]hstruct}(hj/ hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj+ ubj)}(h h]h }(hj< hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubh)}(hhh]j`)}(h list_headh]h list_head}(hjM hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjJ ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjO modnameN classnameNjj)}j]j^)}jVj sb c.list_swapasbuh1hhj+ ubj)}(h h]h }(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubjr)}(hjh]h*}(hj{ hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj+ ubj`)}(hentry1h]hentry1}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj+ ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj' ubj)}(hstruct list_head *entry2h](j)}(hj"h]hstruct}(hj hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j`)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj modnameN classnameNjj)}j]ji c.list_swapasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjr)}(hjh]h*}(hj hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj ubj`)}(hentry2h]hentry2}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj' ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj hM7ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj hM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj hM7hjhhubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM7hj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:!jj:!jjjuh1jHhhhj&hNhNubj)}(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)}(hjD!h]h Parameters}(hjF!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB!ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM;hj>!ubj&)}(hhh](j+)}(h:``struct list_head *entry1`` the location to place entry2 h](j1)}(h``struct list_head *entry1``h]j$)}(hjc!h]hstruct list_head *entry1}(hje!hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hja!ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM8hj]!ubjK)}(hhh]j)}(hthe location to place entry2h]hthe location to place entry2}(hj|!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx!hM8hjy!ubah}(h]h ]h"]h$]h&]uh1jJhj]!ubeh}(h]h ]h"]h$]h&]uh1j*hjx!hM8hjZ!ubj+)}(h9``struct list_head *entry2`` the location to place entry1h](j1)}(h``struct list_head *entry2``h]j$)}(hj!h]hstruct list_head *entry2}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj!ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM:hj!ubjK)}(hhh]j)}(hthe location to place entry1h]hthe location to place entry1}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM9hj!ubah}(h]h ]h"]h$]h&]uh1jJhj!ubeh}(h]h ]h"]h$]h&]uh1j*hj!hM:hjZ!ubeh}(h]h ]h"]h$]h&]uh1j%hj>!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_del_init (C function)c.list_del_inithNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h,void list_del_init (struct list_head *entry)h]jT)}(h+void list_del_init(struct list_head *entry)h](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMHubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj"hMHubjZ)}(h list_del_inith]j`)}(h list_del_inith]h list_del_init}(hj"hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj"ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj!hhhj"hMHubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj"h]hstruct}(hj3"hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj/"ubj)}(h h]h }(hj@"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/"ubh)}(hhh]j`)}(h list_headh]h list_head}(hjQ"hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjN"ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjS"modnameN classnameNjj)}j]j^)}jVj"sbc.list_del_initasbuh1hhj/"ubj)}(h h]h }(hjq"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/"ubjr)}(hjh]h*}(hj"hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj/"ubj`)}(hentryh]hentry}(hj"hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj/"ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj+"ubah}(h]h ]h"]h$]h&]hhuh1jhj!hhhj"hMHubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj!hhhj"hMHubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jMhj"hMHhj!hhubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMHhj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj"hMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jHhhhj&hNhNubj)}(hR**Parameters** ``struct list_head *entry`` the element to delete from 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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMLhj"ubj&)}(hhh]j+)}(h@``struct list_head *entry`` the element to delete from the list.h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMNhj"ubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMIhj #ubah}(h]h ]h"]h$]h&]uh1jJhj"ubeh}(h]h ]h"]h$]h&]uh1j*hj #hMNhj"ubah}(h]h ]h"]h$]h&]uh1j%hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_move (C function) c.list_movehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h?void list_move (struct list_head *list, struct list_head *head)h]jT)}(h>void list_move(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hjQ#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM#hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMRubj)}(h h]h }(hj`#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM#hhhj_#hMRubjZ)}(h list_moveh]j`)}(h list_moveh]h list_move}(hjr#hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjn#ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjM#hhhj_#hMRubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hj"h]hstruct}(hj#hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j`)}(h list_headh]h list_head}(hj#hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj#modnameN classnameNjj)}j]j^)}jVjt#sb c.list_moveasbuh1hhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjr)}(hjh]h*}(hj#hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj#ubj`)}(hlisth]hlist}(hj#hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj#ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj#ubj)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hj$hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j`)}(h list_headh]h list_head}(hj$hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj $modnameN classnameNjj)}j]j# c.list_moveasbuh1hhj#ubj)}(h h]h }(hj<$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjr)}(hjh]h*}(hjJ$hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj#ubj`)}(hheadh]hhead}(hjW$hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj#ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj#ubeh}(h]h ]h"]h$]h&]hhuh1jhjM#hhhj_#hMRubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjI#hhhj_#hMRubah}(h]jD#ah ](jjeh"]h$]h&]jj)jhuh1jMhj_#hMRhjF#hhubj)}(hhh]j)}(h.delete from one list and add as another's headh]h0delete from one list and add as another’s head}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMRhj~$hhubah}(h]h ]h"]h$]h&]uh1jhjF#hhhj_#hMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jHhhhj&hNhNubj)}(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)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMVhj$ubj&)}(hhh](j+)}(h-``struct list_head *list`` the entry to move h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMShj$ubjK)}(hhh]j)}(hthe entry to moveh]hthe entry to move}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMShj$ubah}(h]h ]h"]h$]h&]uh1jJhj$ubeh}(h]h ]h"]h$]h&]uh1j*hj$hMShj$ubj+)}(h?``struct list_head *head`` the head that will precede our entryh](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMUhj$ubjK)}(hhh]j)}(h$the head that will precede our entryh]h$the head that will precede our entry}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMThj%ubah}(h]h ]h"]h$]h&]uh1jJhj$ubeh}(h]h ]h"]h$]h&]uh1j*hj%hMUhj$ubeh}(h]h ]h"]h$]h&]uh1j%hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_move_tail (C function)c.list_move_tailhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hDvoid list_move_tail (struct list_head *list, struct list_head *head)h]jT)}(hCvoid list_move_tail(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hjU%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ%hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM]ubj)}(h h]h }(hjd%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ%hhhjc%hM]ubjZ)}(hlist_move_tailh]j`)}(hlist_move_tailh]hlist_move_tail}(hjv%hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjr%ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjQ%hhhjc%hM]ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hj"h]hstruct}(hj%hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j`)}(h list_headh]h list_head}(hj%hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj%modnameN classnameNjj)}j]j^)}jVjx%sbc.list_move_tailasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjr)}(hjh]h*}(hj%hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj%ubj`)}(hlisth]hlist}(hj%hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj%ubj)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hj&hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j`)}(h list_headh]h list_head}(hj"&hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj$&modnameN classnameNjj)}j]j%c.list_move_tailasbuh1hhj&ubj)}(h h]h }(hj@&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjr)}(hjh]h*}(hjN&hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj&ubj`)}(hheadh]hhead}(hj[&hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj&ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj%ubeh}(h]h ]h"]h$]h&]hhuh1jhjQ%hhhjc%hM]ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjM%hhhjc%hM]ubah}(h]jH%ah ](jjeh"]h$]h&]jj)jhuh1jMhjc%hM]hjJ%hhubj)}(hhh]j)}(h.delete from one list and add as another's tailh]h0delete from one list and add as another’s tail}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM]hj&hhubah}(h]h ]h"]h$]h&]uh1jhjJ%hhhjc%hM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jHhhhj&hNhNubj)}(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)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMahj&ubj&)}(hhh](j+)}(h-``struct list_head *list`` the entry to move h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM^hj&ubjK)}(hhh]j)}(hthe entry to moveh]hthe entry to move}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM^hj&ubah}(h]h ]h"]h$]h&]uh1jJhj&ubeh}(h]h ]h"]h$]h&]uh1j*hj&hM^hj&ubj+)}(h>``struct list_head *head`` the head that will follow our entryh](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM`hj&ubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM_hj'ubah}(h]h ]h"]h$]h&]uh1jJhj&ubeh}(h]h ]h"]h$]h&]uh1j*hj'hM`hj&ubeh}(h]h ]h"]h$]h&]uh1j%hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD list_bulk_move_tail (C function)c.list_bulk_move_tailhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hbvoid list_bulk_move_tail (struct list_head *head, struct list_head *first, struct list_head *last)h]jT)}(havoid list_bulk_move_tail(struct list_head *head, struct list_head *first, struct list_head *last)h](j)}(hvoidh]hvoid}(hjY'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU'hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMiubj)}(h h]h }(hjh'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU'hhhjg'hMiubjZ)}(hlist_bulk_move_tailh]j`)}(hlist_bulk_move_tailh]hlist_bulk_move_tail}(hjz'hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjv'ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjU'hhhjg'hMiubj)}(hI(struct list_head *head, struct list_head *first, struct list_head *last)h](j)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hj'hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j`)}(h list_headh]h list_head}(hj'hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj'modnameN classnameNjj)}j]j^)}jVj|'sbc.list_bulk_move_tailasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjr)}(hjh]h*}(hj'hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj'ubj`)}(hheadh]hhead}(hj'hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj'ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj'ubj)}(hstruct list_head *firsth](j)}(hj"h]hstruct}(hj(hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j`)}(h list_headh]h list_head}(hj&(hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj#(ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj((modnameN classnameNjj)}j]j'c.list_bulk_move_tailasbuh1hhj(ubj)}(h h]h }(hjD(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjr)}(hjh]h*}(hjR(hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj(ubj`)}(hfirsth]hfirst}(hj_(hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj(ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj'ubj)}(hstruct list_head *lasth](j)}(hj"h]hstruct}(hjx(hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjt(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt(ubh)}(hhh]j`)}(h list_headh]h list_head}(hj(hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj(modnameN classnameNjj)}j]j'c.list_bulk_move_tailasbuh1hhjt(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt(ubjr)}(hjh]h*}(hj(hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjt(ubj`)}(hlasth]hlast}(hj(hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjt(ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj'ubeh}(h]h ]h"]h$]h&]hhuh1jhjU'hhhjg'hMiubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjQ'hhhjg'hMiubah}(h]jL'ah ](jjeh"]h$]h&]jj)jhuh1jMhjg'hMihjN'hhubj)}(hhh]j)}(h'move a subsection of a list to its tailh]h'move a subsection of a list to its tail}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMihj(hhubah}(h]h ]h"]h$]h&]uh1jhjN'hhhjg'hMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jHhhhj&hNhNubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMmhj)ubj&)}(hhh](j+)}(h?``struct list_head *head`` the head that will follow our entry h](j1)}(h``struct list_head *head``h]j$)}(hj:)h]hstruct list_head *head}(hj<)hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj8)ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMjhj4)ubjK)}(hhh]j)}(h#the head that will follow our entryh]h#the head that will follow our entry}(hjS)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO)hMjhjP)ubah}(h]h ]h"]h$]h&]uh1jJhj4)ubeh}(h]h ]h"]h$]h&]uh1j*hjO)hMjhj1)ubj+)}(h0``struct list_head *first`` first entry to move h](j1)}(h``struct list_head *first``h]j$)}(hjs)h]hstruct list_head *first}(hju)hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjq)ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMkhjm)ubjK)}(hhh]j)}(hfirst entry to moveh]hfirst entry to move}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMkhj)ubah}(h]h ]h"]h$]h&]uh1jJhjm)ubeh}(h]h ]h"]h$]h&]uh1j*hj)hMkhj1)ubj+)}(hH``struct list_head *last`` last entry to move, can be the same as first h](j1)}(h``struct list_head *last``h]j$)}(hj)h]hstruct list_head *last}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj)ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMlhj)ubjK)}(hhh]j)}(h,last entry to move, can be the same as firsth]h,last entry to move, can be the same as first}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMlhj)ubah}(h]h ]h"]h$]h&]uh1jJhj)ubeh}(h]h ]h"]h$]h&]uh1j*hj)hMlhj1)ubeh}(h]h ]h"]h$]h&]uh1j%hj)ubj)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMnhj)ubj)}(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 }(hj)hhhNhNubj)}(h **first**h]hfirst}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh and including }(hj)hhhNhNubj)}(h**last**h]hlast}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh before }(hj)hhhNhNubj)}(h**head**h]hhead}(hj)*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh8. All three entries must belong to the same linked list.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMmhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_is_first (C function)c.list_is_firsthNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hNint list_is_first (const struct list_head *list, const struct list_head *head)h]jT)}(hMint list_is_first(const struct list_head *list, const struct list_head *head)h](j)}(hinth]hint}(hjb*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^*hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjq*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^*hhhjp*hMubjZ)}(h list_is_firsth]j`)}(h list_is_firsth]h list_is_first}(hj*hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj*ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj^*hhhjp*hMubj)}(h<(const struct list_head *list, const struct list_head *head)h](j)}(hconst struct list_head *listh](j)}(hconsth]hconst}(hj*hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hj"h]hstruct}(hj*hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j`)}(h list_headh]h list_head}(hj*hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj*modnameN classnameNjj)}j]j^)}jVj*sbc.list_is_firstasbuh1hhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjr)}(hjh]h*}(hj+hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj*ubj`)}(hlisth]hlist}(hj+hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*ubj)}(hconst struct list_head *headh](j)}(hj*h]hconst}(hj-+hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj)+ubj)}(h h]h }(hj:+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)+ubj)}(hj"h]hstruct}(hjH+hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj)+ubj)}(h h]h }(hjU+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)+ubh)}(hhh]j`)}(h list_headh]h list_head}(hjf+hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjc+ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjh+modnameN classnameNjj)}j]j*c.list_is_firstasbuh1hhj)+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)+ubjr)}(hjh]h*}(hj+hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj)+ubj`)}(hheadh]hhead}(hj+hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj)+ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*ubeh}(h]h ]h"]h$]h&]hhuh1jhj^*hhhjp*hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjZ*hhhjp*hMubah}(h]jU*ah ](jjeh"]h$]h&]jj)jhuh1jMhjp*hMhjW*hhubj)}(hhh]jL)}(hhh]jQ)}(h:tests whether **list** is the first entry in list **head**h]j)}(hj+h](htests whether }(hj+hhhNhNubj)}(h**list**h]hlist}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh is the first entry in list }(hj+hhhNhNubj)}(h**head**h]hhead}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj+ubah}(h]h ]h"]h$]h&]uh1jPhj+hhhj+hNubah}(h]h ]h"]h$]h&]j-uh1jKhj+hMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjW*hhhjp*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jHhhhj&hNhNubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj,ubj&)}(hhh](j+)}(h3``const struct list_head *list`` the entry to test h](j1)}(h ``const struct list_head *list``h]j$)}(hj=,h]hconst struct list_head *list}(hj?,hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj;,ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj7,ubjK)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hjV,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR,hMhjS,ubah}(h]h ]h"]h$]h&]uh1jJhj7,ubeh}(h]h ]h"]h$]h&]uh1j*hjR,hMhj4,ubj+)}(h5``const struct list_head *head`` the head of the listh](j1)}(h ``const struct list_head *head``h]j$)}(hjv,h]hconst struct list_head *head}(hjx,hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjt,ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjp,ubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj,ubah}(h]h ]h"]h$]h&]uh1jJhjp,ubeh}(h]h ]h"]h$]h&]uh1j*hj,hMhj4,ubeh}(h]h ]h"]h$]h&]uh1j%hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_is_last (C function)c.list_is_lasthNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hMint list_is_last (const struct list_head *list, const struct list_head *head)h]jT)}(hLint list_is_last(const struct list_head *list, const struct list_head *head)h](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj,hMubjZ)}(h list_is_lasth]j`)}(h list_is_lasth]h list_is_last}(hj,hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj,ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj,hhhj,hMubj)}(h<(const struct list_head *list, const struct list_head *head)h](j)}(hconst struct list_head *listh](j)}(hj*h]hconst}(hj -hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj -ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj -ubj)}(hj"h]hstruct}(hj(-hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj -ubj)}(h h]h }(hj5-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj -ubh)}(hhh]j`)}(h list_headh]h list_head}(hjF-hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjC-ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjH-modnameN classnameNjj)}j]j^)}jVj,sbc.list_is_lastasbuh1hhj -ubj)}(h h]h }(hjf-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj -ubjr)}(hjh]h*}(hjt-hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj -ubj`)}(hlisth]hlist}(hj-hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj -ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj-ubj)}(hconst struct list_head *headh](j)}(hj*h]hconst}(hj-hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hj"h]hstruct}(hj-hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j`)}(h list_headh]h list_head}(hj-hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj-modnameN classnameNjj)}j]jb-c.list_is_lastasbuh1hhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjr)}(hjh]h*}(hj-hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj-ubj`)}(hheadh]hhead}(hj .hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj-ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj-ubeh}(h]h ]h"]h$]h&]hhuh1jhj,hhhj,hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj,hhhj,hMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jMhj,hMhj,hhubj)}(hhh]j)}(h9tests whether **list** is the last entry in list **head**h](htests whether }(hj6.hhhNhNubj)}(h**list**h]hlist}(hj>.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6.ubh is the last entry in list }(hj6.hhhNhNubj)}(h**head**h]hhead}(hjP.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6.ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3.hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjn.jjn.jjjuh1jHhhhj&hNhNubj)}(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)}(hjx.h]h Parameters}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjr.ubj&)}(hhh](j+)}(h3``const struct list_head *list`` the entry to test h](j1)}(h ``const struct list_head *list``h]j$)}(hj.h]hconst struct list_head *list}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj.ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj.ubjK)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jJhj.ubeh}(h]h ]h"]h$]h&]uh1j*hj.hMhj.ubj+)}(h5``const struct list_head *head`` the head of the listh](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj.ubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj.ubah}(h]h ]h"]h$]h&]uh1jJhj.ubeh}(h]h ]h"]h$]h&]uh1j*hj.hMhj.ubeh}(h]h ]h"]h$]h&]uh1j%hjr.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_is_head (C function)c.list_is_headhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hMint list_is_head (const struct list_head *list, const struct list_head *head)h]jT)}(hLint list_is_head(const struct list_head *list, const struct list_head *head)h](j)}(hinth]hint}(hj*/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&/hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj9/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&/hhhj8/hMubjZ)}(h list_is_headh]j`)}(h list_is_headh]h list_is_head}(hjK/hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjG/ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj&/hhhj8/hMubj)}(h<(const struct list_head *list, const struct list_head *head)h](j)}(hconst struct list_head *listh](j)}(hj*h]hconst}(hjg/hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjc/ubj)}(h h]h }(hjt/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc/ubj)}(hj"h]hstruct}(hj/hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjc/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc/ubh)}(hhh]j`)}(h list_headh]h list_head}(hj/hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj/modnameN classnameNjj)}j]j^)}jVjM/sbc.list_is_headasbuh1hhjc/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc/ubjr)}(hjh]h*}(hj/hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjc/ubj`)}(hlisth]hlist}(hj/hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjc/ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj_/ubj)}(hconst struct list_head *headh](j)}(hj*h]hconst}(hj/hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hj"h]hstruct}(hj0hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j`)}(h list_headh]h list_head}(hj-0hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj*0ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj/0modnameN classnameNjj)}j]j/c.list_is_headasbuh1hhj/ubj)}(h h]h }(hjK0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjr)}(hjh]h*}(hjY0hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj/ubj`)}(hheadh]hhead}(hjf0hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj_/ubeh}(h]h ]h"]h$]h&]hhuh1jhj&/hhhj8/hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj"/hhhj8/hMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jMhj8/hMhj/hhubj)}(hhh]j)}(h+tests whether **list** is the list **head**h](htests whether }(hj0hhhNhNubj)}(h**list**h]hlist}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh is the list }(hj0hhhNhNubj)}(h**head**h]hhead}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj8/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jHhhhj&hNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj0ubj&)}(hhh](j+)}(h3``const struct list_head *list`` the entry to test h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj0ubjK)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jJhj0ubeh}(h]h ]h"]h$]h&]uh1j*hj1hMhj0ubj+)}(h5``const struct list_head *head`` the head of the listh](j1)}(h ``const struct list_head *head``h]j$)}(hj*1h]hconst struct list_head *head}(hj,1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj(1ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj$1ubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjC1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj@1ubah}(h]h ]h"]h$]h&]uh1jJhj$1ubeh}(h]h ]h"]h$]h&]uh1j*hj?1hMhj0ubeh}(h]h ]h"]h$]h&]uh1j%hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_empty (C function) c.list_emptyhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h-int list_empty (const struct list_head *head)h]jT)}(h,int list_empty(const struct list_head *head)h](j)}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubjZ)}(h list_emptyh]j`)}(h list_emptyh]h list_empty}(hj1hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj1ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj1hhhj1hMubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj*h]hconst}(hj1hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hj"h]hstruct}(hj1hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j`)}(h list_headh]h list_head}(hj1hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj1modnameN classnameNjj)}j]j^)}jVj1sb c.list_emptyasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjr)}(hjh]h*}(hj(2hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj1ubj`)}(hheadh]hhead}(hj52hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj1ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj1ubah}(h]h ]h"]h$]h&]hhuh1jhj1hhhj1hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj|1hhhj1hMubah}(h]jw1ah ](jjeh"]h$]h&]jj)jhuh1jMhj1hMhjy1hhubj)}(hhh]j)}(htests whether a list is emptyh]htests whether a list is empty}(hj_2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj\2hhubah}(h]h ]h"]h$]h&]uh1jhjy1hhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw2jjw2jjjuh1jHhhhj&hNhNubj)}(hD**Parameters** ``const struct list_head *head`` the list to test.h](j)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj{2ubj&)}(hhh]j+)}(h2``const struct list_head *head`` the list to test.h](j1)}(h ``const struct list_head *head``h]j$)}(hj2h]hconst struct list_head *head}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubjK)}(hhh]j)}(hthe list to test.h]hthe list to test.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubah}(h]h ]h"]h$]h&]uh1jJhj2ubeh}(h]h ]h"]h$]h&]uh1j*hj2hMhj2ubah}(h]h ]h"]h$]h&]uh1j%hj{2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_del_init_careful (C function)c.list_del_init_carefulhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h4void list_del_init_careful (struct list_head *entry)h]jT)}(h3void list_del_init_careful(struct list_head *entry)h](j)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj3hMubjZ)}(hlist_del_init_carefulh]j`)}(hlist_del_init_carefulh]hlist_del_init_careful}(hj3hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj3ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj2hhhj3hMubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj"h]hstruct}(hj73hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj33ubj)}(h h]h }(hjD3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj33ubh)}(hhh]j`)}(h list_headh]h list_head}(hjU3hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjR3ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjW3modnameN classnameNjj)}j]j^)}jVj3sbc.list_del_init_carefulasbuh1hhj33ubj)}(h h]h }(hju3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj33ubjr)}(hjh]h*}(hj3hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj33ubj`)}(hentryh]hentry}(hj3hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj33ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/3ubah}(h]h ]h"]h$]h&]hhuh1jhj2hhhj3hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj2hhhj3hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jMhj3hMhj2hhubj)}(hhh]j)}(h,deletes entry from list and reinitialize it.h]h,deletes entry from list and reinitialize it.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jHhhhj&hNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubj&)}(hhh]j+)}(hA``struct list_head *entry`` the element to delete from the list. h](j1)}(h``struct list_head *entry``h]j$)}(hj3h]hstruct list_head *entry}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj3ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubjK)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jJhj3ubeh}(h]h ]h"]h$]h&]uh1j*hj4hMhj3ubah}(h]h ]h"]h$]h&]uh1j%hj3ubj)}(h**Description**h]j)}(hj64h]h Description}(hj84hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj44ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubj)}(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.}(hjL4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubj)}(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.}(hj[4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_empty_careful (C function)c.list_empty_carefulhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h5int list_empty_careful (const struct list_head *head)h]jT)}(h4int list_empty_careful(const struct list_head *head)h](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hMubjZ)}(hlist_empty_carefulh]j`)}(hlist_empty_carefulh]hlist_empty_careful}(hj4hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj4hhhj4hMubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj*h]hconst}(hj4hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hj"h]hstruct}(hj4hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j`)}(h list_headh]h list_head}(hj5hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj5modnameN classnameNjj)}j]j^)}jVj4sbc.list_empty_carefulasbuh1hhj4ubj)}(h h]h }(hj 5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjr)}(hjh]h*}(hj.5hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj4ubj`)}(hheadh]hhead}(hj;5hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj4ubah}(h]h ]h"]h$]h&]hhuh1jhj4hhhj4hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj4hhhj4hMubah}(h]j}4ah ](jjeh"]h$]h&]jj)jhuh1jMhj4hMhj4hhubj)}(hhh]j)}(h4tests whether a list is empty and not being modifiedh]h4tests whether a list is empty and not being modified}(hje5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjb5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}5jj}5jjjuh1jHhhhj&hNhNubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubj&)}(hhh]j+)}(h2``const struct list_head *head`` the list to test h](j1)}(h ``const struct list_head *head``h]j$)}(hj5h]hconst struct list_head *head}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubjK)}(hhh]j)}(hthe list to testh]hthe list to test}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jJhj5ubeh}(h]h ]h"]h$]h&]uh1j*hj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j%hj5ubj)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubj)}(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)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubj)}(h**NOTE**h]j)}(hj6h]hNOTE}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_rotate_left (C function)c.list_rotate_lefthNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h.void list_rotate_left (struct list_head *head)h]jT)}(h-void list_rotate_left(struct list_head *head)h](j)}(hvoidh]hvoid}(hjM6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj\6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI6hhhj[6hMubjZ)}(hlist_rotate_lefth]j`)}(hlist_rotate_lefth]hlist_rotate_left}(hjn6hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjj6ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjI6hhhj[6hMubj)}(h(struct list_head *head)h]j)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hj6hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j`)}(h list_headh]h list_head}(hj6hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj6modnameN classnameNjj)}j]j^)}jVjp6sbc.list_rotate_leftasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjr)}(hjh]h*}(hj6hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj6ubj`)}(hheadh]hhead}(hj6hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubah}(h]h ]h"]h$]h&]hhuh1jhjI6hhhj[6hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjE6hhhj[6hMubah}(h]j@6ah ](jjeh"]h$]h&]jj)jhuh1jMhj[6hMhjB6hhubj)}(hhh]j)}(hrotate the list to the lefth]hrotate the list to the left}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj 7hhubah}(h]h ]h"]h$]h&]uh1jhjB6hhhj[6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%7jj%7jjjuh1jHhhhj&hNhNubj)}(hA**Parameters** ``struct list_head *head`` the head of the listh](j)}(h**Parameters**h]j)}(hj/7h]h Parameters}(hj17hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj)7ubj&)}(hhh]j+)}(h/``struct list_head *head`` the head of the listh](j1)}(h``struct list_head *head``h]j$)}(hjN7h]hstruct list_head *head}(hjP7hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjL7ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjH7ubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjd7ubah}(h]h ]h"]h$]h&]uh1jJhjH7ubeh}(h]h ]h"]h$]h&]uh1j*hjc7hMhjE7ubah}(h]h ]h"]h$]h&]uh1j%hj)7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD!list_rotate_to_front (C function)c.list_rotate_to_fronthNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hJvoid list_rotate_to_front (struct list_head *list, struct list_head *head)h]jT)}(hIvoid list_rotate_to_front(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubjZ)}(hlist_rotate_to_fronth]j`)}(hlist_rotate_to_fronth]hlist_rotate_to_front}(hj7hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj7ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj7hhhj7hMubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hj"h]hstruct}(hj7hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j`)}(h list_headh]h list_head}(hj8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj8modnameN classnameNjj)}j]j^)}jVj7sbc.list_rotate_to_frontasbuh1hhj7ubj)}(h h]h }(hj#8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjr)}(hjh]h*}(hj18hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj7ubj`)}(hlisth]hlist}(hj>8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubj)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hjW8hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjS8ubj)}(h h]h }(hjd8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS8ubh)}(hhh]j`)}(h list_headh]h list_head}(hju8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjr8ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjw8modnameN classnameNjj)}j]j8c.list_rotate_to_frontasbuh1hhjS8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS8ubjr)}(hjh]h*}(hj8hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjS8ubj`)}(hheadh]hhead}(hj8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjS8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubeh}(h]h ]h"]h$]h&]hhuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jMhj7hMhj7hhubj)}(hhh]j)}(hRotate list to specific item.h]hRotate list to specific item.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jHhhhj&hNhNubj)}(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)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj8ubj&)}(hhh](j+)}(h>``struct list_head *list`` The desired new front of the list. h](j1)}(h``struct list_head *list``h]j$)}(hj9h]hstruct list_head *list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj9ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9ubjK)}(hhh]j)}(h"The desired new front of the list.h]h"The desired new front of the list.}(hj29hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.9hMhj/9ubah}(h]h ]h"]h$]h&]uh1jJhj9ubeh}(h]h ]h"]h$]h&]uh1j*hj.9hMhj9ubj+)}(h1``struct list_head *head`` The head of the list. h](j1)}(h``struct list_head *head``h]j$)}(hjR9h]hstruct list_head *head}(hjT9hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjP9ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjL9ubjK)}(hhh]j)}(hThe head of the list.h]hThe head of the list.}(hjk9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg9hMhjh9ubah}(h]h ]h"]h$]h&]uh1jJhjL9ubeh}(h]h ]h"]h$]h&]uh1j*hjg9hMhj9ubeh}(h]h ]h"]h$]h&]uh1j%hj8ubj)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj8ubj)}(h@Rotates list so that **list** becomes the new front of the list.h](hRotates list so that }(hj9hhhNhNubj)}(h**list**h]hlist}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh# becomes the new front of the list.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_is_singular (C function)c.list_is_singularhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h3int list_is_singular (const struct list_head *head)h]jT)}(h2int list_is_singular(const struct list_head *head)h](j)}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubjZ)}(hlist_is_singularh]j`)}(hlist_is_singularh]hlist_is_singular}(hj:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj:ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj9hhhj9hMubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj*h]hconst}(hj!:hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj.:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hj"h]hstruct}(hj<:hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjI:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j`)}(h list_headh]h list_head}(hjZ:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjW:ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj\:modnameN classnameNjj)}j]j^)}jVj:sbc.list_is_singularasbuh1hhj:ubj)}(h h]h }(hjz:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjr)}(hjh]h*}(hj:hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj:ubj`)}(hheadh]hhead}(hj:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj:ubah}(h]h ]h"]h$]h&]hhuh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj9hhhj9hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jMhj9hMhj9hhubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jHhhhj&hNhNubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:ubj&)}(hhh]j+)}(h2``const struct list_head *head`` the list to test.h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:ubjK)}(hhh]j)}(hthe list to test.h]hthe list to test.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj;ubah}(h]h ]h"]h$]h&]uh1jJhj:ubeh}(h]h ]h"]h$]h&]uh1j*hj;hMhj:ubah}(h]h ]h"]h$]h&]uh1j%hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_cut_position (C function)c.list_cut_positionhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h`void list_cut_position (struct list_head *list, struct list_head *head, struct list_head *entry)h]jT)}(h_void list_cut_position(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hvoidh]hvoid}(hjZ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV;hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hji;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV;hhhjh;hMubjZ)}(hlist_cut_positionh]j`)}(hlist_cut_positionh]hlist_cut_position}(hj{;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjw;ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjV;hhhjh;hMubj)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hstruct list_head *listh](j)}(hj"h]hstruct}(hj;hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j`)}(h list_headh]h list_head}(hj;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj;modnameN classnameNjj)}j]j^)}jVj};sbc.list_cut_positionasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjr)}(hjh]h*}(hj;hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj;ubj`)}(hlisth]hlist}(hj;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj;ubj)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hj <hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j`)}(h list_headh]h list_head}(hj'<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$<ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj)<modnameN classnameNjj)}j]j;c.list_cut_positionasbuh1hhj<ubj)}(h h]h }(hjE<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjr)}(hjh]h*}(hjS<hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj<ubj`)}(hheadh]hhead}(hj`<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj;ubj)}(hstruct list_head *entryh](j)}(hj"h]hstruct}(hjy<hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhju<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju<ubh)}(hhh]j`)}(h list_headh]h list_head}(hj<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj<modnameN classnameNjj)}j]j;c.list_cut_positionasbuh1hhju<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju<ubjr)}(hjh]h*}(hj<hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhju<ubj`)}(hentryh]hentry}(hj<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hju<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj;ubeh}(h]h ]h"]h$]h&]hhuh1jhjV;hhhjh;hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjR;hhhjh;hMubah}(h]jM;ah ](jjeh"]h$]h&]jj)jhuh1jMhjh;hMhjO;hhubj)}(hhh]j)}(hcut a list into twoh]hcut a list into two}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<hhubah}(h]h ]h"]h$]h&]uh1jhjO;hhhjh;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jHhhhj&hNhNubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=ubj&)}(hhh](j+)}(hA``struct list_head *list`` a new list to add all removed entries h](j1)}(h``struct list_head *list``h]j$)}(hj;=h]hstruct list_head *list}(hj==hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj9=ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5=ubjK)}(hhh]j)}(h%a new list to add all removed entriesh]h%a new list to add all removed entries}(hjT=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP=hMhjQ=ubah}(h]h ]h"]h$]h&]uh1jJhj5=ubeh}(h]h ]h"]h$]h&]uh1j*hjP=hMhj2=ubj+)}(h/``struct list_head *head`` a list with entries h](j1)}(h``struct list_head *head``h]j$)}(hjt=h]hstruct list_head *head}(hjv=hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjr=ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjn=ubjK)}(hhh]j)}(ha list with entriesh]ha list with entries}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jJhjn=ubeh}(h]h ]h"]h$]h&]uh1j*hj=hMhj2=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](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=ubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=ubah}(h]h ]h"]h$]h&]uh1jJhj=ubeh}(h]h ]h"]h$]h&]uh1j*hj=hMhj2=ubeh}(h]h ]h"]h$]h&]uh1j%hj=ubj)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./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}(hj=>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. You should pass on }(hj=hhhNhNubj)}(h **entry**h]hentry}(hjO>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh an element you know is on }(hj=hhhNhNubj)}(h**head**h]hhead}(hja>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. }(hj=hhhNhNubj)}(h**list**h]hlist}(hjs>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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_cut_before (C function)c.list_cut_beforehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h^void list_cut_before (struct list_head *list, struct list_head *head, struct list_head *entry)h]jT)}(h]void list_cut_before(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMubjZ)}(hlist_cut_beforeh]j`)}(hlist_cut_beforeh]hlist_cut_before}(hj>hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj>ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj>hhhj>hMubj)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hstruct list_head *listh](j)}(hj"h]hstruct}(hj>hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j`)}(h list_headh]h list_head}(hj?hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj ?modnameN classnameNjj)}j]j^)}jVj>sbc.list_cut_beforeasbuh1hhj>ubj)}(h h]h }(hj'?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjr)}(hjh]h*}(hj5?hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj>ubj`)}(hlisth]hlist}(hjB?hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj>ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>ubj)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hj[?hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjW?ubj)}(h h]h }(hjh?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW?ubh)}(hhh]j`)}(h list_headh]h list_head}(hjy?hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjv?ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj{?modnameN classnameNjj)}j]j#?c.list_cut_beforeasbuh1hhjW?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW?ubjr)}(hjh]h*}(hj?hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjW?ubj`)}(hheadh]hhead}(hj?hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjW?ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>ubj)}(hstruct list_head *entryh](j)}(hj"h]hstruct}(hj?hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j`)}(h list_headh]h list_head}(hj?hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj?modnameN classnameNjj)}j]j#?c.list_cut_beforeasbuh1hhj?ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjr)}(hjh]h*}(hj@hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj?ubj`)}(hentryh]hentry}(hj"@hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj?ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>ubeh}(h]h ]h"]h$]h&]hhuh1jhj>hhhj>hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj>hhhj>hMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jMhj>hMhj>hhubj)}(hhh]j)}(h'cut a list into two, before given entryh]h'cut a list into two, before given entry}(hjL@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjI@hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjd@jjd@jjjuh1jHhhhj&hNhNubj)}(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)}(hjn@h]h Parameters}(hjp@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl@ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM!hjh@ubj&)}(hhh](j+)}(hA``struct list_head *list`` a new list to add all removed entries h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj@ubjK)}(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&]uh1hhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jJhj@ubeh}(h]h ]h"]h$]h&]uh1j*hj@hMhj@ubj+)}(h/``struct list_head *head`` a list with entries h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj@ubjK)}(hhh]j)}(ha list with entriesh]ha list with entries}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jJhj@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](j1)}(h``struct list_head *entry``h]j$)}(hj@h]hstruct list_head *entry}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj@ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj@ubjK)}(hhh]j)}(h.an entry within head, could be the head itselfh]h.an entry within head, could be the head itself}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM hjAubah}(h]h ]h"]h$]h&]uh1jJhj@ubeh}(h]h ]h"]h$]h&]uh1j*hjAhM hj@ubeh}(h]h ]h"]h$]h&]uh1j%hjh@ubj)}(h**Description**h]j)}(hj:Ah]h Description}(hjKhMhj&hhubj)}(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)}(hjKKh]h Parameters}(hjMKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIKubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjEKubj&)}(hhh](j+)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j1)}(h``ptr``h]j$)}(hjjKh]hptr}(hjlKhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjhKubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjdKubjK)}(hhh]j)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjKhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjKh]hstruct list_head}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjKhMhjKubh pointer.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jJhjdKubeh}(h]h ]h"]h$]h&]uh1j*hjKhMhjaKubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjKh]htype}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjKubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjKubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jJhjKubeh}(h]h ]h"]h$]h&]uh1j*hjKhMhjaKubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjKh]hmember}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjKubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjKubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjLubah}(h]h ]h"]h$]h&]uh1jJhjKubeh}(h]h ]h"]h$]h&]uh1j*hjLhMhjaKubeh}(h]h ]h"]h$]h&]uh1j%hjEKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_first_entry (C macro)c.list_first_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_first_entryh]jT)}(hlist_first_entryh]jZ)}(hlist_first_entryh]j`)}(hjSLh]hlist_first_entry}(hj]LhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjYLubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjULhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjQLhhhjpLhMubah}(h]jLLah ](jjeh"]h$]h&]jj)jhuh1jMhjpLhMhjNLhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNLhhhjpLhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjLjjLjjjuh1jHhhhj&hNhNubj)}(h(``list_first_entry (ptr, type, member)``h]j$)}(hjLh]h$list_first_entry (ptr, type, member)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLhMhj&hhubj)}(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)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjLubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjLh]hptr}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjLubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjLubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jJhjLubeh}(h]h ]h"]h$]h&]uh1j*hjLhMhjLubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjMh]htype}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjMubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjMubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj5MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1MhMhj2Mubah}(h]h ]h"]h$]h&]uh1jJhjMubeh}(h]h ]h"]h$]h&]uh1j*hj1MhMhjLubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjUMh]hmember}(hjWMhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjSMubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOMubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjnMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjMhMhjkMubah}(h]h ]h"]h$]h&]uh1jJhjOMubeh}(h]h ]h"]h$]h&]uh1j*hjjMhMhjLubeh}(h]h ]h"]h$]h&]uh1j%hjLubj)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjLubj)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_last_entry (C macro)c.list_last_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_last_entryh]jT)}(hlist_last_entryh]jZ)}(hlist_last_entryh]j`)}(hjMh]hlist_last_entry}(hjMhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjMubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjMhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjMhhhjMhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jMhjMhMhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjNjjNjjjuh1jHhhhj&hNhNubj)}(h'``list_last_entry (ptr, type, member)``h]j$)}(hj Nh]h#list_last_entry (ptr, type, member)}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj Nubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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%NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj!Nubah}(h]h ]h"]h$]h&]uh1jhj3NhMhj&hhubj)}(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)}(hj@Nh]h Parameters}(hjBNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Nubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:Nubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hj_Nh]hptr}(hjaNhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj]Nubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYNubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjxNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtNhMhjuNubah}(h]h ]h"]h$]h&]uh1jJhjYNubeh}(h]h ]h"]h$]h&]uh1j*hjtNhMhjVNubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjNh]htype}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjNubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjNubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jJhjNubeh}(h]h ]h"]h$]h&]uh1j*hjNhMhjVNubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjNh]hmember}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjNubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjNubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jJhjNubeh}(h]h ]h"]h$]h&]uh1j*hjNhMhjVNubeh}(h]h ]h"]h$]h&]uh1j%hj:Nubj)}(h**Description**h]j)}(hj Oh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:Nubj)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hj"OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_first_entry_or_null (C macro)c.list_first_entry_or_nullhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_first_entry_or_nullh]jT)}(hlist_first_entry_or_nullh]jZ)}(hlist_first_entry_or_nullh]j`)}(hjKOh]hlist_first_entry_or_null}(hjUOhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjQOubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjMOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjIOhhhjhOhMubah}(h]jDOah ](jjeh"]h$]h&]jj)jhuh1jMhjhOhMhjFOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFOhhhjhOhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1jHhhhj&hNhNubj)}(h0``list_first_entry_or_null (ptr, type, member)``h]j$)}(hjOh]h,list_first_entry_or_null (ptr, type, member)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOhMhj&hhubj)}(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)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjOh]hptr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjOubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jJhjOubeh}(h]h ]h"]h$]h&]uh1j*hjOhMhjOubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjPh]htype}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjPubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjPubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj-PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)PhMhj*Pubah}(h]h ]h"]h$]h&]uh1jJhjPubeh}(h]h ]h"]h$]h&]uh1j*hj)PhMhjOubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjMPh]hmember}(hjOPhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjKPubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjGPubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjfPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbPhMhjcPubah}(h]h ]h"]h$]h&]uh1jJhjGPubeh}(h]h ]h"]h$]h&]uh1j*hjbPhMhjOubeh}(h]h ]h"]h$]h&]uh1j%hjOubj)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD*list_first_entry_or_null_acquire (C macro)"c.list_first_entry_or_null_acquirehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h list_first_entry_or_null_acquireh]jT)}(h list_first_entry_or_null_acquireh]jZ)}(h list_first_entry_or_null_acquireh]j`)}(hjPh]h list_first_entry_or_null_acquire}(hjPhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjPubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjPhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jMhjPhMhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjPjjPjjjuh1jHhhhj&hNhNubj)}(h8``list_first_entry_or_null_acquire (ptr, type, member)``h]j$)}(hjQh]h4list_first_entry_or_null_acquire (ptr, type, member)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(h/get the first element from a list with barrier h]j)}(h.get the first element from a list with barrierh]h.get the first element from a list with barrier}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQubah}(h]h ]h"]h$]h&]uh1jhj+QhMhj&hhubj)}(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)}(hj8Qh]h Parameters}(hj:QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Qubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2Qubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjWQh]hptr}(hjYQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUQubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQQubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjpQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlQhMhjmQubah}(h]h ]h"]h$]h&]uh1jJhjQQubeh}(h]h ]h"]h$]h&]uh1j*hjlQhMhjNQubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjQh]htype}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jJhjQubeh}(h]h ]h"]h$]h&]uh1j*hjQhMhjNQubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjQh]hmember}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQubjK)}(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&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jJhjQubeh}(h]h ]h"]h$]h&]uh1j*hjQhMhjNQubeh}(h]h ]h"]h$]h&]uh1j%hj2Qubj)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2Qubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD!list_last_entry_or_null (C macro)c.list_last_entry_or_nullhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_last_entry_or_nullh]jT)}(hlist_last_entry_or_nullh]jZ)}(hlist_last_entry_or_nullh]j`)}(hjCRh]hlist_last_entry_or_null}(hjMRhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjIRubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjERhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjARhhhj`RhMubah}(h]jRhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>Rhhhj`RhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjyRjjyRjjjuh1jHhhhj&hNhNubj)}(h/``list_last_entry_or_null (ptr, type, member)``h]j$)}(hjRh]h+list_last_entry_or_null (ptr, type, member)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj}Rubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRhMhj&hhubj)}(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)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjRh]hptr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jJhjRubeh}(h]h ]h"]h$]h&]uh1j*hjRhMhjRubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hj Sh]htype}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj Subah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjSubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj%ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ShMhj"Subah}(h]h ]h"]h$]h&]uh1jJhjSubeh}(h]h ]h"]h$]h&]uh1j*hj!ShMhjRubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjESh]hmember}(hjGShhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjCSubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj?SubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj^ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZShMhj[Subah}(h]h ]h"]h$]h&]uh1jJhj?Subeh}(h]h ]h"]h$]h&]uh1j*hjZShMhjRubeh}(h]h ]h"]h$]h&]uh1j%hjRubj)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Subah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_next_entry (C macro)c.list_next_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_next_entryh]jT)}(hlist_next_entryh]jZ)}(hlist_next_entryh]j`)}(hjSh]hlist_next_entry}(hjShhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjSubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjShhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjShhhjShMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jMhjShMhjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjShMubeh}(h]h ](jmacroeh"]h$]h&]jjjjSjjSjjjuh1jHhhhj&hNhNubj)}(h!``list_next_entry (pos, member)``h]j$)}(hjSh]hlist_next_entry (pos, member)}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjTubah}(h]h ]h"]h$]h&]uh1jhj#ThMhj&hhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hj0Th]h Parameters}(hj2ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Tubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj*Tubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjOTh]hpos}(hjQThhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjMTubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjITubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjhThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdThMhjeTubah}(h]h ]h"]h$]h&]uh1jJhjITubeh}(h]h ]h"]h$]h&]uh1j*hjdThMhjFTubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjTh]hmember}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjTubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjTubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjTubah}(h]h ]h"]h$]h&]uh1jJhjTubeh}(h]h ]h"]h$]h&]uh1j*hjThMhjFTubeh}(h]h ]h"]h$]h&]uh1j%hj*Tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_next_entry_circular (C macro)c.list_next_entry_circularhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_next_entry_circularh]jT)}(hlist_next_entry_circularh]jZ)}(hlist_next_entry_circularh]j`)}(hjTh]hlist_next_entry_circular}(hjThhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjTubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjThhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjThhhjThMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jMhjThMhjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjThMubeh}(h]h ](jmacroeh"]h$]h&]jjjjUjjUjjjuh1jHhhhj&hNhNubj)}(h0``list_next_entry_circular (pos, head, member)``h]j$)}(hjUh]h,list_next_entry_circular (pos, head, member)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hj2UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj.Uubah}(h]h ]h"]h$]h&]uh1jhj@UhMhj&hhubj)}(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)}(hjMUh]h Parameters}(hjOUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjGUubj&)}(hhh](j+)}(h``pos`` the type * to cursor. h](j1)}(h``pos``h]j$)}(hjlUh]hpos}(hjnUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjUubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjfUubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jJhjfUubeh}(h]h ]h"]h$]h&]uh1j*hjUhMhjcUubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hjUh]hhead}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jJhjUubeh}(h]h ]h"]h$]h&]uh1j*hjUhMhjcUubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjUh]hmember}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jJhjUubeh}(h]h ]h"]h$]h&]uh1j*hjUhMhjcUubeh}(h]h ]h"]h$]h&]uh1j%hjGUubj)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjGUubj)}(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.}(hj/VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjGUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_prev_entry (C macro)c.list_prev_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_prev_entryh]jT)}(hlist_prev_entryh]jZ)}(hlist_prev_entryh]j`)}(hjXVh]hlist_prev_entry}(hjbVhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj^Vubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjZVhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjVVhhhjuVhMubah}(h]jQVah ](jjeh"]h$]h&]jj)jhuh1jMhjuVhMhjSVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjSVhhhjuVhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjVjjVjjjuh1jHhhhj&hNhNubj)}(h!``list_prev_entry (pos, member)``h]j$)}(hjVh]hlist_prev_entry (pos, member)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVhMhj&hhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjVh]hpos}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjVubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jJhjVubeh}(h]h ]h"]h$]h&]uh1j*hjVhMhjVubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj!Wh]hmember}(hj#WhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjWubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjWubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj:WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj7Wubah}(h]h ]h"]h$]h&]uh1jJhjWubeh}(h]h ]h"]h$]h&]uh1j*hj6WhMhjVubeh}(h]h ]h"]h$]h&]uh1j%hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_prev_entry_circular (C macro)c.list_prev_entry_circularhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_prev_entry_circularh]jT)}(hlist_prev_entry_circularh]jZ)}(hlist_prev_entry_circularh]j`)}(hjuWh]hlist_prev_entry_circular}(hjWhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj{Wubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjwWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjsWhhhjWhMubah}(h]jnWah ](jjeh"]h$]h&]jj)jhuh1jMhjWhMhjpWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjpWhhhjWhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjWjjWjjjuh1jHhhhj&hNhNubj)}(h0``list_prev_entry_circular (pos, head, member)``h]j$)}(hjWh]h,list_prev_entry_circular (pos, head, member)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjWubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWhMhj&hhubj)}(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)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjWubj&)}(hhh](j+)}(h``pos`` the type * to cursor. h](j1)}(h``pos``h]j$)}(hjXh]hpos}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjXubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjWubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jJhjWubeh}(h]h ]h"]h$]h&]uh1j*hjXhMhjWubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hj>Xh]hhead}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj` to use as a loop cursor. ``head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjbYh]h Parameters}(hjdYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Yubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj\Yubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjYh]hpos}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjYubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj{YubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjYhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjYh]hstruct list_head}(hjYhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjYhMhjYubh to use as a loop cursor.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jJhj{Yubeh}(h]h ]h"]h$]h&]uh1j*hjYhMhjxYubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hjYh]hhead}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjYubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYubah}(h]h ]h"]h$]h&]uh1jJhjYubeh}(h]h ]h"]h$]h&]uh1j*hjYhMhjxYubeh}(h]h ]h"]h$]h&]uh1j%hj\Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD list_for_each_continue (C macro)c.list_for_each_continuehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_continueh]jT)}(hlist_for_each_continueh]jZ)}(hlist_for_each_continueh]j`)}(hj1Zh]hlist_for_each_continue}(hj;ZhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj7Zubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj3ZhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj/ZhhhjNZhMubah}(h]j*Zah ](jjeh"]h$]h&]jj)jhuh1jMhjNZhMhj,Zhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj,ZhhhjNZhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjgZjjgZjjjuh1jHhhhj&hNhNubj)}(h&``list_for_each_continue (pos, head)``h]j$)}(hjmZh]h"list_for_each_continue (pos, head)}(hjoZhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjkZubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(hcontinue iteration over a list h]j)}(hcontinue iteration over a listh]hcontinue iteration over a list}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZhMhj&hhubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjZh]hpos}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjZubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjZhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjZh]hstruct list_head}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjZhMhjZubh to use as a loop cursor.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jJhjZubeh}(h]h ]h"]h$]h&]uh1j*hjZhMhjZubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj[h]hhead}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjbah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj[ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj6[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2[hMhj3[ubah}(h]h ]h"]h$]h&]uh1jJhj[ubeh}(h]h ]h"]h$]h&]uh1j*hj2[hMhjZubeh}(h]h ]h"]h$]h&]uh1j%hjZubj)}(h**Description**h]j)}(hjX[h]h Description}(hjZ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZubj)}(hGContinue to iterate over a list, continuing after the current position.h]hGContinue to iterate over a list, continuing after the current position.}(hjn[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_for_each_prev (C macro)c.list_for_each_prevhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_prevh]jT)}(hlist_for_each_prevh]jZ)}(hlist_for_each_prevh]j`)}(hj[h]hlist_for_each_prev}(hj[hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj[ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj[hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj[hhhj[hMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jMhj[hMhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj[jj[jjjuh1jHhhhj&hNhNubj)}(h"``list_for_each_prev (pos, head)``h]j$)}(hj[h]hlist_for_each_prev (pos, head)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj&hhubj)}(hiterate over a list backwards h]j)}(hiterate over a list backwardsh]hiterate over a list backwards}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[hMhj&hhubj)}(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)}(hj\h]h Parameters}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj\ubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj'\h]hpos}(hj)\hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj%\ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj!\ubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj@\hhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjJ\h]hstruct list_head}(hjL\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjH\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhj<\hMhj@\ubh to use as a loop cursor.}(hj@\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<\hMhj=\ubah}(h]h ]h"]h$]h&]uh1jJhj!\ubeh}(h]h ]h"]h$]h&]uh1j*hj<\hMhj\ubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hj\h]hhead}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj\ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj}\ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj\ubah}(h]h ]h"]h$]h&]uh1jJhj}\ubeh}(h]h ]h"]h$]h&]uh1j*hj\hM hj\ubeh}(h]h ]h"]h$]h&]uh1j%hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_for_each_safe (C macro)c.list_for_each_safehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_safeh]jT)}(hlist_for_each_safeh]jZ)}(hlist_for_each_safeh]j`)}(hj\h]hlist_for_each_safe}(hj\hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj\ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj\hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj\hhhj\hMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jMhj\hMhj\hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj ]jj ]jjjuh1jHhhhj&hNhNubj)}(h%``list_for_each_safe (pos, n, head)``h]j$)}(hj]h]h!list_for_each_safe (pos, n, head)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(h7iterate over a list safe against removal of list entry h]j)}(h6iterate over a list safe against removal of list entryh]h6iterate over a list safe against removal of list entry}(hj-]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj)]ubah}(h]h ]h"]h$]h&]uh1jhj;]hMhj&hhubj)}(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)}(hjH]h]h Parameters}(hjJ]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjB]ubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjg]h]hpos}(hji]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hje]ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhja]ubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj]hhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hj]h]hstruct list_head}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhj|]hMhj]ubh to use as a loop cursor.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|]hMhj}]ubah}(h]h ]h"]h$]h&]uh1jJhja]ubeh}(h]h ]h"]h$]h&]uh1j*hj|]hMhj^]ubj+)}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j1)}(h``n``h]j$)}(hj]h]hn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj]ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]ubjK)}(hhh]j)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(hj]hhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hj]h]hstruct list_head}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhj]hMhj]ubh to use as temporary storage}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jJhj]ubeh}(h]h ]h"]h$]h&]uh1j*hj]hMhj^]ubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hj^h]hhead}(hj!^hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj^ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj^ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj8^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5^ubah}(h]h ]h"]h$]h&]uh1jJhj^ubeh}(h]h ]h"]h$]h&]uh1j*hj4^hMhj^]ubeh}(h]h ]h"]h$]h&]uh1j%hjB]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD!list_for_each_prev_safe (C macro)c.list_for_each_prev_safehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_prev_safeh]jT)}(hlist_for_each_prev_safeh]jZ)}(hlist_for_each_prev_safeh]j`)}(hjs^h]hlist_for_each_prev_safe}(hj}^hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjy^ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhju^hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjq^hhhj^hMubah}(h]jl^ah ](jjeh"]h$]h&]jj)jhuh1jMhj^hMhjn^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjn^hhhj^hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj^jj^jjjuh1jHhhhj&hNhNubj)}(h*``list_for_each_prev_safe (pos, n, head)``h]j$)}(hj^h]h&list_for_each_prev_safe (pos, n, head)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^hMhj&hhubj)}(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)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj^ubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj_h]hpos}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj_ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj^ubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj_hhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hj&_h]hstruct list_head}(hj(_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hj$_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhj_hMhj_ubh to use as a loop cursor.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jJhj^ubeh}(h]h ]h"]h$]h&]uh1j*hj_hMhj^ubj+)}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j1)}(h``n``h]j$)}(hj__h]hn}(hja_hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj]_ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjY_ubjK)}(hhh]j)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(hjx_hhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hj_h]hstruct list_head}(hj_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjt_hMhjx_ubh to use as temporary storage}(hjx_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjt_hMhju_ubah}(h]h ]h"]h$]h&]uh1jJhjY_ubeh}(h]h ]h"]h$]h&]uh1j*hjt_hMhj^ubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hj_h]hhead}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj_ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj_ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj_ubah}(h]h ]h"]h$]h&]uh1jJhj_ubeh}(h]h ]h"]h$]h&]uh1j*hj_hMhj^ubeh}(h]h ]h"]h$]h&]uh1j%hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_count_nodes (C function)c.list_count_nodeshNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h0size_t list_count_nodes (struct list_head *head)h]jT)}(h/size_t list_count_nodes(struct list_head *head)h](h)}(hhh]j`)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj`modnameN classnameNjj)}j]j^)}jVlist_count_nodessbc.list_count_nodesasbuh1hhj`hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM%ubj)}(h h]h }(hj:`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj9`hM%ubjZ)}(hlist_count_nodesh]j`)}(hj6`h]hlist_count_nodes}(hjL`hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjH`ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj`hhhj9`hM%ubj)}(h(struct list_head *head)h]j)}(hstruct list_head *headh](j)}(hj"h]hstruct}(hjg`hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjc`ubj)}(h h]h }(hjt`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc`ubh)}(hhh]j`)}(h list_headh]h list_head}(hj`hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj`modnameN classnameNjj)}j]j4`c.list_count_nodesasbuh1hhjc`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc`ubjr)}(hjh]h*}(hj`hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjc`ubj`)}(hheadh]hhead}(hj`hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjc`ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj_`ubah}(h]h ]h"]h$]h&]hhuh1jhj`hhhj9`hM%ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj `hhhj9`hM%ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jMhj9`hM%hj `hhubj)}(hhh]j)}(hcount nodes in the listh]hcount nodes in the list}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM%hj`hhubah}(h]h ]h"]h$]h&]uh1jhj `hhhj9`hM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jHhhhj&hNhNubj)}(hD**Parameters** ``struct list_head *head`` the head for your list.h](j)}(h**Parameters**h]j)}(hj ah]h Parameters}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM)hjaubj&)}(hhh]j+)}(h2``struct list_head *head`` the head for your list.h](j1)}(h``struct list_head *head``h]j$)}(hj)ah]hstruct list_head *head}(hj+ahhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj'aubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM+hj#aubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjBahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM&hj?aubah}(h]h ]h"]h$]h&]uh1jJhj#aubeh}(h]h ]h"]h$]h&]uh1j*hj>ahM+hj aubah}(h]h ]h"]h$]h&]uh1j%hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_entry_is_head (C macro)c.list_entry_is_headhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_entry_is_headh]jT)}(hlist_entry_is_headh]jZ)}(hlist_entry_is_headh]j`)}(hj}ah]hlist_entry_is_head}(hjahhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjaubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjahhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM4ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj{ahhhjahM4ubah}(h]jvaah ](jjeh"]h$]h&]jj)jhuh1jMhjahM4hjxahhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxahhhjahM4ubeh}(h]h ](jmacroeh"]h$]h&]jjjjajjajjjuh1jHhhhj&hNhNubj)}(h*``list_entry_is_head (pos, head, member)``h]j$)}(hjah]h&list_entry_is_head (pos, head, member)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM6hj&hhubj)}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM4hjaubah}(h]h ]h"]h$]h&]uh1jhjahM4hj&hhubj)}(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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM8hjaubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hj bh]hpos}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj bubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM5hjbubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hj&bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"bhM5hj#bubah}(h]h ]h"]h$]h&]uh1jJhjbubeh}(h]h ]h"]h$]h&]uh1j*hj"bhM5hjbubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjFbh]hhead}(hjHbhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjDbubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM6hj@bubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj_bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[bhM6hj\bubah}(h]h ]h"]h$]h&]uh1jJhj@bubeh}(h]h ]h"]h$]h&]uh1j*hj[bhM6hjbubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjbh]hmember}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj}bubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM8hjybubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM7hjbubah}(h]h ]h"]h$]h&]uh1jJhjybubeh}(h]h ]h"]h$]h&]uh1j*hjbhM8hjbubeh}(h]h ]h"]h$]h&]uh1j%hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_for_each_entry (C macro)c.list_for_each_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_entryh]jT)}(hlist_for_each_entryh]jZ)}(hlist_for_each_entryh]j`)}(hjbh]hlist_for_each_entry}(hjbhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjbubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjbhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM=ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjbhhhjbhM=ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jMhjbhM=hjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhjbhM=ubeh}(h]h ](jmacroeh"]h$]h&]jjjj cjj cjjjuh1jHhhhj&hNhNubj)}(h+``list_for_each_entry (pos, head, member)``h]j$)}(hjch]h'list_for_each_entry (pos, head, member)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj cubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM?hj&hhubj)}(h iterate over list of given type h]j)}(hiterate over list of given typeh]hiterate over list of given type}(hj)chhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM=hj%cubah}(h]h ]h"]h$]h&]uh1jhj7chM=hj&hhubj)}(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.h](j)}(h**Parameters**h]j)}(hjDch]h Parameters}(hjFchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMAhj>cubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjcch]hpos}(hjechhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjacubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM>hj]cubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj|chhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxchM>hjycubah}(h]h ]h"]h$]h&]uh1jJhj]cubeh}(h]h ]h"]h$]h&]uh1j*hjxchM>hjZcubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjch]hhead}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjcubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hrhM?hjcubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM?hjcubah}(h]h ]h"]h$]h&]uh1jJhjcubeh}(h]h ]h"]h$]h&]uh1j*hjchM?hjZcubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjch]hmember}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjcubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMAhjcubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM@hjcubah}(h]h ]h"]h$]h&]uh1jJhjcubeh}(h]h ]h"]h$]h&]uh1j*hjchMAhjZcubeh}(h]h ]h"]h$]h&]uh1j%hj>cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD%list_for_each_entry_reverse (C macro)c.list_for_each_entry_reversehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_entry_reverseh]jT)}(hlist_for_each_entry_reverseh]jZ)}(hlist_for_each_entry_reverseh]j`)}(hj)dh]hlist_for_each_entry_reverse}(hj3dhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj/dubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj+dhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMHubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj'dhhhjFdhMHubah}(h]j"dah ](jjeh"]h$]h&]jj)jhuh1jMhjFdhMHhj$dhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj$dhhhjFdhMHubeh}(h]h ](jmacroeh"]h$]h&]jjjj_djj_djjjuh1jHhhhj&hNhNubj)}(h3``list_for_each_entry_reverse (pos, head, member)``h]j$)}(hjedh]h/list_for_each_entry_reverse (pos, head, member)}(hjgdhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjcdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJhj&hhubj)}(h+iterate backwards over list of given type. h]j)}(h*iterate backwards over list of given type.h]h*iterate backwards over list of given type.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMHhj{dubah}(h]h ]h"]h$]h&]uh1jhjdhMHhj&hhubj)}(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.h](j)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMLhjdubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjdh]hpos}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjdubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMIhjdubjK)}(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&]uh1hhjdhMIhjdubah}(h]h ]h"]h$]h&]uh1jJhjdubeh}(h]h ]h"]h$]h&]uh1j*hjdhMIhjdubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjdh]hhead}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjdubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJhjdubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMJhjeubah}(h]h ]h"]h$]h&]uh1jJhjdubeh}(h]h ]h"]h$]h&]uh1j*hjehMJhjdubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj+eh]hmember}(hj-ehhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj)eubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMLhj%eubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjDehhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMKhjAeubah}(h]h ]h"]h$]h&]uh1jJhj%eubeh}(h]h ]h"]h$]h&]uh1j*hj@ehMLhjdubeh}(h]h ]h"]h$]h&]uh1j%hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_prepare_entry (C macro)c.list_prepare_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_prepare_entryh]jT)}(hlist_prepare_entryh]jZ)}(hlist_prepare_entryh]j`)}(hjeh]hlist_prepare_entry}(hjehhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjeubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjehhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMSubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj}ehhhjehMSubah}(h]jxeah ](jjeh"]h$]h&]jj)jhuh1jMhjehMShjzehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzehhhjehMSubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1jHhhhj&hNhNubj)}(h*``list_prepare_entry (pos, head, member)``h]j$)}(hjeh]h&list_prepare_entry (pos, head, member)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjeubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMUhj&hhubj)}(h>prepare 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()}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMShjeubah}(h]h ]h"]h$]h&]uh1jhjehMShj&hhubj)}(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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMWhjeubj&)}(hhh](j+)}(h+``pos`` the type * to use as a start point h](j1)}(h``pos``h]j$)}(hjfh]hpos}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj fubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMThj fubjK)}(hhh]j)}(h"the type * to use as a start pointh]h"the type * to use as a start point}(hj(fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$fhMThj%fubah}(h]h ]h"]h$]h&]uh1jJhj fubeh}(h]h ]h"]h$]h&]uh1j*hj$fhMThjfubj+)}(h``head`` the head of the list h](j1)}(h``head``h]j$)}(hjHfh]hhead}(hjJfhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjFfubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMUhjBfubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjafhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]fhMUhj^fubah}(h]h ]h"]h$]h&]uh1jJhjBfubeh}(h]h ]h"]h$]h&]uh1j*hj]fhMUhjfubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjfh]hmember}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjfubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMVhj{fubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMVhjfubah}(h]h ]h"]h$]h&]uh1jJhj{fubeh}(h]h ]h"]h$]h&]uh1j*hjfhMVhjfubeh}(h]h ]h"]h$]h&]uh1j%hjeubj)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMXhjeubj)}(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().}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMWhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD&list_for_each_entry_continue (C macro)c.list_for_each_entry_continuehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_entry_continueh]jT)}(hlist_for_each_entry_continueh]jZ)}(hlist_for_each_entry_continueh]j`)}(hjfh]hlist_for_each_entry_continue}(hjghhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjgubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjfhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM^ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjfhhhjghM^ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jMhjghM^hjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjghM^ubeh}(h]h ](jmacroeh"]h$]h&]jjjj1gjj1gjjjuh1jHhhhj&hNhNubj)}(h4``list_for_each_entry_continue (pos, head, member)``h]j$)}(hj7gh]h0list_for_each_entry_continue (pos, head, member)}(hj9ghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5gubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM`hj&hhubj)}(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}(hjQghhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM^hjMgubah}(h]h ]h"]h$]h&]uh1jhj_ghM^hj&hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Continue to iterate over list of given type, continuing after the current position.h](j)}(h**Parameters**h]j)}(hjlgh]h Parameters}(hjnghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMbhjfgubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjgh]hpos}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjgubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM_hjgubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM_hjgubah}(h]h ]h"]h$]h&]uh1jJhjgubeh}(h]h ]h"]h$]h&]uh1j*hjghM_hjgubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjgh]hhead}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjgubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM`hjgubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM`hjgubah}(h]h ]h"]h$]h&]uh1jJhjgubeh}(h]h ]h"]h$]h&]uh1j*hjghM`hjgubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjgh]hmember}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjgubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMahjgubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMahjhubah}(h]h ]h"]h$]h&]uh1jJhjgubeh}(h]h ]h"]h$]h&]uh1j*hjhhMahjgubeh}(h]h ]h"]h$]h&]uh1j%hjfgubj)}(h**Description**h]j)}(hj8hh]h Description}(hj:hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMchjfgubj)}(hSContinue to iterate over list of given type, continuing after the current position.h]hSContinue to iterate over list of given type, continuing after the current position.}(hjNhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMbhjfgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD.list_for_each_entry_continue_reverse (C macro)&c.list_for_each_entry_continue_reversehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h$list_for_each_entry_continue_reverseh]jT)}(h$list_for_each_entry_continue_reverseh]jZ)}(h$list_for_each_entry_continue_reverseh]j`)}(hjwhh]h$list_for_each_entry_continue_reverse}(hjhhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj}hubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjyhhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMlubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjuhhhhjhhMlubah}(h]jphah ](jjeh"]h$]h&]jj)jhuh1jMhjhhMlhjrhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjrhhhhjhhMlubeh}(h]h ](jmacroeh"]h$]h&]jjjjhjjhjjjuh1jHhhhj&hNhNubj)}(h<``list_for_each_entry_continue_reverse (pos, head, member)``h]j$)}(hjhh]h8list_for_each_entry_continue_reverse (pos, head, member)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMnhj&hhubj)}(h'iterate backwards from the given point h]j)}(h&iterate backwards from the given pointh]h&iterate backwards from the given point}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMlhjhubah}(h]h ]h"]h$]h&]uh1jhjhhMlhj&hhubj)}(hX **Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Start to iterate over list of given type backwards, continuing after the current position.h](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMphjhubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjih]hpos}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjiubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMmhjiubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMmhjiubah}(h]h ]h"]h$]h&]uh1jJhjiubeh}(h]h ]h"]h$]h&]uh1j*hjihMmhjhubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj@ih]hhead}(hjBihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj>iubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMnhj:iubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjYihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUihMnhjViubah}(h]h ]h"]h$]h&]uh1jJhj:iubeh}(h]h ]h"]h$]h&]uh1j*hjUihMnhjhubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjyih]hmember}(hj{ihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjwiubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMohjsiubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMohjiubah}(h]h ]h"]h$]h&]uh1jJhjsiubeh}(h]h ]h"]h$]h&]uh1j*hjihMohjhubeh}(h]h ]h"]h$]h&]uh1j%hjhubj)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMqhjhubj)}(hZStart to iterate over list of given type backwards, continuing after the current position.h]hZStart to iterate over list of given type backwards, continuing after the current position.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMphjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_for_each_entry_from (C macro)c.list_for_each_entry_fromhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_entry_fromh]jT)}(hlist_for_each_entry_fromh]jZ)}(hlist_for_each_entry_fromh]j`)}(hjih]hlist_for_each_entry_from}(hjihhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjiubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjihhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjihhhjjhMzubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jMhjjhMzhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjjhMzubeh}(h]h ](jmacroeh"]h$]h&]jjjj)jjj)jjjjuh1jHhhhj&hNhNubj)}(h0``list_for_each_entry_from (pos, head, member)``h]j$)}(hj/jh]h,list_for_each_entry_from (pos, head, member)}(hj1jhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj-jubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM|hj&hhubj)}(h7iterate over list of given type from the current point h]j)}(h6iterate over list of given type from the current pointh]h6iterate over list of given type from the current point}(hjIjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzhjEjubah}(h]h ]h"]h$]h&]uh1jhjWjhMzhj&hhubj)}(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 over list of given type, continuing from current position.h](j)}(h**Parameters**h]j)}(hjdjh]h Parameters}(hjfjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj^jubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjjh]hpos}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM{hj}jubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM{hjjubah}(h]h ]h"]h$]h&]uh1jJhj}jubeh}(h]h ]h"]h$]h&]uh1j*hjjhM{hjzjubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjjh]hhead}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM|hjjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM|hjjubah}(h]h ]h"]h$]h&]uh1jJhjjubeh}(h]h ]h"]h$]h&]uh1j*hjjhM|hjzjubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjjh]hmember}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM}hjjubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj khM}hj kubah}(h]h ]h"]h$]h&]uh1jJhjjubeh}(h]h ]h"]h$]h&]uh1j*hj khM}hjzjubeh}(h]h ]h"]h$]h&]uh1j%hj^jubj)}(h**Description**h]j)}(hj0kh]h Description}(hj2khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.kubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj^jubj)}(hBIterate over list of given type, continuing from current position.h]hBIterate over list of given type, continuing from current position.}(hjFkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj^jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD*list_for_each_entry_from_reverse (C macro)"c.list_for_each_entry_from_reversehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h list_for_each_entry_from_reverseh]jT)}(h list_for_each_entry_from_reverseh]jZ)}(h list_for_each_entry_from_reverseh]j`)}(hjokh]h list_for_each_entry_from_reverse}(hjykhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjukubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjqkhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjmkhhhjkhMubah}(h]jhkah ](jjeh"]h$]h&]jj)jhuh1jMhjkhMhjjkhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjkhhhjkhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjkjjkjjjuh1jHhhhj&hNhNubj)}(h8``list_for_each_entry_from_reverse (pos, head, member)``h]j$)}(hjkh]h4list_for_each_entry_from_reverse (pos, head, member)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkhMhj&hhubj)}(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)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjkubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjkh]hpos}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjkubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjkubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jJhjkubeh}(h]h ]h"]h$]h&]uh1j*hjlhMhjkubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj8lh]hhead}(hj:lhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj6lubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2lubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjQlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMlhMhjNlubah}(h]h ]h"]h$]h&]uh1jJhj2lubeh}(h]h ]h"]h$]h&]uh1j*hjMlhMhjkubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjqlh]hmember}(hjslhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjolubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjklubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jJhjklubeh}(h]h ]h"]h$]h&]uh1j*hjlhMhjkubeh}(h]h ]h"]h$]h&]uh1j%hjkubj)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjkubj)}(hLIterate backwards over list of given type, continuing from current position.h]hLIterate backwards over list of given type, continuing from current position.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_for_each_entry_safe (C macro)c.list_for_each_entry_safehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_for_each_entry_safeh]jT)}(hlist_for_each_entry_safeh]jZ)}(hlist_for_each_entry_safeh]j`)}(hjlh]hlist_for_each_entry_safe}(hjlhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjlubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjlhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjlhhhjmhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jMhjmhMhjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjmhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj!mjj!mjjjuh1jHhhhj&hNhNubj)}(h3``list_for_each_entry_safe (pos, n, head, member)``h]j$)}(hj'mh]h/list_for_each_entry_safe (pos, n, head, member)}(hj)mhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj%mubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjAmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=mubah}(h]h ]h"]h$]h&]uh1jhjOmhMhj&hhubj)}(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)}(hj\mh]h Parameters}(hj^mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZmubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVmubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj{mh]hpos}(hj}mhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjymubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjumubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jJhjumubeh}(h]h ]h"]h$]h&]uh1j*hjmhMhjrmubj+)}(h1``n`` another type * to use as temporary storage h](j1)}(h``n``h]j$)}(hjmh]hn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjmubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjmubjK)}(hhh]j)}(h*another type * to use as temporary storageh]h*another type * to use as temporary storage}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jJhjmubeh}(h]h ]h"]h$]h&]uh1j*hjmhMhjrmubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjmh]hhead}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjmubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjmubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jJhjmubeh}(h]h ]h"]h$]h&]uh1j*hjnhMhjrmubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj&nh]hmember}(hj(nhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj$nubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj nubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj?nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjthMhj?tubah}(h]h ]h"]h$]h&]uh1jJhj#tubeh}(h]h ]h"]h$]h&]uh1j*hj>thMhj tubj+)}(h9``n`` temporary storage used in list_for_each_entry_safe h](j1)}(h``n``h]j$)}(hjbth]hn}(hjdthhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj`tubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj\tubjK)}(hhh]j)}(h2temporary storage used in list_for_each_entry_safeh]h2temporary storage used in list_for_each_entry_safe}(hj{thhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwthMhjxtubah}(h]h ]h"]h$]h&]uh1jJhj\tubeh}(h]h ]h"]h$]h&]uh1j*hjwthMhj tubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjth]hmember}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjtubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjtubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jJhjtubeh}(h]h ]h"]h$]h&]uh1j*hjthMhj tubeh}(h]h ]h"]h$]h&]uh1j%hjtubj)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjtubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_unhashed (C function)c.hlist_unhashedhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h/int hlist_unhashed (const struct hlist_node *h)h]jT)}(h.int hlist_unhashed(const struct hlist_node *h)h](j)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj*uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj)uhMubjZ)}(hhlist_unhashedh]j`)}(hhlist_unhashedh]hhlist_unhashed}(hjusbc.hlist_unhashedasbuh1hhjTuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTuubjr)}(hjh]h*}(hjuhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjTuubj`)}(hhh]hh}(hjuhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjTuubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjPuubah}(h]h ]h"]h$]h&]hhuh1jhjuhhhj)uhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjuhhhj)uhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jMhj)uhMhjuhhubj)}(hhh]j)}(h2Has node been removed from list and reinitialized?h]h2Has node been removed from list and reinitialized?}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhj)uhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jHhhhj&hNhNubj)}(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)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjvubj&)}(hhh]j+)}(h2``const struct hlist_node *h`` Node to be checked h](j1)}(h``const struct hlist_node *h``h]j$)}(hj7vh]hconst struct hlist_node *h}(hj9vhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5vubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj1vubjK)}(hhh]j)}(hNode to be checkedh]hNode to be checked}(hjPvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLvhMhjMvubah}(h]h ]h"]h$]h&]uh1jJhj1vubeh}(h]h ]h"]h$]h&]uh1j*hjLvhMhj.vubah}(h]h ]h"]h$]h&]uh1j%hjvubj)}(h**Description**h]j)}(hjrvh]h Description}(hjtvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpvubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjvubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD$hlist_unhashed_lockless (C function)c.hlist_unhashed_locklesshNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h8int hlist_unhashed_lockless (const struct hlist_node *h)h]jT)}(h7int hlist_unhashed_lockless(const struct hlist_node *h)h](j)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjvhMubjZ)}(hhlist_unhashed_locklessh]j`)}(hhlist_unhashed_locklessh]hhlist_unhashed_lockless}(hjvhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjvubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjvhhhjvhMubj)}(h(const struct hlist_node *h)h]j)}(hconst struct hlist_node *hh](j)}(hj*h]hconst}(hjvhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hj"h]hstruct}(hjwhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hj-whhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj*wubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj/wmodnameN classnameNjj)}j]j^)}jVjvsbc.hlist_unhashed_locklessasbuh1hhjvubj)}(h h]h }(hjMwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjr)}(hjh]h*}(hj[whhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjvubj`)}(hjuh]hh}(hjhwhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubah}(h]h ]h"]h$]h&]hhuh1jhjvhhhjvhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjvhhhjvhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jMhjvhMhjvhhubj)}(hhh]j)}(h*Version of hlist_unhashed for lockless useh]h*Version of hlist_unhashed for lockless use}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jHhhhj&hNhNubj)}(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)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjwubj&)}(hhh]j+)}(h2``const struct hlist_node *h`` Node to be checked h](j1)}(h``const struct hlist_node *h``h]j$)}(hjwh]hconst struct hlist_node *h}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjwubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjwubjK)}(hhh]j)}(hNode to be checkedh]hNode to be checked}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jJhjwubeh}(h]h ]h"]h$]h&]uh1j*hjwhMhjwubah}(h]h ]h"]h$]h&]uh1j%hjwubj)}(h**Description**h]j)}(hj xh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj xubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjwubj)}(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.}(hj#xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_empty (C function) c.hlist_emptyhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h,int hlist_empty (const struct hlist_head *h)h]jT)}(h+int hlist_empty(const struct hlist_head *h)h](j)}(hinth]hint}(hjRxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNxhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjaxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNxhhhj`xhMubjZ)}(h hlist_emptyh]j`)}(h hlist_emptyh]h hlist_empty}(hjsxhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjoxubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjNxhhhj`xhMubj)}(h(const struct hlist_head *h)h]j)}(hconst struct hlist_head *hh](j)}(hj*h]hconst}(hjxhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hj"h]hstruct}(hjxhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjxhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjxubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjxmodnameN classnameNjj)}j]j^)}jVjuxsb c.hlist_emptyasbuh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjr)}(hjh]h*}(hjxhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjxubj`)}(hjuh]hh}(hjyhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjxubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubah}(h]h ]h"]h$]h&]hhuh1jhjNxhhhj`xhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjJxhhhj`xhMubah}(h]jExah ](jjeh"]h$]h&]jj)jhuh1jMhj`xhMhjGxhhubj)}(hhh]j)}(h5Is the specified hlist_head structure an empty hlist?h]h5Is the specified hlist_head structure an empty hlist?}(hj,yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj)yhhubah}(h]h ]h"]h$]h&]uh1jhjGxhhhj`xhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDyjjDyjjjuh1jHhhhj&hNhNubj)}(hD**Parameters** ``const struct hlist_head *h`` Structure to check.h](j)}(h**Parameters**h]j)}(hjNyh]h Parameters}(hjPyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLyubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjHyubj&)}(hhh]j+)}(h2``const struct hlist_head *h`` Structure to check.h](j1)}(h``const struct hlist_head *h``h]j$)}(hjmyh]hconst struct hlist_head *h}(hjoyhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjkyubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjgyubjK)}(hhh]j)}(hStructure to check.h]hStructure to check.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjyubah}(h]h ]h"]h$]h&]uh1jJhjgyubeh}(h]h ]h"]h$]h&]uh1j*hjyhMhjdyubah}(h]h ]h"]h$]h&]uh1j%hjHyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_del (C function) c.hlist_delhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h%void hlist_del (struct hlist_node *n)h]jT)}(h$void hlist_del(struct hlist_node *n)h](j)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhMubjZ)}(h hlist_delh]j`)}(h hlist_delh]h hlist_del}(hjyhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjyubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjyhhhjyhMubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj"h]hstruct}(hjzhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hj"zhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjzubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj$zmodnameN classnameNjj)}j]j^)}jVjysb c.hlist_delasbuh1hhjzubj)}(h h]h }(hjBzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjr)}(hjh]h*}(hjPzhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjzubj`)}(hjkh]hn}(hj]zhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjzubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjyubah}(h]h ]h"]h$]h&]hhuh1jhjyhhhjyhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjyhhhjyhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jMhjyhMhjyhhubj)}(hhh]j)}(h-Delete the specified hlist_node from its listh]h-Delete the specified hlist_node from its list}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jHhhhj&hNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzubj&)}(hhh]j+)}(h)``struct hlist_node *n`` Node to delete. h](j1)}(h``struct hlist_node *n``h]j$)}(hjzh]hstruct hlist_node *n}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjzubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzubjK)}(hhh]j)}(hNode to delete.h]hNode to delete.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jJhjzubeh}(h]h ]h"]h$]h&]uh1j*hjzhMhjzubah}(h]h ]h"]h$]h&]uh1j%hjzubj)}(h**Description**h]j)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzubj)}(hrNote that this function leaves the node in hashed state. Use hlist_del_init() or similar instead to unhash **n**.h](hlNote that this function leaves the node in hashed state. Use hlist_del_init() or similar instead to unhash }(hj{hhhNhNubj)}(h**n**h]hn}(hj {hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_del_init (C function)c.hlist_del_inithNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h*void hlist_del_init (struct hlist_node *n)h]jT)}(h)void hlist_del_init(struct hlist_node *n)h](j)}(hvoidh]hvoid}(hjY{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU{hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM)ubj)}(h h]h }(hjh{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU{hhhjg{hM)ubjZ)}(hhlist_del_inith]j`)}(hhlist_del_inith]hhlist_del_init}(hjz{hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjv{ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjU{hhhjg{hM)ubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj"h]hstruct}(hj{hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hj{hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj{modnameN classnameNjj)}j]j^)}jVj|{sbc.hlist_del_initasbuh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjr)}(hjh]h*}(hj{hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj{ubj`)}(hjkh]hn}(hj{hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj{ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj{ubah}(h]h ]h"]h$]h&]hhuh1jhjU{hhhjg{hM)ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjQ{hhhjg{hM)ubah}(h]jL{ah ](jjeh"]h$]h&]jj)jhuh1jMhjg{hM)hjN{hhubj)}(hhh]j)}(hhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hj\hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjYubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetj^modnameN classnameNjj)}j]j^)}jVj$sbc.hlist_add_beforeasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj:ubj`)}(hjkh]hn}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubj)}(hstruct hlist_node *nexth](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]jxc.hlist_add_beforeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(hnexth]hnext}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubeh}(h]h ]h"]h$]h&]hhuh1jhj~hhhjhMIubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj~hhhjhMIubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jMhjhMIhj~hhubj)}(hhh]j)}(h(add a new entry before the one specifiedh]h(add a new entry before the one specified}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMIhj-hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jHhhhj&hNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMMhjLubj&)}(hhh](j+)}(h/``struct hlist_node *n`` new entry to be added h](j1)}(h``struct hlist_node *n``h]j$)}(hjqh]hstruct hlist_node *n}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjoubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJhjkubjK)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jJhjkubeh}(h]h ]h"]h$]h&]uh1j*hjhMJhjhubj+)}(hO``struct hlist_node *next`` hlist node to add it before, which must be non-NULLh](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMLhjubjK)}(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ÀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMLhjhubeh}(h]h ]h"]h$]h&]uh1j%hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_add_behind (C function)c.hlist_add_behindhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hEvoid hlist_add_behind (struct hlist_node *n, struct hlist_node *prev)h]jT)}(hDvoid hlist_add_behind(struct hlist_node *n, struct hlist_node *prev)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubjZ)}(hhlist_add_behindh]j`)}(hhlist_add_behindh]hhlist_add_behind}(hj%hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj!ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhMWubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hj"h]hstruct}(hjAhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hj_hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjamodnameN classnameNjj)}j]j^)}jVj'sbc.hlist_add_behindasbuh1hhj=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj=ubj`)}(hjkh]hn}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj=ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj9ubj)}(hstruct hlist_node *prevh](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjЁhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj́ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjҁmodnameN classnameNjj)}j]j{c.hlist_add_behindasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(hprevh]hprev}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj9ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMWubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhMWhjhhubj)}(hhh]j)}(h'add a new entry after the one specifiedh]h'add a new entry after the one specified}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMWhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jHhhhj&hNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM[hjOubj&)}(hhh](j+)}(h/``struct hlist_node *n`` new entry to be added h](j1)}(h``struct hlist_node *n``h]j$)}(hjth]hstruct hlist_node *n}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjrubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMXhjnubjK)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1jJhjnubeh}(h]h ]h"]h$]h&]uh1j*hjhMXhjkubj+)}(hN``struct hlist_node *prev`` hlist node to add it after, which must be non-NULLh](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhjubjK)}(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ƂhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMYhjÂubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj‚hMZhjkubeh}(h]h ]h"]h$]h&]uh1j%hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_add_fake (C function)c.hlist_add_fakehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h*void hlist_add_fake (struct hlist_node *n)h]jT)}(h)void hlist_add_fake(struct hlist_node *n)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubjZ)}(hhlist_add_fakeh]j`)}(hhlist_add_fakeh]hhlist_add_fake}(hj(hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhMgubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj"h]hstruct}(hjDhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjbhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjdmodnameN classnameNjj)}j]j^)}jVj*sbc.hlist_add_fakeasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj@ubj`)}(hjkh]hn}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj@ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj<ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMgubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhMghjhhubj)}(hhh]j)}(h8create a fake hlist consisting of a single headless nodeh]h8create a fake hlist consisting of a single headless node}(hjƃhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMghjÃhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjjރjjރjjjuh1jHhhhj&hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMkhjubj&)}(hhh]j+)}(h9``struct hlist_node *n`` Node to make a fake list out of h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhjubjK)}(hhh]j)}(hNode to make a fake list out ofh]hNode to make a fake list out of}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhhjubah}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMjhjubj)}(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 }(hjXhhhNhNubj)}(h**n**h]hn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh 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.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_fake (C function) c.hlist_fakehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h&bool hlist_fake (struct hlist_node *h)h]jT)}(h%bool hlist_fake(struct hlist_node *h)h](j)}(hboolh]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMtubjZ)}(h hlist_fakeh]j`)}(h hlist_fakeh]h hlist_fake}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhMtubj)}(h(struct hlist_node *h)h]j)}(hstruct hlist_node *hh](j)}(hj"h]hstruct}(hjքhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj҄ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҄ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]j^)}jVjsb c.hlist_fakeasbuh1hhj҄ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҄ubjr)}(hjh]h*}(hj"hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj҄ubj`)}(hjuh]hh}(hj/hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj҄ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj΄ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMtubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhMthjhhubj)}(hhh]j)}(hIs this node a fake hlist?h]hIs this node a fake hlist?}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMthjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jHhhhj&hNhNubj)}(ha**Parameters** ``struct hlist_node *h`` Node to check for being a self-referential fake hlist.h](j)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMxhjtubj&)}(hhh]j+)}(hO``struct hlist_node *h`` Node to check for being a self-referential fake hlist.h](j1)}(h``struct hlist_node *h``h]j$)}(hjh]hstruct hlist_node *h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzhjubjK)}(hhh]j)}(h6Node to check for being a self-referential fake hlist.h]h6Node to check for being a self-referential fake hlist.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMuhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMzhjubah}(h]h ]h"]h$]h&]uh1j%hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD#hlist_is_singular_node (C function)c.hlist_is_singular_nodehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hHbool hlist_is_singular_node (struct hlist_node *n, struct hlist_head *h)h]jT)}(hGbool hlist_is_singular_node(struct hlist_node *n, struct hlist_head *h)h](j)}(hjh]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM}ubjZ)}(hhlist_is_singular_nodeh]j`)}(hhlist_is_singular_nodeh]hhlist_is_singular_node}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhM}ubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hj"h]hstruct}(hj/hhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjMhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjJubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjOmodnameN classnameNjj)}j]j^)}jVjsbc.hlist_is_singular_nodeasbuh1hhj+ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjr)}(hjh]h*}(hj{hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj+ubj`)}(hjkh]hn}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj+ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj'ubj)}(hstruct hlist_head *hh](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]jic.hlist_is_singular_nodeasbuh1hhjubj)}(h h]h }(hj܆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(hjuh]hh}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj'ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM}ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhM}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhM}hjhhubj)}(hhh]j)}(h0is node the only element of the specified hlist?h]h0is node the only element of the specified hlist?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jHhhhj&hNhNubj)}(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)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<ubj&)}(hhh](j+)}(h8``struct hlist_node *n`` Node to check for singularity. h](j1)}(h``struct hlist_node *n``h]j$)}(hjah]hstruct hlist_node *n}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj_ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj[ubjK)}(hhh]j)}(hNode to check for singularity.h]hNode to check for singularity.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM~hjwubah}(h]h ]h"]h$]h&]uh1jJhj[ubeh}(h]h ]h"]h$]h&]uh1j*hjvhM~hjXubj+)}(h?``struct hlist_head *h`` Header for potentially singular list. h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(h%Header for potentially singular list.h]h%Header for potentially singular list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjXubeh}(h]h ]h"]h$]h&]uh1j%hj<ubj)}(h**Description**h]j)}(hjՇh]h Description}(hjׇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӇubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_move_list (C function)c.hlist_move_listhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hEvoid hlist_move_list (struct hlist_head *old, struct hlist_head *new)h]jT)}(hDvoid hlist_move_list(struct hlist_head *old, struct hlist_head *new)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hMubjZ)}(hhlist_move_listh]j`)}(hhlist_move_listh]hhlist_move_list}(hj;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj7ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhj(hMubj)}(h0(struct hlist_head *old, struct hlist_head *new)h](j)}(hstruct hlist_head *oldh](j)}(hj"h]hstruct}(hjWhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjuhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjrubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjwmodnameN classnameNjj)}j]j^)}jVj=sbc.hlist_move_listasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjSubj`)}(holdh]hold}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjSubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjOubj)}(hstruct hlist_head *newh](j)}(hj"h]hstruct}(hjɈhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjňubj)}(h h]h }(hjֈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjňubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]jc.hlist_move_listasbuh1hhjňubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjňubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjňubj`)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjňubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjOubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj(hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj(hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jMhj(hMhjhhubj)}(hhh]j)}(h Move an hlisth]h Move an hlist}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jHhhhj&hNhNubj)}(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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjfubj&)}(hhh](j+)}(h4``struct hlist_head *old`` hlist_head for old list. h](j1)}(h``struct hlist_head *old``h]j$)}(hjh]hstruct hlist_head *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hhlist_head for old list.h]hhlist_head for old list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubj+)}(h4``struct hlist_head *new`` hlist_head for new list. h](j1)}(h``struct hlist_head *new``h]j$)}(hjĉh]hstruct hlist_head *new}(hjƉhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj‰ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hhlist_head for new list.h]hhlist_head for new list.}(hj݉hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjىhMhjډubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjىhMhjubeh}(h]h ]h"]h$]h&]uh1j%hjfubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjfubj)}(heMove a list from one list head to another. Fixup the pprev reference of the first entry if it exists.h]heMove a list from one list head to another. Fixup the pprev reference of the first entry if it exists.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_splice_init (C function)c.hlist_splice_inithNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h`void hlist_splice_init (struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h]jT)}(h_void hlist_splice_init(struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMubjZ)}(hhlist_splice_inith]j`)}(hhlist_splice_inith]hhlist_splice_init}(hjehhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjaubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj@hhhjRhMubj)}(hI(struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h](j)}(hstruct hlist_head *fromh](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]j^)}jVjgsbc.hlist_splice_initasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjr)}(hjh]h*}(hj͊hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj}ubj`)}(hfromh]hfrom}(hjڊhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjyubj)}(hstruct hlist_node *lasth](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]jc.hlist_splice_initasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hj=hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(hlasth]hlast}(hjJhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjyubj)}(hstruct hlist_head *toh](j)}(hj"h]hstruct}(hjchhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]jc.hlist_splice_initasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj_ubj`)}(htoh]hto}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj_ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjyubeh}(h]h ]h"]h$]h&]hhuh1jhj@hhhjRhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jMhjRhMhj9hhubj)}(hhh]j)}(h)move all entries from one list to anotherh]h)move all entries from one list to another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj&)}(hhh](j+)}(hH``struct hlist_head *from`` hlist_head from which entries will be moved h](j1)}(h``struct hlist_head *from``h]j$)}(hj%h]hstruct hlist_head *from}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj#ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(h+hlist_head from which entries will be movedh]h+hlist_head from which entries will be moved}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj:hMhjubj+)}(h<``struct hlist_node *last`` last entry on the **from** list h](j1)}(h``struct hlist_node *last``h]j$)}(hj^h]hstruct hlist_node *last}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj\ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjXubjK)}(hhh]j)}(hlast entry on the **from** listh](hlast entry on the }(hjwhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh list}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jJhjXubeh}(h]h ]h"]h$]h&]uh1j*hjshMhjubj+)}(hD``struct hlist_head *to`` hlist_head to which entries will be moved h](j1)}(h``struct hlist_head *to``h]j$)}(hjh]hstruct hlist_head *to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(h)hlist_head to which entries will be movedh]h)hlist_head to which entries will be moved}(hjŒhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj)}(h=**to** can be empty, **from** must contain at least **last**.h](j)}(h**to**h]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be empty, }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must contain at least }(hjhhhNhNubj)}(h**last**h]hlast}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_for_each_entry (C macro)c.hlist_for_each_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hhlist_for_each_entryh]jT)}(hhlist_for_each_entryh]jZ)}(hhlist_for_each_entryh]j`)}(hjUh]hhlist_for_each_entry}(hj_hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj[ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjShhhjrhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jMhjrhMhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(h,``hlist_for_each_entry (pos, head, member)``h]j$)}(hjh]h(hlist_for_each_entry (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(h iterate over list of given type h]j)}(hiterate over list of given typeh]hiterate over list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj&hhubj)}(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ƍh]h Parameters}(hjȍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjčubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjߍubjK)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjߍubeh}(h]h ]h"]h$]h&]uh1j*hjhMhj܍ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjh]hhead}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj3hMhj܍ubj+)}(h8``member`` the name of the hlist_node within the struct.h](j1)}(h ``member``h]j$)}(hjWh]hmember}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQubjK)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjmubah}(h]h ]h"]h$]h&]uh1jJhjQubeh}(h]h ]h"]h$]h&]uh1j*hjlhMhj܍ubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD'hlist_for_each_entry_continue (C macro)Nc.hlist_for_each_entry_continuehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hhlist_for_each_entry_continueh]jT)}(hhlist_for_each_entry_continueh]jZ)}(hhlist_for_each_entry_continueh]j`)}(hjh]hhlist_for_each_entry_continue}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjȎhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjȎhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjȎhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(h/``hlist_for_each_entry_continue (pos, member)``h]j$)}(hjh]h+hlist_for_each_entry_continue (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj&hhubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj;h]hpos}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj9ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jJhj5ubeh}(h]h ]h"]h$]h&]uh1j*hjPhMhj2ubj+)}(h8``member`` the name of the hlist_node within the struct.h](j1)}(h ``member``h]j$)}(hjth]hmember}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjrubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjnubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubah}(h]h ]h"]h$]h&]uh1jJhjnubeh}(h]h ]h"]h$]h&]uh1j*hjhMhj2ubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD#hlist_for_each_entry_from (C macro)c.hlist_for_each_entry_fromhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hhlist_for_each_entry_fromh]jT)}(hhlist_for_each_entry_fromh]jZ)}(hhlist_for_each_entry_fromh]j`)}(hjȏh]hhlist_for_each_entry_from}(hjҏhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjΏubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjʏhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjƏhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhMhjÏhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjÏhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(h+``hlist_for_each_entry_from (pos, member)``h]j$)}(hjh]h'hlist_for_each_entry_from (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj,hMhj&hhubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjXh]hpos}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjVubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jJhjRubeh}(h]h ]h"]h$]h&]uh1j*hjmhMhjOubj+)}(h8``member`` the name of the hlist_node within the struct.h](j1)}(h ``member``h]j$)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjOubeh}(h]h ]h"]h$]h&]uh1j%hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD#hlist_for_each_entry_safe (C macro)c.hlist_for_each_entry_safehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hhlist_for_each_entry_safeh]jT)}(hhlist_for_each_entry_safeh]jZ)}(hhlist_for_each_entry_safeh]j`)}(hjh]hhlist_for_each_entry_safe}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhMubah}(h]jސah ](jjeh"]h$]h&]jj)jhuh1jMhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(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#hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhjIhMhj&hhubj)}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjPubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjuh]hpos}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjsubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjoubjK)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjoubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjlubj+)}(hM``n`` a :c:type:`struct hlist_node ` to use as temporary storage h](j1)}(h``n``h]j$)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hFa :c:type:`struct hlist_node ` to use as temporary storageh](ha }(hjǑhhhNhNubh)}(h(:c:type:`struct hlist_node `h]j$)}(hjёh]hstruct hlist_node}(hjӑhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjϑubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj hlist_nodeuh1hhjÑhMhjǑubh to use as temporary storage}(hjǑhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjÑhMhjđubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjÑhMhjlubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj h]hhead}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjlubj+)}(h8``member`` the name of the hlist_node within the struct.h](j1)}(h ``member``h]j$)}(hjCh]hmember}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjAubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=ubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYubah}(h]h ]h"]h$]h&]uh1jJhj=ubeh}(h]h ]h"]h$]h&]uh1j*hjXhMhjlubeh}(h]h ]h"]h$]h&]uh1j%hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDhlist_count_nodes (C function)c.hlist_count_nodeshNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h2size_t hlist_count_nodes (struct hlist_head *head)h]jT)}(h1size_t hlist_count_nodes(struct hlist_head *head)h](h)}(hhh]j`)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]j^)}jVhlist_count_nodessbc.hlist_count_nodesasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj’hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjZ)}(hhlist_count_nodesh]j`)}(hjh]hhlist_count_nodes}(hjԒhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjВubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhMubj)}(h(struct hlist_head *head)h]j)}(hstruct hlist_head *headh](j)}(hj"h]hstruct}(hjhhhNhNubah}(h]h ]j+ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejV reftargetjmodnameN classnameNjj)}j]jc.hlist_count_nodesasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjr)}(hjh]h*}(hj9hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj`)}(hheadh]hhead}(hjFhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhMhjhhubj)}(hhh]j)}(hcount nodes in the hlisth]hcount nodes in the hlist}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&hNhNubj)}(hF**Parameters** ``struct hlist_head *head`` the head for your hlist.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj&)}(hhh]j+)}(h4``struct hlist_head *head`` the head for your hlist.h](j1)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubjK)}(hhh]j)}(hthe head for your hlist.h]hthe head for your hlist.}(hjʓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjǓubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjƓhMhjubah}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubeh}(h]jah ]h"] full list apiah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hPrivate List APIh]hPrivate List API}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhM ubj)}(hProvides a set of list primitives identical in function to those in ````, but designed for cases where the embedded ``:c:type:`struct list_head ``` is private member.h](hDProvides a set of list primitives identical in function to those in }(hj hhhNhNubj$)}(h````h]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh,, but designed for cases where the embedded }(hj hhhNhNubj$)}(h*``:c:type:`struct list_head ```h]h&:c:type:`struct list_head `}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh is private member.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:781: ./include/linux/list_private.hhK hjhhubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_private_entry (C macro)c.list_private_entryhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_entryh]jT)}(hlist_private_entryh]jZ)}(hlist_private_entryh]j`)}(hjPh]hlist_private_entry}(hjZhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjVubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjRhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjNhhhjmhKubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jMhjmhKhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjmhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h*``list_private_entry (ptr, type, member)``h]j$)}(hjh]h&list_private_entry (ptr, type, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(h**Parameters** ``ptr`` the :c:type:`struct list_head ` pointer. ``type`` the type of the struct this is embedded in. ``member`` the identifier passed to ACCESS_PRIVATE.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjÔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj&)}(hhh](j+)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j1)}(h``ptr``h]j$)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjޔubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjڔubjK)}(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 ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjhKhjubh pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjڔubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjהubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hj<h]htype}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj:ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj6ubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jJhj6ubeh}(h]h ]h"]h$]h&]uh1j*hjQhKhjהubj+)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j1)}(h ``member``h]j$)}(hjuh]hmember}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjsubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjoubjK)}(hhh]j)}(h(the identifier passed to ACCESS_PRIVATE.h]h(the identifier passed to ACCESS_PRIVATE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubah}(h]h ]h"]h$]h&]uh1jJhjoubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjהubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_private_first_entry (C macro)c.list_private_first_entryhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_first_entryh]jT)}(hlist_private_first_entryh]jZ)}(hlist_private_first_entryh]j`)}(hjɕh]hlist_private_first_entry}(hjӕhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjϕubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj˕hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK$ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjǕhhhjhK$ubah}(h]j•ah ](jjeh"]h$]h&]jj)jhuh1jMhjhK$hjĕhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjĕhhhjhK$ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h0``list_private_first_entry (ptr, type, member)``h]j$)}(hjh]h,list_private_first_entry (ptr, type, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK&hjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK$hjubah}(h]h ]h"]h$]h&]uh1jhj-hK$hjhhubj)}(h**Parameters** ``ptr`` the list head to take the element from. ``type`` the type of the struct this is embedded in. ``member`` the identifier passed to ACCESS_PRIVATE.h](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK(hj4ubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjYh]hptr}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjWubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK%hjSubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhK%hjoubah}(h]h ]h"]h$]h&]uh1jJhjSubeh}(h]h ]h"]h$]h&]uh1j*hjnhK%hjPubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK&hjubjK)}(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&]uh1hhjhK&hjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhK&hjPubj+)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j1)}(h ``member``h]j$)}(hj˖h]hmember}(hj͖hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjɖubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK(hjŖubjK)}(hhh]j)}(h(the identifier passed to ACCESS_PRIVATE.h]h(the identifier passed to ACCESS_PRIVATE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK'hjubah}(h]h ]h"]h$]h&]uh1jJhjŖubeh}(h]h ]h"]h$]h&]uh1j*hjhK(hjPubeh}(h]h ]h"]h$]h&]uh1j%hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD!list_private_last_entry (C macro)c.list_private_last_entryhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_last_entryh]jT)}(hlist_private_last_entryh]jZ)}(hlist_private_last_entryh]j`)}(hjh]hlist_private_last_entry}(hj)hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj%ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj!hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK-ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj<hK-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj<hK-hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj<hK-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjUjjUjjjuh1jHhhhjhNhNubj)}(h/``list_private_last_entry (ptr, type, member)``h]j$)}(hj[h]h+list_private_last_entry (ptr, type, member)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjYubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK/hjhhubj)}(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}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK-hjqubah}(h]h ]h"]h$]h&]uh1jhjhK-hjhhubj)}(h**Parameters** ``ptr`` the list head to take the element from. ``type`` the type of the struct this is embedded in. ``member`` the identifier passed to ACCESS_PRIVATE.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK1hjubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK.hjubjK)}(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&]uh1hhjėhK.hjŗubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjėhK.hjubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK/hjubjK)}(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&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhK/hjubj+)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j1)}(h ``member``h]j$)}(hj!h]hmember}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK1hjubjK)}(hhh]j)}(h(the identifier passed to ACCESS_PRIVATE.h]h(the identifier passed to ACCESS_PRIVATE.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK0hj7ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj6hK1hjubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD!list_private_next_entry (C macro)c.list_private_next_entryhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_next_entryh]jT)}(hlist_private_next_entryh]jZ)}(hlist_private_next_entryh]j`)}(hjuh]hlist_private_next_entry}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj{ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjwhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK6ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjshhhjhK6ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jMhjhK6hjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjhK6ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h)``list_private_next_entry (pos, member)``h]j$)}(hjh]h%list_private_next_entry (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK8hjhhubj)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hj˘hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK6hjǘubah}(h]h ]h"]h$]h&]uh1jhj٘hK6hjhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK:hjubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK7hjubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhK7hjubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj>h]hmember}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj<ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK9hj8ubjK)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK8hjTubah}(h]h ]h"]h$]h&]uh1jJhj8ubeh}(h]h ]h"]h$]h&]uh1j*hjShK9hjubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD*list_private_next_entry_circular (C macro)"c.list_private_next_entry_circularhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h list_private_next_entry_circularh]jT)}(h list_private_next_entry_circularh]jZ)}(h list_private_next_entry_circularh]j`)}(hjh]h list_private_next_entry_circular}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK>ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhK>hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jmacroeh"]h$]h&]jjjjșjjșjjjuh1jHhhhjhNhNubj)}(h8``list_private_next_entry_circular (pos, head, member)``h]j$)}(hjΙh]h4list_private_next_entry_circular (pos, head, member)}(hjЙhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj̙ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK@hjhhubj)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK>hjubah}(h]h ]h"]h$]h&]uh1jhjhK>hjhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKBhjubj&)}(hhh](j+)}(h``pos`` the type * to cursor. h](j1)}(h``pos``h]j$)}(hj"h]hpos}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK?hjubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hK?hj8ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj7hK?hjubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hj[h]hhead}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjYubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK@hjUubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphK@hjqubah}(h]h ]h"]h$]h&]uh1jJhjUubeh}(h]h ]h"]h$]h&]uh1j*hjphK@hjubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKAhjubjK)}(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&]uh1hhjhKAhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKAhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjϚh]h Description}(hjњhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͚ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKChjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD!list_private_prev_entry (C macro)c.list_private_prev_entryhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_prev_entryh]jT)}(hlist_private_prev_entryh]jZ)}(hlist_private_prev_entryh]j`)}(hjh]hlist_private_prev_entry}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKLubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj hhhj+hKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj+hKLhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj+hKLubeh}(h]h ](jmacroeh"]h$]h&]jjjjDjjDjjjuh1jHhhhjhNhNubj)}(h)``list_private_prev_entry (pos, member)``h]j$)}(hjJh]h%list_private_prev_entry (pos, member)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjHubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKNhjhhubj)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKLhj`ubah}(h]h ]h"]h$]h&]uh1jhjrhKLhjhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKPhjyubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKMhjubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKMhjubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjכh]hmember}(hjٛhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj՛ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKOhjћubjK)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKNhjubah}(h]h ]h"]h$]h&]uh1jJhjћubeh}(h]h ]h"]h$]h&]uh1j*hjhKOhjubeh}(h]h ]h"]h$]h&]uh1j%hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD*list_private_prev_entry_circular (C macro)"c.list_private_prev_entry_circularhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h list_private_prev_entry_circularh]jT)}(h list_private_prev_entry_circularh]jZ)}(h list_private_prev_entry_circularh]j`)}(hj+h]h list_private_prev_entry_circular}(hj5hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj1ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj-hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKTubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj)hhhjHhKTubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jMhjHhKThj&hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj&hhhjHhKTubeh}(h]h ](jmacroeh"]h$]h&]jjjjajjajjjuh1jHhhhjhNhNubj)}(h8``list_private_prev_entry_circular (pos, head, member)``h]j$)}(hjgh]h4list_private_prev_entry_circular (pos, head, member)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjeubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKVhjhhubj)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKThj}ubah}(h]h ]h"]h$]h&]uh1jhjhKThjhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKXhjubj&)}(hhh](j+)}(h``pos`` the type * to cursor. h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKUhjubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hjԜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjМhKUhjќubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjМhKUhjubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKVhjubjK)}(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&]uh1hhj hKVhj ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj hKVhjubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hj-h]hmember}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj+ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKWhj'ubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKWhjCubah}(h]h ]h"]h$]h&]uh1jJhj'ubeh}(h]h ]h"]h$]h&]uh1j*hjBhKWhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKYhjubj)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD$list_private_entry_is_head (C macro)c.list_private_entry_is_headhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_entry_is_headh]jT)}(hlist_private_entry_is_headh]jZ)}(hlist_private_entry_is_headh]j`)}(hjh]hlist_private_entry_is_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKbubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjĝhKbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjĝhKbhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjĝhKbubeh}(h]h ](jmacroeh"]h$]h&]jjjjݝjjݝjjjuh1jHhhhjhNhNubj)}(h2``list_private_entry_is_head (pos, head, member)``h]j$)}(hjh]h.list_private_entry_is_head (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKdhjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKbhjubah}(h]h ]h"]h$]h&]uh1jhj hKbhjhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKfhjubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hj7h]hpos}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKchj1ubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKchjMubah}(h]h ]h"]h$]h&]uh1jJhj1ubeh}(h]h ]h"]h$]h&]uh1j*hjLhKchj.ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjph]hhead}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjnubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKdhjjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKdhjubah}(h]h ]h"]h$]h&]uh1jJhjjubeh}(h]h ]h"]h$]h&]uh1j*hjhKdhj.ubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKfhjubjK)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKehjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKfhj.ubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD%list_private_for_each_entry (C macro)c.list_private_for_each_entryhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_for_each_entryh]jT)}(hlist_private_for_each_entryh]jZ)}(hlist_private_for_each_entryh]j`)}(hjh]hlist_private_for_each_entry}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKkubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhKkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhKkhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKkubeh}(h]h ](jmacroeh"]h$]h&]jjjj3jj3jjjuh1jHhhhjhNhNubj)}(h3``list_private_for_each_entry (pos, head, member)``h]j$)}(hj9h]h/list_private_for_each_entry (pos, head, member)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj7ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKmhjhhubj)}(h iterate over list of given type h]j)}(hiterate over list of given typeh]hiterate over list of given type}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKkhjOubah}(h]h ]h"]h$]h&]uh1jhjahKkhjhhubj)}(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.h](j)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKohjhubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKlhjubjK)}(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&]uh1hhjhKlhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKlhjubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjƟh]hhead}(hjȟhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjğubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKmhjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjߟhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj۟hKmhjܟubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj۟hKmhjubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKohjubjK)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKnhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKohjubeh}(h]h ]h"]h$]h&]uh1j%hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD-list_private_for_each_entry_reverse (C macro)%c.list_private_for_each_entry_reversehNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h#list_private_for_each_entry_reverseh]jT)}(h#list_private_for_each_entry_reverseh]jZ)}(h#list_private_for_each_entry_reverseh]j`)}(hjSh]h#list_private_for_each_entry_reverse}(hj]hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjYubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjUhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKvubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjQhhhjphKvubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jMhjphKvhjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjphKvubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h;``list_private_for_each_entry_reverse (pos, head, member)``h]j$)}(hjh]h7list_private_for_each_entry_reverse (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKxhjhhubj)}(h+iterate backwards over list of given type. h]j)}(h*iterate backwards over list of given type.h]h*iterate backwards over list of given type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKvhjubah}(h]h ]h"]h$]h&]uh1jhjhKvhjhhubj)}(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.h](j)}(h**Parameters**h]j)}(hjĠh]h Parameters}(hjƠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKzhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKwhjݠubjK)}(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&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jJhjݠubeh}(h]h ]h"]h$]h&]uh1j*hjhKwhjڠubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKxhjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKxhj2ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj1hKxhjڠubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjUh]hmember}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjSubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKzhjOubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKyhjkubah}(h]h ]h"]h$]h&]uh1jJhjOubeh}(h]h ]h"]h$]h&]uh1j*hjjhKzhjڠubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD.list_private_for_each_entry_continue (C macro)&c.list_private_for_each_entry_continuehNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h$list_private_for_each_entry_continueh]jT)}(h$list_private_for_each_entry_continueh]jZ)}(h$list_private_for_each_entry_continueh]j`)}(hjh]h$list_private_for_each_entry_continue}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjơhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjơhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjơhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjߡjjߡjjjuh1jHhhhjhNhNubj)}(h<``list_private_for_each_entry_continue (pos, head, member)``h]j$)}(hjh]h8list_private_for_each_entry_continue (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj hKhjhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj9h]hpos}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj7ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj3ubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jJhj3ubeh}(h]h ]h"]h$]h&]uh1j*hjNhKhj0ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjrh]hhead}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjpubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjlubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjlubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj0ubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj0ubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(hSContinue to iterate over list of given type, continuing after the current position.h]hSContinue to iterate over list of given type, continuing after the current position.H}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD6list_private_for_each_entry_continue_reverse (C macro).c.list_private_for_each_entry_continue_reversehNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h,list_private_for_each_entry_continue_reverseh]jT)}(h,list_private_for_each_entry_continue_reverseh]jZ)}(h,list_private_for_each_entry_continue_reverseh]j`)}(hj%h]h,list_private_for_each_entry_continue_reverse}(hj/hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj+ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj'hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj#hhhjBhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjBhKhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhjBhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj[jj[jjjuh1jHhhhjhNhNubj)}(hD``list_private_for_each_entry_continue_reverse (pos, head, member)``h]j$)}(hjah]h@list_private_for_each_entry_continue_reverse (pos, head, member)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj_ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(h'iterate backwards from the given point h]j)}(h&iterate backwards from the given pointh]h&iterate backwards from the given point}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjwubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(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** Start to iterate over list of given type backwards, continuing after the current position.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(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&]uh1hhjʣhKhjˣubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjʣhKhjubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hj'h]hmember}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj%ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj!ubjK)}(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&]uh1hhj<hKhj=ubah}(h]h ]h"]h$]h&]uh1jJhj!ubeh}(h]h ]h"]h$]h&]uh1j*hj<hKhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(hZStart to iterate over list of given type backwards, continuing after the current position.h]hZStart to iterate over list of given type backwards, continuing after the current position.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD*list_private_for_each_entry_from (C macro)"c.list_private_for_each_entry_fromhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h list_private_for_each_entry_fromh]jT)}(h list_private_for_each_entry_fromh]jZ)}(h list_private_for_each_entry_fromh]j`)}(hjh]h list_private_for_each_entry_from}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjפjjפjjjuh1jHhhhjhNhNubj)}(h8``list_private_for_each_entry_from (pos, head, member)``h]j$)}(hjݤh]h4list_private_for_each_entry_from (pos, head, member)}(hjߤhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjۤubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(h7iterate over list of given type from the current point h]j)}(h6iterate over list of given type from the current pointh]h6iterate over list of given type from the current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(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 over list of given type, continuing from current position.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj ubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj1h]hpos}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj/ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj+ubjK)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKhjGubah}(h]h ]h"]h$]h&]uh1jJhj+ubeh}(h]h ]h"]h$]h&]uh1j*hjFhKhj(ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjjh]hhead}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjhubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjdubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjdubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj(ubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj(ubeh}(h]h ]h"]h$]h&]uh1j%hj ubj)}(h**Description**h]j)}(hjޥh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܥubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj ubj)}(hBIterate over list of given type, continuing from current position.h]hBIterate over list of given type, continuing from current position.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD2list_private_for_each_entry_from_reverse (C macro)*c.list_private_for_each_entry_from_reversehNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h(list_private_for_each_entry_from_reverseh]jT)}(h(list_private_for_each_entry_from_reverseh]jZ)}(h(list_private_for_each_entry_from_reverseh]j`)}(hjh]h(list_private_for_each_entry_from_reverse}(hj'hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj#ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj:hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj:hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj:hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjSjjSjjjuh1jHhhhjhNhNubj)}(h@``list_private_for_each_entry_from_reverse (pos, head, member)``h]j$)}(hjYh]hhKhj?ubah}(h]h ]h"]h$]h&]uh1jJhj#ubeh}(h]h ]h"]h$]h&]uh1j*hj>hKhj ubj+)}(h1``n`` another type * to use as temporary storage h](j1)}(h``n``h]j$)}(hjbh]hn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj`ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj\ubjK)}(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&]uh1hhjwhKhjxubah}(h]h ]h"]h$]h&]uh1jJhj\ubeh}(h]h ]h"]h$]h&]uh1j*hjwhKhj ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj ubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjԨh]hmember}(hj֨hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjҨubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjΨubjK)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubah}(h]h ]h"]h$]h&]uh1jJhjΨubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj ubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD3list_private_for_each_entry_safe_continue (C macro)+c.list_private_for_each_entry_safe_continuehNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h)list_private_for_each_entry_safe_continueh]jT)}(h)list_private_for_each_entry_safe_continueh]jZ)}(h)list_private_for_each_entry_safe_continueh]j`)}(hj(h]h)list_private_for_each_entry_safe_continue}(hj2hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj.ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj*hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj&hhhjEhKubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jMhjEhKhj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhjEhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj^jj^jjjuh1jHhhhjhNhNubj)}(hD``list_private_for_each_entry_safe_continue (pos, n, head, member)``h]j$)}(hjdh]h@list_private_for_each_entry_safe_continue (pos, n, head, member)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjbubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(h-continue list iteration safe against removal h]j)}(h,continue list iteration safe against removalh]h,continue list iteration safe against removal}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjzubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(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&]uh1hhjͩhKhjΩubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjͩhKhjubj+)}(h1``n`` another type * to use as temporary storage h](j1)}(h``n``h]j$)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj*h]hhead}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj(ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj$ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jJhj$ubeh}(h]h ]h"]h$]h&]uh1j*hj?hKhjubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjch]hmember}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjaubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj]ubjK)}(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&]uh1hhjxhKhjyubah}(h]h ]h"]h$]h&]uh1jJhj]ubeh}(h]h ]h"]h$]h&]uh1j*hjxhKhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD/list_private_for_each_entry_safe_from (C macro)'c.list_private_for_each_entry_safe_fromhNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h%list_private_for_each_entry_safe_fromh]jT)}(h%list_private_for_each_entry_safe_fromh]jZ)}(h%list_private_for_each_entry_safe_fromh]j`)}(hjݪh]h%list_private_for_each_entry_safe_from}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjߪhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj۪hhhjhKubah}(h]j֪ah ](jjeh"]h$]h&]jj)jhuh1jMhjhKhjتhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjتhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h@``list_private_for_each_entry_safe_from (pos, n, head, member)``h]j$)}(hjh]hj>j8Bj=BjWDj\Dj[Fj`FjHjHjJjJjLLjQLjMjMjDOjIOjPjPj