@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(sizeof(*grock), GFP_KERNEL); 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(sizeof(*dimitri), GFP_KERNEL); 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(sizeof(*grock), GFP_KERNEL); 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(sizeof(*dimitri), GFP_KERNEL); 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 reinitalizes 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 reinitalizes 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](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}(hjhhhNhNubah}(h]h ]kah"]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&] refdomainjreftype identifier reftargetjmodnameN classnameNjj)}j]j ASTIdentifier)}jjsbc.INIT_LIST_HEADasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(hjh]h*}(hj3hhhNhNubah}(h]h ]pah"]h$]h&]uh1j1hjubj`)}(hlisth]hlist}(hjAhhhNhNubah}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK%hjhhhubah}(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.hhK)hjubj&)}(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)}(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.hhK(hjubj)}(hcInitializes the list_head to point to itself. If it is a list header, the result is an empty list.h]hcInitializes the list_head to point to itself. If it is a list header, the result is an empty list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j`)}(h list_headh]h list_head}(hj\hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj$sbc.list_replaceasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj:ubj`)}(holdh]hold}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubj)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jxc.list_replaceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhKhjhhubj)}(hhh]j)}(hreplace old entry by new oneh]hreplace old entry by new one}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jHhhhj&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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjMubj&)}(hhh](j+)}(h5``struct list_head *old`` the element to be replaced h](j1)}(h``struct list_head *old``h]j$)}(hjrh]hstruct list_head *old}(hjthhhNhNubah}(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.hhKhjlubjK)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjlubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjiubj+)}(h4``struct list_head *new`` the new element to insert h](j1)}(h``struct list_head *new``h]j$)}(hjh]hstruct list_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubjK)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjiubeh}(h]h ]h"]h$]h&]uh1j%hjMubj)}(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.hhKhjMubj)}(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.hhKhjMubeh}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhMubjZ)}(hlist_replace_inith]j`)}(hlist_replace_inith]hlist_replace_init}(hj^hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjZubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj9hhhjKhMubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j`)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj`sbc.list_replace_initasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjvubj`)}(holdh]hold}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjrubj)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j`)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jc.list_replace_initasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hj6hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hnewh]hnew}(hjChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjrubeh}(h]h ]h"]h$]h&]hhuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jMhjKhMhj2hhubj)}(hhh]j)}(h7replace old entry by new one and initialize the old oneh]h7replace old entry by new one and initialize the old one}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(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$)}(hjh]hstruct list_head *new}(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 new element to inserth]hthe new element to insert}(hjhhhNhNubah}(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)}(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.hhMhjubj)}(h-If **old** was empty, it will be overwritten.h](hIf }(hj8hhhNhNubj)}(h**old**h]hold}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh# was empty, it will be overwritten.}(hj8hhhNhNubeh}(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_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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubjZ)}(h list_swaph]j`)}(h list_swaph]h list_swap}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjuhhhjhMubj)}(h4(struct list_head *entry1, struct list_head *entry2)h](j)}(hstruct list_head *entry1h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.list_swapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hentry1h]hentry1}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct list_head *entry2h](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j`)}(h list_headh]h list_head}(hjFhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjHmodnameN classnameNjj)}j]j c.list_swapasbuh1hhj$ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(hjh]h*}(hjrhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj$ubj`)}(hentry2h]hentry2}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjuhhhjhMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jMhjhMhjnhhubj)}(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}(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&]uh1jhjnhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jHhhhj&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)}(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:``struct list_head *entry1`` the location to place entry2 h](j1)}(h``struct list_head *entry1``h]j$)}(hjh]hstruct list_head *entry1}(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 location to place entry2h]hthe location to place entry2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubj+)}(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.hhMhjubjK)}(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.hhMhj9ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj8hMhjubeh}(h]h ]h"]h$]h&]uh1j%hjubeh}(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&]uh1jhjyhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM"ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhM"ubjZ)}(h list_del_inith]j`)}(h list_del_inith]h list_del_init}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjyhhhjhM"ubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.list_del_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjyhhhjhM"ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjuhhhjhM"ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jMhjhM"hjrhhubj)}(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.hhM"hj:hhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jHhhhj&hNhNubj)}(hR**Parameters** ``struct list_head *entry`` the element to delete from the list.h](j)}(h**Parameters**h]j)}(hj_h]h Parameters}(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.hhM&hjYubj&)}(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}(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.hhM(hjxubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM#hjubah}(h]h ]h"]h$]h&]uh1jJhjxubeh}(h]h ]h"]h$]h&]uh1j*hjhM(hjuubah}(h]h ]h"]h$]h&]uh1j%hjYubeh}(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}(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)}(h list_moveh]j`)}(h list_moveh]h list_move}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhM,ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj" hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j`)}(h list_headh]h list_head}(hj3 hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj0 ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj5 modnameN classnameNjj)}j]j)}jjsb c.list_moveasbuh1hhj ubj)}(h h]h }(hjS hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(hjh]h*}(hja hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj ubj`)}(hlisth]hlist}(hjn hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jO c.list_moveasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(hjh]h*}(hj hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj 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&]hhuh1jhjhhhjhM,ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhjhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjhM,hjhhubj)}(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.hhM,hj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,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 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.hhM0hj$!ubj&)}(hhh](j+)}(h-``struct list_head *list`` the entry to move h](j1)}(h``struct list_head *list``h]j$)}(hjI!h]hstruct list_head *list}(hjK!hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjG!ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM-hjC!ubjK)}(hhh]j)}(hthe entry to moveh]hthe entry to move}(hjb!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^!hM-hj_!ubah}(h]h ]h"]h$]h&]uh1jJhjC!ubeh}(h]h ]h"]h$]h&]uh1j*hj^!hM-hj@!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.hhM/hj|!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.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_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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM7ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hM7ubjZ)}(hlist_move_tailh]j`)}(hlist_move_tailh]hlist_move_tail}(hj!hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj!ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj!hhhj!hM7ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj&"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j`)}(h list_headh]h list_head}(hj7"hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj9"modnameN classnameNjj)}j]j)}jj!sbc.list_move_tailasbuh1hhj"ubj)}(h h]h }(hjW"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(hjh]h*}(hje"hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj"ubj`)}(hlisth]hlist}(hjr"hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj"ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj"ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]jS"c.list_move_tailasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(hjh]h*}(hj"hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj"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!hM7ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj!hhhj!hM7ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jMhj!hM7hj!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.hhM7hj #hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hM7ubeh}(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}(hj0#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+)}(h-``struct list_head *list`` the entry to move h](j1)}(h``struct list_head *list``h]j$)}(hjM#h]hstruct list_head *list}(hjO#hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjK#ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM8hjG#ubjK)}(hhh]j)}(hthe entry to moveh]hthe entry to move}(hjf#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb#hM8hjc#ubah}(h]h ]h"]h$]h&]uh1jJhjG#ubeh}(h]h ]h"]h$]h&]uh1j*hjb#hM8hjD#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.hhM9hj#ubah}(h]h ]h"]h$]h&]uh1jJhj#ubeh}(h]h ]h"]h$]h&]uh1j*hj#hM:hjD#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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMCubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj#hMCubjZ)}(hlist_bulk_move_tailh]j`)}(hlist_bulk_move_tailh]hlist_bulk_move_tail}(hj$hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj#ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj#hhhj#hMCubj)}(hI(struct list_head *head, struct list_head *first, struct list_head *last)h](j)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jah"]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_hj8$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=$modnameN classnameNjj)}j]j)}jj$sbc.list_bulk_move_tailasbuh1hhj$ubj)}(h h]h }(hj[$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(hjh]h*}(hji$hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj$ubj`)}(hheadh]hhead}(hjv$hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj$ubj)}(hstruct list_head *firsth](j)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]jW$c.list_bulk_move_tailasbuh1hhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(hjh]h*}(hj$hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj$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)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj%modnameN classnameNjj)}j]jW$c.list_bulk_move_tailasbuh1hhj$ubj)}(h h]h }(hj;%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(hjh]h*}(hjI%hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj$ubj`)}(hlasth]hlast}(hjV%hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj$ubeh}(h]h ]h"]h$]h&]hhuh1jhj#hhhj#hMCubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj#hhhj#hMCubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jMhj#hMChj#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.hhMChj}%hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMCubeh}(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.hhMGhj%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#hj%ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMDhj%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&]uh1hhj%hMDhj%ubah}(h]h ]h"]h$]h&]uh1jJhj%ubeh}(h]h ]h"]h$]h&]uh1j*hj%hMDhj%ubj+)}(h0``struct list_head *first`` first entry to move h](j1)}(h``struct list_head *first``h]j$)}(hj%h]hstruct list_head *first}(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.hhMEhj%ubjK)}(hhh]j)}(hfirst entry to moveh]hfirst entry to move}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMEhj&ubah}(h]h ]h"]h$]h&]uh1jJhj%ubeh}(h]h ]h"]h$]h&]uh1j*hj&hMEhj%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$)}(hj3&h]hstruct list_head *last}(hj5&hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj1&ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMFhj-&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}(hjL&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH&hMFhjI&ubah}(h]h ]h"]h$]h&]uh1jJhj-&ubeh}(h]h ]h"]h$]h&]uh1j*hjH&hMFhj%ubeh}(h]h ]h"]h$]h&]uh1j%hj%ubj)}(h**Description**h]j)}(hjn&h]h Description}(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.hhMHhj%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.hhMGhj%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}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hMZubjZ)}(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&hhhj&hMZubj)}(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 ]jah"]h$]h&]uh1jhj"'ubj)}(h h]h }(hj4'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"'ubj)}(hjh]hstruct}(hjB'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"'ubj)}(h h]h }(hjO'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&] refdomainjreftypej reftargetjb'modnameN classnameNjj)}j]j)}jj 'sbc.list_is_firstasbuh1hhj"'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"'ubj2)}(hjh]h*}(hj'hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj"'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 ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]j|'c.list_is_firstasbuh1hhj'ubj)}(h h]h }(hj (hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2)}(hjh]h*}(hj(hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj'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&hMZubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj&hhhj&hMZubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jMhj&hMZhj&hhubj)}(hhh]jL)}(hhh]jQ)}(h:tests whether **list** is the first entry in list **head**h]j)}(hjU(h](htests whether }(hjW(hhhNhNubj)}(h**list**h]hlist}(hj^(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW(ubh is the first entry in list }(hjW(hhhNhNubj)}(h**head**h]hhead}(hjp(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW(ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhjS(ubah}(h]h ]h"]h$]h&]uh1jPhjP(hhhj(hNubah}(h]h ]h"]h$]h&]j-uh1jKhj(hMZhjM(hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMZubeh}(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.hhM^hj(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.hhM[hj(ubjK)}(hhh]j)}(hthe entry to testh]hthe entry to test}(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+)}(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.hhM]hj(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.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_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}(hjW)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS)hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMdubj)}(h h]h }(hjf)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS)hhhje)hMdubjZ)}(h list_is_lasth]j`)}(h list_is_lasth]h list_is_last}(hjx)hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjt)ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjS)hhhje)hMdubj)}(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 ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj)modnameN classnameNjj)}j]j)}jjz)sbc.list_is_lastasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(hjh]h*}(hj)hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj)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 ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj.*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]hstruct}(hj<*hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj\*modnameN classnameNjj)}j]j)c.list_is_lastasbuh1hhj*ubj)}(h h]h }(hjx*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj2)}(hjh]h*}(hj*hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj*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&]hhuh1jhjS)hhhje)hMdubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjO)hhhje)hMdubah}(h]jJ)ah ](jjeh"]h$]h&]jj)jhuh1jMhje)hMdhjL)hhubj)}(hhh]j)}(h9tests whether **list** is the last entry in list **head**h](htests whether }(hj*hhhNhNubj)}(h**list**h]hlist}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh is the last 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.hhMdhj*hhubah}(h]h ]h"]h$]h&]uh1jhjL)hhhje)hMdubeh}(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.hhMhhj*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.hhMehj+ubjK)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hj7+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3+hMehj4+ubah}(h]h ]h"]h$]h&]uh1jJhj+ubeh}(h]h ]h"]h$]h&]uh1j*hj3+hMehj+ubj+)}(h5``const struct list_head *head`` the head of the listh](j1)}(h ``const struct list_head *head``h]j$)}(hjW+h]hconst struct list_head *head}(hjY+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjU+ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMghjQ+ubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjp+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMfhjm+ubah}(h]h ]h"]h$]h&]uh1jJhjQ+ubeh}(h]h ]h"]h$]h&]uh1j*hjl+hMghj+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_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.hhMnubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hMnubjZ)}(h list_is_headh]j`)}(h list_is_headh]h list_is_head}(hj+hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj+ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj+hhhj+hMnubj)}(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 ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjh]hstruct}(hj ,hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj),modnameN classnameNjj)}j]j)}jj+sbc.list_is_headasbuh1hhj+ubj)}(h h]h }(hjG,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2)}(hjh]h*}(hjU,hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj+ubj`)}(hlisth]hlist}(hjb,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 ]jah"]h$]h&]uh1jhjw,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw,ubj)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw,ubh)}(hhh]j`)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]jC,c.list_is_headasbuh1hhjw,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw,ubj2)}(hjh]h*}(hj,hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjw,ubj`)}(hheadh]hhead}(hj,hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjw,ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj+ubeh}(h]h ]h"]h$]h&]hhuh1jhj+hhhj+hMnubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj+hhhj+hMnubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jMhj+hMnhj+hhubj)}(hhh]j)}(h+tests whether **list** is the list **head**h](htests whether }(hj-hhhNhNubj)}(h**list**h]hlist}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh is the list }(hj-hhhNhNubj)}(h**head**h]hhead}(hj1-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.hhMnhj-hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjO-jjO-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)}(hjY-h]h Parameters}(hj[-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW-ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMrhjS-ubj&)}(hhh](j+)}(h3``const struct list_head *list`` the entry to test h](j1)}(h ``const struct list_head *list``h]j$)}(hjx-h]hconst struct list_head *list}(hjz-hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjv-ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMohjr-ubjK)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMohj-ubah}(h]h ]h"]h$]h&]uh1jJhjr-ubeh}(h]h ]h"]h$]h&]uh1j*hj-hMohjo-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.hhMqhj-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.hhMphj-ubah}(h]h ]h"]h$]h&]uh1jJhj-ubeh}(h]h ]h"]h$]h&]uh1j*hj-hMqhjo-ubeh}(h]h ]h"]h$]h&]uh1j%hjS-ubeh}(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}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMxubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hMxubjZ)}(h list_emptyh]j`)}(h list_emptyh]h list_empty}(hj,.hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj(.ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj.hhhj.hMxubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj('h]hconst}(hjH.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj)}(h h]h }(hjU.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj)}(hjh]hstruct}(hjc.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj)}(h h]h }(hjp.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubh)}(hhh]j`)}(h list_headh]h list_head}(hj.hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj~.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.modnameN classnameNjj)}j]j)}jj..sb c.list_emptyasbuh1hhjD.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj2)}(hjh]h*}(hj.hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjD.ubj`)}(hheadh]hhead}(hj.hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjD.ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj@.ubah}(h]h ]h"]h$]h&]hhuh1jhj.hhhj.hMxubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj.hhhj.hMxubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jMhj.hMxhj.hhubj)}(hhh]j)}(htests whether a list is emptyh]htests whether a list is empty}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMxhj.hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMxubeh}(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.hhM|hj/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.hhM~hj!/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.hhMyhj=/ubah}(h]h ]h"]h$]h&]uh1jJhj!/ubeh}(h]h ]h"]h$]h&]uh1j*hj0hhubah}(h]h ]h"]h$]h&]uh1jhjv/hhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY0jjY0jjjuh1jHhhhj&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)}(hjc0h]h Parameters}(hje0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]0ubj&)}(hhh]j+)}(hA``struct list_head *entry`` the element to delete from the list. h](j1)}(h``struct list_head *entry``h]j$)}(hj0h]hstruct list_head *entry}(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.hhMhj|0ubjK)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jJhj|0ubeh}(h]h ]h"]h$]h&]uh1j*hj0hMhjy0ubah}(h]h ]h"]h$]h&]uh1j%hj]0ubj)}(h**Description**h]j)}(hj0h]h Description}(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.hhMhj]0ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]0ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]0ubeh}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1hhhj1hMubjZ)}(hlist_empty_carefulh]j`)}(hlist_empty_carefulh]hlist_empty_careful}(hj21hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj.1ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj 1hhhj1hMubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj('h]hconst}(hjN1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ1ubj)}(h h]h }(hj[1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ1ubj)}(hjh]hstruct}(hji1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ1ubj)}(h h]h }(hjv1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ1ubh)}(hhh]j`)}(h list_headh]h list_head}(hj1hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j)}jj41sbc.list_empty_carefulasbuh1hhjJ1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ1ubj2)}(hjh]h*}(hj1hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjJ1ubj`)}(hheadh]hhead}(hj1hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjJ1ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjF1ubah}(h]h ]h"]h$]h&]hhuh1jhj 1hhhj1hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj 1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jMhj1hMhj1hhubj)}(hhh]j)}(h4tests whether a list is empty and not being modifiedh]h4tests whether a list is empty and not being modified}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj1hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jHhhhj&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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubj&)}(hhh]j+)}(h2``const struct list_head *head`` the list to test h](j1)}(h ``const struct list_head *head``h]j$)}(hj-2h]hconst struct list_head *head}(hj/2hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj+2ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj'2ubjK)}(hhh]j)}(hthe list to testh]hthe list to test}(hjF2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB2hMhjC2ubah}(h]h ]h"]h$]h&]uh1jJhj'2ubeh}(h]h ]h"]h$]h&]uh1j*hjB2hMhj$2ubah}(h]h ]h"]h$]h&]uh1j%hj2ubj)}(h**Description**h]j)}(hjh2h]h Description}(hjj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubj)}(h~tests whether a list is empty _and_ checks that no other CPU might be in the process of modifying either member (next or prev)h]h~tests whether a list is empty _and_ checks that no other CPU might be in the process of modifying either member (next or prev)}(hj~2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubj)}(h**NOTE**h]j)}(hj2h]hNOTE}(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.hhMhj2ubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubeh}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hMubjZ)}(hlist_rotate_lefth]j`)}(hlist_rotate_lefth]hlist_rotate_left}(hj2hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj2ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj2hhhj2hMubj)}(h(struct list_head *head)h]j)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3ubh)}(hhh]j`)}(h list_headh]h list_head}(hj/3hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj,3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj13modnameN classnameNjj)}j]j)}jj2sbc.list_rotate_leftasbuh1hhj 3ubj)}(h h]h }(hjO3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3ubj2)}(hjh]h*}(hj]3hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj 3ubj`)}(hheadh]hhead}(hjj3hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj 3ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj 3ubah}(h]h ]h"]h$]h&]hhuh1jhj2hhhj2hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jMhj2hMhj2hhubj)}(hhh]j)}(hrotate the list to the lefth]hrotate the list to the left}(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&]uh1jhj2hhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jHhhhj&hNhNubj)}(hA**Parameters** ``struct list_head *head`` the head of the listh](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+)}(h/``struct list_head *head`` the head of the listh](j1)}(h``struct list_head *head``h]j$)}(hj3h]hstruct list_head *head}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj3ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubah}(h]h ]h"]h$]h&]uh1jJhj3ubeh}(h]h ]h"]h$]h&]uh1j*hj3hMhj3ubah}(h]h ]h"]h$]h&]uh1j%hj3ubeh}(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}(hj/4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+4hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj>4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+4hhhj=4hMubjZ)}(hlist_rotate_to_fronth]j`)}(hlist_rotate_to_fronth]hlist_rotate_to_front}(hjP4hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjL4ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj+4hhhj=4hMubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjl4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh4ubj)}(h h]h }(hjy4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh4ubh)}(hhh]j`)}(h list_headh]h list_head}(hj4hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j)}jjR4sbc.list_rotate_to_frontasbuh1hhjh4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh4ubj2)}(hjh]h*}(hj4hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjh4ubj`)}(hlisth]hlist}(hj4hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjh4ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjd4ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j`)}(h list_headh]h list_head}(hj4hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j4c.list_rotate_to_frontasbuh1hhj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(hjh]h*}(hj(5hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj4ubj`)}(hheadh]hhead}(hj55hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj4ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjd4ubeh}(h]h ]h"]h$]h&]hhuh1jhj+4hhhj=4hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj'4hhhj=4hMubah}(h]j"4ah ](jjeh"]h$]h&]jj)jhuh1jMhj=4hMhj$4hhubj)}(hhh]j)}(hRotate list to specific item.h]hRotate list to specific item.}(hj_5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj\5hhubah}(h]h ]h"]h$]h&]uh1jhj$4hhhj=4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw5jjw5jjjuh1jHhhhj&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)}(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.hhMhj{5ubj&)}(hhh](j+)}(h>``struct list_head *list`` The desired new front of the list. h](j1)}(h``struct list_head *list``h]j$)}(hj5h]hstruct list_head *list}(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)}(h"The desired new front of the list.h]h"The desired new front of the list.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jJhj5ubeh}(h]h ]h"]h$]h&]uh1j*hj5hMhj5ubj+)}(h1``struct list_head *head`` The head of the list. h](j1)}(h``struct list_head *head``h]j$)}(hj5h]hstruct 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 head of the list.h]hThe head of the list.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jJhj5ubeh}(h]h ]h"]h$]h&]uh1j*hj5hMhj5ubeh}(h]h ]h"]h$]h&]uh1j%hj{5ubj)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(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.hhMhj{5ubj)}(h@Rotates list so that **list** becomes the new front of the list.h](hRotates list so that }(hj*6hhhNhNubj)}(h**list**h]hlist}(hj26hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*6ubh# becomes the new front of the list.}(hj*6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj{5ubeh}(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}(hjk6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjz6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg6hhhjy6hMubjZ)}(hlist_is_singularh]j`)}(hlist_is_singularh]hlist_is_singular}(hj6hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj6ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjg6hhhjy6hMubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj('h]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jj6sbc.list_is_singularasbuh1hhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(hjh]h*}(hj7hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj6ubj`)}(hheadh]hhead}(hj7hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubah}(h]h ]h"]h$]h&]hhuh1jhjg6hhhjy6hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjc6hhhjy6hMubah}(h]j^6ah ](jjeh"]h$]h&]jj)jhuh1jMhjy6hMhj`6hhubj)}(hhh]j)}(h(tests whether a list has just one entry.h]h(tests whether a list has just one entry.}(hjF7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjC7hhubah}(h]h ]h"]h$]h&]uh1jhj`6hhhjy6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^7jj^7jjjuh1jHhhhj&hNhNubj)}(hD**Parameters** ``const struct list_head *head`` the list to test.h](j)}(h**Parameters**h]j)}(hjh7h]h Parameters}(hjj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjb7ubj&)}(hhh]j+)}(h2``const struct list_head *head`` the list to test.h](j1)}(h ``const struct list_head *head``h]j$)}(hj7h]hconst struct list_head *head}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj7ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj7ubjK)}(hhh]j)}(hthe list to test.h]hthe list to test.}(hj7hhhNhNubah}(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&]uh1jJhj7ubeh}(h]h ]h"]h$]h&]uh1j*hj7hMhj~7ubah}(h]h ]h"]h$]h&]uh1j%hjb7ubeh}(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}(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_cut_positionh]j`)}(hlist_cut_positionh]hlist_cut_position}(hj8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj7ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj7hhhj7hMubj)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj+8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j`)}(h list_headh]h list_head}(hj<8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj98ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>8modnameN classnameNjj)}j]j)}jj8sbc.list_cut_positionasbuh1hhj8ubj)}(h h]h }(hj\8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(hjh]h*}(hjj8hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj8ubj`)}(hlisth]hlist}(hjw8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj8ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j`)}(h list_headh]h list_head}(hj8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]jX8c.list_cut_positionasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(hjh]h*}(hj8hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj8ubj`)}(hheadh]hhead}(hj8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj8ubj)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j`)}(h list_headh]h list_head}(hj9hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj 9modnameN classnameNjj)}j]jX8c.list_cut_positionasbuh1hhj8ubj)}(h h]h }(hj<9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(hjh]h*}(hjJ9hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj8ubj`)}(hentryh]hentry}(hjW9hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj8ubeh}(h]h ]h"]h$]h&]hhuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jMhj7hMhj7hhubj)}(hhh]j)}(hcut a list into twoh]hcut a list into two}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj~9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jHhhhj&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)}(hj9h]h Parameters}(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.hhMhj9ubj&)}(hhh](j+)}(hA``struct list_head *list`` a new list to add all removed entries 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%a new list to add all removed entriesh]h%a new list to add all removed entries}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jJhj9ubeh}(h]h ]h"]h$]h&]uh1j*hj9hMhj9ubj+)}(h/``struct list_head *head`` a list with entries h](j1)}(h``struct list_head *head``h]j$)}(hj9h]hstruct list_head *head}(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)}(ha list with entriesh]ha list with entries}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jJhj9ubeh}(h]h ]h"]h$]h&]uh1j*hj:hMhj9ubj+)}(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$)}(hj4:h]hstruct list_head *entry}(hj6:hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2: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}(hjM:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjJ:ubah}(h]h ]h"]h$]h&]uh1jJhj.:ubeh}(h]h ]h"]h$]h&]uh1j*hjI:hMhj9ubeh}(h]h ]h"]h$]h&]uh1j%hj9ubj)}(h**Description**h]j)}(hjp:h]h Description}(hjr:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn:ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9ubj)}(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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh an element you know is on }(hj:hhhNhNubj)}(h**head**h]hhead}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh. }(hj:hhhNhNubj)}(h**list**h]hlist}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: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.hhMhj9ubeh}(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}(hj3;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 }(hjB;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/;hhhjA;hMubjZ)}(hlist_cut_beforeh]j`)}(hlist_cut_beforeh]hlist_cut_before}(hjT;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjP;ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj/;hhhjA;hMubj)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjp;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl;ubj)}(h h]h }(hj};hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl;ubh)}(hhh]j`)}(h list_headh]h list_head}(hj;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj;modnameN classnameNjj)}j]j)}jjV;sbc.list_cut_beforeasbuh1hhjl;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl;ubj2)}(hjh]h*}(hj;hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjl;ubj`)}(hlisth]hlist}(hj;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjl;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjh;ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j;c.list_cut_beforeasbuh1hhj;ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(hjh]h*}(hj,<hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj;ubj`)}(hheadh]hhead}(hj9<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjh;ubj)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hjR<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN<ubj)}(h h]h }(hj_<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN<ubh)}(hhh]j`)}(h list_headh]h list_head}(hjp<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjm<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjr<modnameN classnameNjj)}j]j;c.list_cut_beforeasbuh1hhjN<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN<ubj2)}(hjh]h*}(hj<hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjN<ubj`)}(hentryh]hentry}(hj<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjN<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjh;ubeh}(h]h ]h"]h$]h&]hhuh1jhj/;hhhjA;hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj+;hhhjA;hMubah}(h]j&;ah ](jjeh"]h$]h&]jj)jhuh1jMhjA;hMhj(;hhubj)}(hhh]j)}(h'cut a list into two, before given entryh]h'cut a list into two, before given entry}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<hhubah}(h]h ]h"]h$]h&]uh1jhj(;hhhjA;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 **Description** This helper moves the initial part of **head**, up to but excluding **entry**, from **head** to **list**. You should pass in **entry** an element you know is on **head**. **list** should be an empty list or a list you do not care about losing its data. If **entry** == **head**, all entries on **head** are moved to **list**.h](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]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#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$)}(hjM=h]hstruct list_head *head}(hjO=hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjK=ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjG=ubjK)}(hhh]j)}(ha list with entriesh]ha list with entries}(hjf=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb=hMhjc=ubah}(h]h ]h"]h$]h&]uh1jJhjG=ubeh}(h]h ]h"]h$]h&]uh1j*hjb=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}(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.an entry within head, could be the head itselfh]h.an entry within head, could be the head itself}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jJhj=ubeh}(h]h ]h"]h$]h&]uh1j*hj=hMhj =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)}(hXGThis helper moves the initial part of **head**, up to but excluding **entry**, from **head** to **list**. You should pass in **entry** an element you know is on **head**. **list** should be an empty list or a list you do not care about losing its data. If **entry** == **head**, all entries on **head** are moved to **list**.h](h&This helper moves the initial part of }(hj=hhhNhNubj)}(h**head**h]hhead}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh, up to but excluding }(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 in }(hj=hhhNhNubj)}(h **entry**h]hentry}(hj'>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh an element you know is on }(hj=hhhNhNubj)}(h**head**h]hhead}(hj9>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. }(hj=hhhNhNubj)}(h**list**h]hlist}(hjK>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhM should be an empty list or a list you do not care about losing its data. If }(hj=hhhNhNubj)}(h **entry**h]hentry}(hj]>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh == }(hj=hhhNhNubj)}(h**head**h]hhead}(hjo>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh, all entries on }(hj=hhhNhNubj)}(h**head**h]hhead}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh are moved to }(hj=hhhNhNubj)}(h**list**h]hlist}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]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_splice (C function) c.list_splicehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hGvoid list_splice (const struct list_head *list, struct list_head *head)h]jT)}(hFvoid list_splice(const struct list_head *list, struct list_head *head)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.hhM"ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hM"ubjZ)}(h list_spliceh]j`)}(h list_spliceh]h list_splice}(hj>hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj>ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj>hhhj>hM"ubj)}(h6(const struct list_head *list, struct list_head *head)h](j)}(hconst struct list_head *listh](j)}(hj('h]hconst}(hj ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hjh]hstruct}(hj$?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj1?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j`)}(h list_headh]h list_head}(hjB?hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj??ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjD?modnameN classnameNjj)}j]j)}jj>sb c.list_spliceasbuh1hhj?ubj)}(h h]h }(hjb?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(hjh]h*}(hjp?hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj?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)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]j^? c.list_spliceasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(hjh]h*}(hj?hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj?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>hM"ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj>hhhj>hM"ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jMhj>hM"hj>hhubj)}(hhh]j)}(h+join two lists, this is designed for stacksh]h+join two lists, this is designed for stacks}(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>hhhj>hM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/@jj/@jjjuh1jHhhhj&hNhNubj)}(h**Parameters** ``const struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list.h](j)}(h**Parameters**h]j)}(hj9@h]h Parameters}(hj;@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7@ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM&hj3@ubj&)}(hhh](j+)}(h6``const struct list_head *list`` the new list to add. h](j1)}(h ``const struct list_head *list``h]j$)}(hjX@h]hconst struct list_head *list}(hjZ@hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjV@ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM#hjR@ubjK)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hjq@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm@hM#hjn@ubah}(h]h ]h"]h$]h&]uh1jJhjR@ubeh}(h]h ]h"]h$]h&]uh1j*hjm@hM#hjO@ubj+)}(hA``struct list_head *head`` the place to add it in the first list.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.hhM%hj@ubjK)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first 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%hjO@ubeh}(h]h ]h"]h$]h&]uh1j%hj3@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_splice_tail (C function)c.list_splice_tailhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hFvoid list_splice_tail (struct list_head *list, struct list_head *head)h]jT)}(hEvoid list_splice_tail(struct list_head *list, struct list_head *head)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.hhM.ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hM.ubjZ)}(hlist_splice_tailh]j`)}(hlist_splice_tailh]hlist_splice_tail}(hj AhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjAubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj@hhhj@hM.ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj(AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Aubj)}(h h]h }(hj5AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Aubh)}(hhh]j`)}(h list_headh]h list_head}(hjFAhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjCAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjHAmodnameN classnameNjj)}j]j)}jjAsbc.list_splice_tailasbuh1hhj$Aubj)}(h h]h }(hjfAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Aubj2)}(hjh]h*}(hjtAhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj$Aubj`)}(hlisth]hlist}(hjAhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj$Aubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj Aubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j`)}(h list_headh]h list_head}(hjAhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]jbAc.list_splice_tailasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2)}(hjh]h*}(hjAhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjAubj`)}(hheadh]hhead}(hjAhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjAubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj Aubeh}(h]h ]h"]h$]h&]hhuh1jhj@hhhj@hM.ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj@hhhj@hM.ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jMhj@hM.hj@hhubj)}(hhh]j)}(h'join two lists, each list being a queueh]h'join two lists, each list being a queue}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM.hjBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3Bjj3Bjjjuh1jHhhhj&hNhNubj)}(h**Parameters** ``struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list.h](j)}(h**Parameters**h]j)}(hj=Bh]h Parameters}(hj?BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Bubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM2hj7Bubj&)}(hhh](j+)}(h0``struct list_head *list`` the new list to add. h](j1)}(h``struct list_head *list``h]j$)}(hj\Bh]hstruct list_head *list}(hj^BhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjZBubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM/hjVBubjK)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hjuBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqBhM/hjrBubah}(h]h ]h"]h$]h&]uh1jJhjVBubeh}(h]h ]h"]h$]h&]uh1j*hjqBhM/hjSBubj+)}(hA``struct list_head *head`` the place to add it in the first list.h](j1)}(h``struct list_head *head``h]j$)}(hjBh]hstruct list_head *head}(hjBhhhNhNubah}(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.hhM1hjBubjK)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM0hjBubah}(h]h ]h"]h$]h&]uh1jJhjBubeh}(h]h ]h"]h$]h&]uh1j*hjBhM1hjSBubeh}(h]h ]h"]h$]h&]uh1j%hj7Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_splice_init (C function)c.list_splice_inithNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hFvoid list_splice_init (struct list_head *list, struct list_head *head)h]jT)}(hEvoid list_splice_init(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM:ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM:ubjZ)}(hlist_splice_inith]j`)}(hlist_splice_inith]hlist_splice_init}(hjChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj Cubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjBhhhjBhM:ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj,ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Cubj)}(h h]h }(hj9ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Cubh)}(hhh]j`)}(h list_headh]h list_head}(hjJChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjGCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLCmodnameN classnameNjj)}j]j)}jjCsbc.list_splice_initasbuh1hhj(Cubj)}(h h]h }(hjjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Cubj2)}(hjh]h*}(hjxChhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj(Cubj`)}(hlisth]hlist}(hjChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj(Cubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj$Cubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j`)}(h list_headh]h list_head}(hjChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]jfCc.list_splice_initasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(hjh]h*}(hjChhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjCubj`)}(hheadh]hhead}(hjChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj$Cubeh}(h]h ]h"]h$]h&]hhuh1jhjBhhhjBhM:ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjBhhhjBhM:ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jMhjBhM:hjBhhubj)}(hhh]j)}(h1join two lists and reinitialise the emptied list.h]h1join two lists and reinitialise the emptied list.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM:hjDhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7Djj7Djjjuh1jHhhhj&hNhNubj)}(h**Parameters** ``struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list. **Description** The list at **list** is reinitialisedh](j)}(h**Parameters**h]j)}(hjADh]h Parameters}(hjCDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Dubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM>hj;Dubj&)}(hhh](j+)}(h0``struct list_head *list`` the new list to add. h](j1)}(h``struct list_head *list``h]j$)}(hj`Dh]hstruct list_head *list}(hjbDhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj^Dubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM;hjZDubjK)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hjyDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuDhM;hjvDubah}(h]h ]h"]h$]h&]uh1jJhjZDubeh}(h]h ]h"]h$]h&]uh1j*hjuDhM;hjWDubj+)}(hB``struct list_head *head`` the place to add it in the first list. h](j1)}(h``struct list_head *head``h]j$)}(hjDh]hstruct list_head *head}(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.hhM<hjDubjK)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM<hjDubah}(h]h ]h"]h$]h&]uh1jJhjDubeh}(h]h ]h"]h$]h&]uh1j*hjDhM<hjWDubeh}(h]h ]h"]h$]h&]uh1j%hj;Dubj)}(h**Description**h]j)}(hjDh]h Description}(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.hhM>hj;Dubj)}(h%The list at **list** is reinitialisedh](h The list at }(hjDhhhNhNubj)}(h**list**h]hlist}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh is reinitialised}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM=hj;Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD"list_splice_tail_init (C function)c.list_splice_tail_inithNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hKvoid list_splice_tail_init (struct list_head *list, struct list_head *head)h]jT)}(hJvoid list_splice_tail_init(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hj+EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'EhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJubj)}(h h]h }(hj:EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Ehhhj9EhMJubjZ)}(hlist_splice_tail_inith]j`)}(hlist_splice_tail_inith]hlist_splice_tail_init}(hjLEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjHEubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj'Ehhhj9EhMJubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjhEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdEubj)}(h h]h }(hjuEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdEubh)}(hhh]j`)}(h list_headh]h list_head}(hjEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]j)}jjNEsbc.list_splice_tail_initasbuh1hhjdEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdEubj2)}(hjh]h*}(hjEhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjdEubj`)}(hlisth]hlist}(hjEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjdEubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj`Eubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j`)}(h list_headh]h list_head}(hjEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]jEc.list_splice_tail_initasbuh1hhjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(hjh]h*}(hj$FhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjEubj`)}(hheadh]hhead}(hj1FhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjEubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj`Eubeh}(h]h ]h"]h$]h&]hhuh1jhj'Ehhhj9EhMJubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj#Ehhhj9EhMJubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jMhj9EhMJhj Ehhubj)}(hhh]j)}(h0join two lists and reinitialise the emptied listh]h0join two lists and reinitialise the emptied list}(hj[FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJhjXFhhubah}(h]h ]h"]h$]h&]uh1jhj Ehhhj9EhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsFjjsFjjjuh1jHhhhj&hNhNubj)}(h**Parameters** ``struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list. **Description** Each of the lists is a queue. The list at **list** is reinitialisedh](j)}(h**Parameters**h]j)}(hj}Fh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Fubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMNhjwFubj&)}(hhh](j+)}(h0``struct list_head *list`` the new list to add. h](j1)}(h``struct list_head *list``h]j$)}(hjFh]hstruct list_head *list}(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.hhMKhjFubjK)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMKhjFubah}(h]h ]h"]h$]h&]uh1jJhjFubeh}(h]h ]h"]h$]h&]uh1j*hjFhMKhjFubj+)}(hB``struct list_head *head`` the place to add it in the first list. h](j1)}(h``struct list_head *head``h]j$)}(hjFh]hstruct list_head *head}(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.hhMLhjFubjK)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMLhjFubah}(h]h ]h"]h$]h&]uh1jJhjFubeh}(h]h ]h"]h$]h&]uh1j*hjFhMLhjFubeh}(h]h ]h"]h$]h&]uh1j%hjwFubj)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMNhjwFubj)}(hCEach of the lists is a queue. The list at **list** is reinitialisedh](h*Each of the lists is a queue. The list at }(hj&GhhhNhNubj)}(h**list**h]hlist}(hj.GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Gubh is reinitialised}(hj&GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMMhjwFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_entry (C macro) c.list_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h list_entryh]jT)}(h list_entryh]jZ)}(h list_entryh]j`)}(hjaGh]h list_entry}(hjkGhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjgGubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjcGhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM[ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj_Ghhhj~GhM[ubah}(h]jZGah ](jjeh"]h$]h&]jj)jhuh1jMhj~GhM[hj\Ghhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj\Ghhhj~GhM[ubeh}(h]h ](jmacroeh"]h$]h&]jjjjGjjGjjjuh1jHhhhj&hNhNubj)}(h"``list_entry (ptr, type, member)``h]j$)}(hjGh]hlist_entry (ptr, type, member)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM]hj&hhubj)}(hget the struct for this entry h]j)}(hget the struct for this entryh]hget the struct for this entry}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM[hjGubah}(h]h ]h"]h$]h&]uh1jhjGhM[hj&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)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM_hjGubj&)}(hhh](j+)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j1)}(h``ptr``h]j$)}(hjGh]hptr}(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)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hj HhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjHh]hstruct list_head}(hjHhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjHubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjHhM\hj Hubh pointer.}(hj HhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHhM\hjHubah}(h]h ]h"]h$]h&]uh1jJhjGubeh}(h]h ]h"]h$]h&]uh1j*hjHhM\hjGubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjMHh]htype}(hjOHhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjKHubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM]hjGHubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjfHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbHhM]hjcHubah}(h]h ]h"]h$]h&]uh1jJhjGHubeh}(h]h ]h"]h$]h&]uh1j*hjbHhM]hjGubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjHh]hmember}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjHubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM_hjHubjK)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM^hjHubah}(h]h ]h"]h$]h&]uh1jJhjHubeh}(h]h ]h"]h$]h&]uh1j*hjHhM_hjGubeh}(h]h ]h"]h$]h&]uh1j%hjGubeh}(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`)}(hjHh]hlist_first_entry}(hjHhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjHubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjHhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMdubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjHhhhjHhMdubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jMhjHhMdhjHhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMdubeh}(h]h ](jmacroeh"]h$]h&]jjjjIjjIjjjuh1jHhhhj&hNhNubj)}(h(``list_first_entry (ptr, type, member)``h]j$)}(hjIh]h$list_first_entry (ptr, type, member)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjIubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMfhj&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}(hj0IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMdhj,Iubah}(h]h ]h"]h$]h&]uh1jhj>IhMdhj&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)}(hjKIh]h Parameters}(hjMIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIIubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhjEIubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjjIh]hptr}(hjlIhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjhIubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMehjdIubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMehjIubah}(h]h ]h"]h$]h&]uh1jJhjdIubeh}(h]h ]h"]h$]h&]uh1j*hjIhMehjaIubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjIh]htype}(hjIhhhNhNubah}(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.hhMfhjIubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMfhjIubah}(h]h ]h"]h$]h&]uh1jJhjIubeh}(h]h ]h"]h$]h&]uh1j*hjIhMfhjaIubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjIh]hmember}(hjIhhhNhNubah}(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.hhMghjIubjK)}(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&]uh1hhjIhMghjIubah}(h]h ]h"]h$]h&]uh1jJhjIubeh}(h]h ]h"]h$]h&]uh1j*hjIhMghjaIubeh}(h]h ]h"]h$]h&]uh1j%hjEIubj)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(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.hhMihjEIubj)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hj-JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhjEIubeh}(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`)}(hjVJh]hlist_last_entry}(hj`JhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj\Jubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjXJhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMoubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjTJhhhjsJhMoubah}(h]jOJah ](jjeh"]h$]h&]jj)jhuh1jMhjsJhMohjQJhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjQJhhhjsJhMoubeh}(h]h ](jmacroeh"]h$]h&]jjjjJjjJjjjuh1jHhhhj&hNhNubj)}(h'``list_last_entry (ptr, type, member)``h]j$)}(hjJh]h#list_last_entry (ptr, type, member)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjJubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMqhj&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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMohjJubah}(h]h ]h"]h$]h&]uh1jhjJhMohj&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)}(hjJh]h Parameters}(hjJhhhNhNubah}(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.hhMshjJubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjJh]hptr}(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.hhMphjJubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMphjJubah}(h]h ]h"]h$]h&]uh1jJhjJubeh}(h]h ]h"]h$]h&]uh1j*hjJhMphjJubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjKh]htype}(hj!KhhhNhNubah}(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.hhMqhjKubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj8KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4KhMqhj5Kubah}(h]h ]h"]h$]h&]uh1jJhjKubeh}(h]h ]h"]h$]h&]uh1j*hj4KhMqhjJubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjXKh]hmember}(hjZKhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjVKubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMrhjRKubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjqKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmKhMrhjnKubah}(h]h ]h"]h$]h&]uh1jJhjRKubeh}(h]h ]h"]h$]h&]uh1j*hjmKhMrhjJubeh}(h]h ]h"]h$]h&]uh1j%hjJubj)}(h**Description**h]j)}(hjKh]h Description}(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.hhMthjJubj)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMshjJubeh}(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`)}(hjKh]hlist_first_entry_or_null}(hjKhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjKubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjKhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjKhhhjKhMzubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jMhjKhMzhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjKhMzubeh}(h]h ](jmacroeh"]h$]h&]jjjjLjjLjjjuh1jHhhhj&hNhNubj)}(h0``list_first_entry_or_null (ptr, type, member)``h]j$)}(hjLh]h,list_first_entry_or_null (ptr, type, member)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj Lubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM|hj&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}(hj(LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzhj$Lubah}(h]h ]h"]h$]h&]uh1jhj6LhMzhj&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)}(hjCLh]h Parameters}(hjELhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjALubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj=Lubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjbLh]hptr}(hjdLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj`Lubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM{hj\LubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hj{LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwLhM{hjxLubah}(h]h ]h"]h$]h&]uh1jJhj\Lubeh}(h]h ]h"]h$]h&]uh1j*hjwLhM{hjYLubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjLh]htype}(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.hhM|hjLubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM|hjLubah}(h]h ]h"]h$]h&]uh1jJhjLubeh}(h]h ]h"]h$]h&]uh1j*hjLhM|hjYLubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjLh]hmember}(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.hhM}hjLubjK)}(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&]uh1hhjLhM}hjLubah}(h]h ]h"]h$]h&]uh1jJhjLubeh}(h]h ]h"]h$]h&]uh1j*hjLhM}hjYLubeh}(h]h ]h"]h$]h&]uh1j%hj=Lubj)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj=Lubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hj%MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj=Lubeh}(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`)}(hjNMh]hlist_last_entry_or_null}(hjXMhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjTMubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjPMhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjLMhhhjkMhMubah}(h]jGMah ](jjeh"]h$]h&]jj)jhuh1jMhjkMhMhjIMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIMhhhjkMhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjMjjMjjjuh1jHhhhj&hNhNubj)}(h/``list_last_entry_or_null (ptr, type, member)``h]j$)}(hjMh]h+list_last_entry_or_null (ptr, type, member)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjMubah}(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}(hjMhhhNhNubah}(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&]uh1jhjMhMhj&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)}(hjMh]h Parameters}(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.hhMhjMubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjMh]hptr}(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 list head to take the element from.h]h'the list head to take the element from.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jJhjMubeh}(h]h ]h"]h$]h&]uh1j*hjMhMhjMubj+)}(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.}(hj0NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,NhMhj-Nubah}(h]h ]h"]h$]h&]uh1jJhjNubeh}(h]h ]h"]h$]h&]uh1j*hj,NhMhjMubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjPNh]hmember}(hjRNhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjNNubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjJNubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjiNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeNhMhjfNubah}(h]h ]h"]h$]h&]uh1jJhjJNubeh}(h]h ]h"]h$]h&]uh1j*hjeNhMhjMubeh}(h]h ]h"]h$]h&]uh1j%hjMubj)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjMubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjMubeh}(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`)}(hjN4h]hlist_next_entry}(hjNhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjNubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjNhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjNhhhjNhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jMhjNhMhjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1jHhhhj&hNhNubj)}(h!``list_next_entry (pos, member)``h]j$)}(hjOh]hlist_next_entry (pos, 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)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hj OhhhNhNubah}(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&]uh1jhj.OhMhj&hhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hj;Oh]h Parameters}(hj=OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Oubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5Oubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjZOh]hpos}(hj\OhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjXOubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjTOubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjsOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoOhMhjpOubah}(h]h ]h"]h$]h&]uh1jJhjTOubeh}(h]h ]h"]h$]h&]uh1j*hjoOhMhjQOubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjOh]hmember}(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 name of the list_head within the struct.h]h,the name of the list_head within the struct.}(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&]uh1jJhjOubeh}(h]h ]h"]h$]h&]uh1j*hjOhMhjQOubeh}(h]h ]h"]h$]h&]uh1j%hj5Oubeh}(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`)}(hjOh]hlist_next_entry_circular}(hjOhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjOubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjOhhhjPhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jMhjPhMhjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjPhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjPjjPjjjuh1jHhhhj&hNhNubj)}(h0``list_next_entry_circular (pos, head, member)``h]j$)}(hj#Ph]h,list_next_entry_circular (pos, head, member)}(hj%PhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj!Pubah}(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}(hj=PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9Pubah}(h]h ]h"]h$]h&]uh1jhjKPhMhj&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)}(hjXPh]h Parameters}(hjZPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRPubj&)}(hhh](j+)}(h``pos`` the type * to cursor. h](j1)}(h``pos``h]j$)}(hjwPh]hpos}(hjyPhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjuPubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjqPubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jJhjqPubeh}(h]h ]h"]h$]h&]uh1j*hjPhMhjnPubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hjPh]hhead}(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 list head to take the element from.h]h'the list head to take the element from.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jJhjPubeh}(h]h ]h"]h$]h&]uh1j*hjPhMhjnPubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjPh]hmember}(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 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&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jJhjPubeh}(h]h ]h"]h$]h&]uh1j*hjPhMhjnPubeh}(h]h ]h"]h$]h&]uh1j%hjRPubj)}(h**Description**h]j)}(hj$Qh]h Description}(hj&QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Qubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRPubj)}(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:QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRPubeh}(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`)}(hjcQh]hlist_prev_entry}(hjmQhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjiQubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjeQhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjaQhhhjQhMubah}(h]j\Qah ](jjeh"]h$]h&]jj)jhuh1jMhjQhMhj^Qhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^QhhhjQhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjQjjQjjjuh1jHhhhj&hNhNubj)}(h!``list_prev_entry (pos, member)``h]j$)}(hjQh]hlist_prev_entry (pos, 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)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(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&]uh1jhjQhMhj&hhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjQh]hpos}(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)}(hthe type * to cursorh]hthe type * to cursor}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhj Rubah}(h]h ]h"]h$]h&]uh1jJhjQubeh}(h]h ]h"]h$]h&]uh1j*hjRhMhjQubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj,Rh]hmember}(hj.RhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj*Rubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&RubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjERhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjBRubah}(h]h ]h"]h$]h&]uh1jJhj&Rubeh}(h]h ]h"]h$]h&]uh1j*hjARhMhjQubeh}(h]h ]h"]h$]h&]uh1j%hjQubeh}(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`)}(hjRh]hlist_prev_entry_circular}(hjRhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjRubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjRhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj~RhhhjRhMubah}(h]jyRah ](jjeh"]h$]h&]jj)jhuh1jMhjRhMhj{Rhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{RhhhjRhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjRjjRjjjuh1jHhhhj&hNhNubj)}(h0``list_prev_entry_circular (pos, head, member)``h]j$)}(hjRh]h,list_prev_entry_circular (pos, head, member)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(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}(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)}(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)}(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+)}(h``pos`` the type * to cursor. h](j1)}(h``pos``h]j$)}(hjSh]hpos}(hjShhhNhNubah}(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.hhMhj SubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hj)ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ShMhj&Subah}(h]h ]h"]h$]h&]uh1jJhj Subeh}(h]h ]h"]h$]h&]uh1j*hj%ShMhjSubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hjISh]hhead}(hjKShhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGSubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjCSubjK)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjbShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ShMhj_Subah}(h]h ]h"]h$]h&]uh1jJhjCSubeh}(h]h ]h"]h$]h&]uh1j*hj^ShMhjSubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjSh]hmember}(hjShhhNhNubah}(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.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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1jJhj|Subeh}(h]h ]h"]h$]h&]uh1j*hjShMhjSubeh}(h]h ]h"]h$]h&]uh1j%hjRubj)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(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.hhMhjRubj)}(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.}(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_for_each (C macro)c.list_for_eachhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h list_for_eachh]jT)}(h list_for_eachh]jZ)}(h list_for_eachh]j`)}(hjSh]h list_for_each}(hjThhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjTubah}(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~uh1jSjjhjShhhjThMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jMhjThMhjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjThMubeh}(h]h ](jmacroeh"]h$]h&]jjjj2Tjj2Tjjjuh1jHhhhj&hNhNubj)}(h``list_for_each (pos, head)``h]j$)}(hj8Th]hlist_for_each (pos, head)}(hj:ThhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj6Tubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(hiterate over a list h]j)}(hiterate over a listh]hiterate over a list}(hjRThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjNTubah}(h]h ]h"]h$]h&]uh1jhj`ThMhj&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)}(hjmTh]h Parameters}(hjoThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjgTubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjTh]hpos}(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)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjThhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjTh]hstruct list_head}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjThMhjTubh to use as a loop cursor.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jJhjTubeh}(h]h ]h"]h$]h&]uh1j*hjThMhjTubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hjTh]hhead}(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)}(hthe head for your list.h]hthe head for your list.}(hjUhhhNhNubah}(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*hjThMhjTubeh}(h]h ]h"]h$]h&]uh1j%hjgTubeh}(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`)}(hjUhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj:UhhhjYUhMubah}(h]j5Uah ](jjeh"]h$]h&]jj)jhuh1jMhjYUhMhj7Uhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7UhhhjYUhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjrUjjrUjjjuh1jHhhhj&hNhNubj)}(h&``list_for_each_continue (pos, head)``h]j$)}(hjxUh]h"list_for_each_continue (pos, head)}(hjzUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjvUubah}(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}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUhMhj&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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjUh]hpos}(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)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjUhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjUh]hstruct list_head}(hjUhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjUhMhjUubh to use as a loop cursor.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jJhjUubeh}(h]h ]h"]h$]h&]uh1j*hjUhMhjUubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj(Vh]hhead}(hj*VhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj&Vubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj"VubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjAVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=VhMhj>Vubah}(h]h ]h"]h$]h&]uh1jJhj"Vubeh}(h]h ]h"]h$]h&]uh1j*hj=VhMhjUubeh}(h]h ]h"]h$]h&]uh1j%hjUubj)}(h**Description**h]j)}(hjcVh]h Description}(hjeVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubj)}(hGContinue to iterate over a list, continuing after the current position.h]hGContinue to iterate over a list, continuing after the current position.}(hjyVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubeh}(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`)}(hjVh]hlist_for_each_prev}(hjVhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjVubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjVhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjVhhhjVhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jMhjVhMhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjVjjVjjjuh1jHhhhj&hNhNubj)}(h"``list_for_each_prev (pos, head)``h]j$)}(hjVh]hlist_for_each_prev (pos, head)}(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)}(hiterate over a list backwards h]j)}(hiterate over a list backwardsh]hiterate over a list backwards}(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&]uh1jhjWhMhj&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)}(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.hhMhj Wubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hj2Wh]hpos}(hj4WhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj0Wubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj,WubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjKWhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjUWh]hstruct list_head}(hjWWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjSWubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjGWhMhjKWubh to use as a loop cursor.}(hjKWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGWhMhjHWubah}(h]h ]h"]h$]h&]uh1jJhj,Wubeh}(h]h ]h"]h$]h&]uh1j*hjGWhMhj)Wubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hjWh]hhead}(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)}(hthe head for your list.h]hthe head for your 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&]uh1jJhjWubeh}(h]h ]h"]h$]h&]uh1j*hjWhMhj)Wubeh}(h]h ]h"]h$]h&]uh1j%hj Wubeh}(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`)}(hjWh]hlist_for_each_safe}(hjWhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjWubah}(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~uh1jSjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jMhjWhMhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjXjjXjjjuh1jHhhhj&hNhNubj)}(h%``list_for_each_safe (pos, n, head)``h]j$)}(hjXh]h!list_for_each_safe (pos, n, head)}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjXubah}(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}(hj8XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj4Xubah}(h]h ]h"]h$]h&]uh1jhjFXhMhj&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)}(hjSXh]h Parameters}(hjUXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQXubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjMXubj&)}(hhh](j+)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjrXh]hpos}(hjtXhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjpXubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjlXubjK)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjXhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjXh]hstruct list_head}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjXhMhjXubh to use as a loop cursor.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jJhjlXubeh}(h]h ]h"]h$]h&]uh1j*hjXhMhjiXubj+)}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j1)}(h``n``h]j$)}(hjXh]hn}(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.hhMhjXubjK)}(hhh]j)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(hjXhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hjXh]hstruct list_head}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjXhMhjXubh to use as temporary storage}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jJhjXubeh}(h]h ]h"]h$]h&]uh1j*hjXhMhjiXubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hj*Yh]hhead}(hj,YhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj(Yubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj$YubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjCYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj@Yubah}(h]h ]h"]h$]h&]uh1jJhj$Yubeh}(h]h ]h"]h$]h&]uh1j*hj?YhMhjiXubeh}(h]h ]h"]h$]h&]uh1j%hjMXubeh}(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`)}(hj~Yh]hlist_for_each_prev_safe}(hjYhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjYubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjYhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj|YhhhjYhMubah}(h]jwYah ](jjeh"]h$]h&]jj)jhuh1jMhjYhMhjyYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyYhhhjYhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjYjjYjjjuh1jHhhhj&hNhNubj)}(h*``list_for_each_prev_safe (pos, n, head)``h]j$)}(hjYh]h&list_for_each_prev_safe (pos, n, head)}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjYubah}(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}(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&]uh1jhjYhMhj&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)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYubj&)}(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#hj Zubah}(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 }(hj'ZhhhNhNubh)}(h&:c:type:`struct list_head `h]j$)}(hj1Zh]hstruct list_head}(hj3ZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hj/Zubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhj#ZhMhj'Zubh to use as a loop cursor.}(hj'ZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#ZhMhj$Zubah}(h]h ]h"]h$]h&]uh1jJhjZubeh}(h]h ]h"]h$]h&]uh1j*hj#ZhMhjZubj+)}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j1)}(h``n``h]j$)}(hjjZh]hn}(hjlZhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjhZubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjdZubjK)}(hhh]j)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(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 temporary storage}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jJhjdZubeh}(h]h ]h"]h$]h&]uh1j*hjZhMhjZubj+)}(h ``head`` the head for your list.h](j1)}(h``head``h]j$)}(hjZh]hhead}(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)}(hthe head for your list.h]hthe head for your 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&]uh1jJhjZubeh}(h]h ]h"]h$]h&]uh1j*hjZhMhjZubeh}(h]h ]h"]h$]h&]uh1j%hjYubeh}(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&] refdomainjreftypej reftargetj%[modnameN classnameNjj)}j]j)}jlist_count_nodessbc.list_count_nodesasbuh1hhj[hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjE[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjD[hMubjZ)}(hlist_count_nodesh]j`)}(hjA[h]hlist_count_nodes}(hjW[hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjS[ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj[hhhjD[hMubj)}(h(struct list_head *head)h]j)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjr[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn[ubh)}(hhh]j`)}(h list_headh]h list_head}(hj[hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj[modnameN classnameNjj)}j]j?[c.list_count_nodesasbuh1hhjn[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn[ubj2)}(hjh]h*}(hj[hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjn[ubj`)}(hheadh]hhead}(hj[hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjn[ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjj[ubah}(h]h ]h"]h$]h&]hhuh1jhj[hhhjD[hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj[hhhjD[hMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jMhjD[hMhj[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.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjD[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj \jj \jjjuh1jHhhhj&hNhNubj)}(hD**Parameters** ``struct list_head *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+)}(h2``struct list_head *head`` the head for your list.h](j1)}(h``struct list_head *head``h]j$)}(hj4\h]hstruct list_head *head}(hj6\hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2\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.}(hjM\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjJ\ubah}(h]h ]h"]h$]h&]uh1jJhj.\ubeh}(h]h ]h"]h$]h&]uh1j*hjI\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_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\h]hlist_entry_is_head}(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_entry_is_head (pos, head, member)``h]j$)}(hj\h]h&list_entry_is_head (pos, head, member)}(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)}(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}(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 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)}(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+)}(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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]ubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hj1]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!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjQ]h]hhead}(hjS]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjO]ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjK]ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf]hMhjg]ubah}(h]h ]h"]h$]h&]uh1jJhjK]ubeh}(h]h ]h"]h$]h&]uh1j*hjf]hMhj]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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]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&]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_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`)}(hj]h]hlist_for_each_entry}(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_entry (pos, head, member)``h]j$)}(hj^h]h'list_for_each_entry (pos, head, member)}(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)}(h iterate over list of given type h]j)}(hiterate over list of given typeh]hiterate over list of given type}(hj4^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj0^ubah}(h]h ]h"]h$]h&]uh1jhjB^hMhj&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)}(hjO^h]h Parameters}(hjQ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjI^ubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjn^h]hpos}(hjp^hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjl^ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjh^ubjK)}(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^hM hj^ubah}(h]h ]h"]h$]h&]uh1jJhjh^ubeh}(h]h ]h"]h$]h&]uh1j*hj^hM hje^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&]uh1hhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jJhj^ubeh}(h]h ]h"]h$]h&]uh1j*hj^hM hje^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&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj^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&]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 hje^ubeh}(h]h ]h"]h$]h&]uh1j%hjI^ubeh}(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`)}(hj4_h]hlist_for_each_entry_reverse}(hj>_hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj:_ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj6_hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj2_hhhjQ_hMubah}(h]j-_ah ](jjeh"]h$]h&]jj)jhuh1jMhjQ_hMhj/_hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/_hhhjQ_hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjj_jjj_jjjuh1jHhhhj&hNhNubj)}(h3``list_for_each_entry_reverse (pos, head, member)``h]j$)}(hjp_h]h/list_for_each_entry_reverse (pos, head, member)}(hjr_hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjn_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&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.}(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 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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj_ubj&)}(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#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#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]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.}(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+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj6`h]hmember}(hj8`hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj4`ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj0`ubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjO`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjL`ubah}(h]h ]h"]h$]h&]uh1jJhj0`ubeh}(h]h ]h"]h$]h&]uh1j*hjK`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_prepare_entry (C macro)c.list_prepare_entryhNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_prepare_entryh]jT)}(hlist_prepare_entryh]jZ)}(hlist_prepare_entryh]j`)}(hj`h]hlist_prepare_entry}(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_prepare_entry (pos, head, member)``h]j$)}(hj`h]h&list_prepare_entry (pos, head, member)}(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)}(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()}(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 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)}(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+)}(h+``pos`` the type * to use as a start point h](j1)}(h``pos``h]j$)}(hjah]hpos}(hjahhhNhNubah}(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.hhMhjaubjK)}(hhh]j)}(h"the type * to use as a start pointh]h"the type * to use as a start point}(hj3ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ahMhj0aubah}(h]h ]h"]h$]h&]uh1jJhjaubeh}(h]h ]h"]h$]h&]uh1j*hj/ahMhjaubj+)}(h``head`` the head of the list h](j1)}(h``head``h]j$)}(hjSah]hhead}(hjUahhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQaubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjMaubjK)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjlahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhahM hjiaubah}(h]h ]h"]h$]h&]uh1jJhjMaubeh}(h]h ]h"]h$]h&]uh1j*hjhahM hjaubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjah]hmember}(hjahhhNhNubah}(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.hhM!hjaubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM!hjaubah}(h]h ]h"]h$]h&]uh1jJhjaubeh}(h]h ]h"]h$]h&]uh1j*hjahM!hjaubeh}(h]h ]h"]h$]h&]uh1j%hj`ubj)}(h**Description**h]j)}(hjah]h Description}(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.hhM#hj`ubj)}(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().}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM"hj`ubeh}(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`)}(hjbh]hlist_for_each_entry_continue}(hjbhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj bubah}(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~uh1jSjjhjbhhhj#bhM)ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jMhj#bhM)hjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhj#bhM)ubeh}(h]h ](jmacroeh"]h$]h&]jjjjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj:lubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj6lubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjUlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQlhM~hjRlubah}(h]h ]h"]h$]h&]uh1jJhj6lubeh}(h]h ]h"]h$]h&]uh1j*hjQlhM~hjkubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjulh]hmember}(hjwlhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjslubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjolubjK)}(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&]uh1jJhjolubeh}(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)}(hWIterate over list of given type from current point, safe against removal of list entry.h]hWIterate over list of given type from current point, safe against removal of list entry.}(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_reverse (C macro)"c.list_for_each_entry_safe_reversehNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(h list_for_each_entry_safe_reverseh]jT)}(h list_for_each_entry_safe_reverseh]jZ)}(h list_for_each_entry_safe_reverseh]j`)}(hjlh]h list_for_each_entry_safe_reverse}(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~uh1jSjjhjlhhhj mhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jMhj mhMhjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhj mhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj%mjj%mjjjuh1jHhhhj&hNhNubj)}(h;``list_for_each_entry_safe_reverse (pos, n, head, member)``h]j$)}(hj+mh]h7list_for_each_entry_safe_reverse (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)}(h1iterate backwards over list safe against removal h]j)}(h0iterate backwards over list safe against removalh]h0iterate backwards over list safe against removal}(hjEmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjAmubah}(h]h ]h"]h$]h&]uh1jhjSmhMhj&hhubj)}(hX1**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate backwards over list of given type, safe against removal of list entry.h](j)}(h**Parameters**h]j)}(hj`mh]h Parameters}(hjbmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^mubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZmubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjmh]hpos}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj}mubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjymubjK)}(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&]uh1jJhjymubeh}(h]h ]h"]h$]h&]uh1j*hjmhMhjvmubj+)}(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*hjmhMhjvmubj+)}(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.}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jJhjmubeh}(h]h ]h"]h$]h&]uh1j*hjnhMhjvmubj+)}(h8``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.}(hjCnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?nhMhj@nubah}(h]h ]h"]h$]h&]uh1jJhj$nubeh}(h]h ]h"]h$]h&]uh1j*hj?nhMhjvmubeh}(h]h ]h"]h$]h&]uh1j%hjZmubj)}(h**Description**h]j)}(hjenh]h Description}(hjgnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZmubj)}(hNIterate backwards over list of given type, safe against removal of list entry.h]hNIterate backwards over list of given type, safe against removal of list entry.}(hj{nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jDlist_safe_reset_next (C macro)c.list_safe_reset_nexthNtauh1j7hj&hhhNhNubjI)}(hhh](jN)}(hlist_safe_reset_nexth]jT)}(hlist_safe_reset_nexth]jZ)}(hlist_safe_reset_nexth]j`)}(hjnh]hlist_safe_reset_next}(hjnhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjnubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjnhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjnhhhjnhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jMhjnhMhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1jHhhhj&hNhNubj)}(h)``list_safe_reset_next (pos, n, member)``h]j$)}(hjnh]h%list_safe_reset_next (pos, n, member)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj&hhubj)}(h,reset a stale list_for_each_entry_safe loop h]j)}(h+reset a stale list_for_each_entry_safe looph]h+reset a stale list_for_each_entry_safe loop}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjnubah}(h]h ]h"]h$]h&]uh1jhjohMhj&hhubj)}(hX)**Parameters** ``pos`` the loop cursor used in the list_for_each_entry_safe loop ``n`` temporary storage used in list_for_each_entry_safe ``member`` the name of the list_head within the struct. **Description** list_safe_reset_next is not safe to use in general if the list may be modified concurrently (eg. the lock is dropped in the loop body). An exception to this is if the cursor element (pos) is pinned in the list, and list_safe_reset_next is called after re-taking the lock and before completing the current iteration of the loop body.h](j)}(h**Parameters**h]j)}(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+)}(hB``pos`` the loop cursor used in the list_for_each_entry_safe loop h](j1)}(h``pos``h]j$)}(hj4oh]hpos}(hj6ohhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2oubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj.oubjK)}(hhh]j)}(h9the loop cursor used in the list_for_each_entry_safe looph]h9the loop cursor used in the list_for_each_entry_safe loop}(hjMohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIohMhjJoubah}(h]h ]h"]h$]h&]uh1jJhj.oubeh}(h]h ]h"]h$]h&]uh1j*hjIohMhj+oubj+)}(h9``n`` temporary storage used in list_for_each_entry_safe h](j1)}(h``n``h]j$)}(hjmoh]hn}(hjoohhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjkoubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjgoubjK)}(hhh]j)}(h2temporary storage used in list_for_each_entry_safeh]h2temporary storage used in list_for_each_entry_safe}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jJhjgoubeh}(h]h ]h"]h$]h&]uh1j*hjohMhj+oubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjoh]hmember}(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 name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jJhjoubeh}(h]h ]h"]h$]h&]uh1j*hjohMhj+oubeh}(h]h ]h"]h$]h&]uh1j%hjoubj)}(h**Description**h]j)}(hjoh]h Description}(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)}(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.}(hjohhhNhNubah}(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](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}(hj&phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"phhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj5phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"phhhj4phMubjZ)}(hhlist_unhashedh]j`)}(hhlist_unhashedh]hhlist_unhashed}(hjGphhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjCpubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj"phhhj4phMubj)}(h(const struct hlist_node *h)h]j)}(hconst struct hlist_node *hh](j)}(hj('h]hconst}(hjcphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_pubj)}(h h]h }(hjpphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_pubj)}(hjh]hstruct}(hj~phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_pubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjphhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j)}jjIpsbc.hlist_unhashedasbuh1hhj_pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_pubj2)}(hjh]h*}(hjphhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj_pubj`)}(hhh]hh}(hjphhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj_pubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj[pubah}(h]h ]h"]h$]h&]hhuh1jhj"phhhj4phMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjphhhj4phMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jMhj4phMhjphhubj)}(hhh]j)}(h2Has node been removed from list and reinitialized?h]h2Has node been removed from list and reinitialized?}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjphhubah}(h]h ]h"]h$]h&]uh1jhjphhhj4phMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jHhhhj&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)}(hj#qh]h Parameters}(hj%qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!qubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjqubj&)}(hhh]j+)}(h2``const struct hlist_node *h`` Node to be checked h](j1)}(h``const struct hlist_node *h``h]j$)}(hjBqh]hconst struct hlist_node *h}(hjDqhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj@qubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj}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|hhhj|hM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjV}jjV}jjjuh1jHhhhj&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)}(hj`}h]h Parameters}(hjb}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&hjZ}ubj&)}(hhh](j+)}(h/``struct hlist_node *n`` new entry to be added h](j1)}(h``struct hlist_node *n``h]j$)}(hj}h]hstruct hlist_node *n}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj}}ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM#hjy}ubjK)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM#hj}ubah}(h]h ]h"]h$]h&]uh1jJhjy}ubeh}(h]h ]h"]h$]h&]uh1j*hj}hM#hjv}ubj+)}(hN``struct hlist_node *prev`` hlist node to add it after, which must be non-NULLh](j1)}(h``struct hlist_node *prev``h]j$)}(hj}h]hstruct hlist_node *prev}(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)}(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.hhM$hj}ubah}(h]h ]h"]h$]h&]uh1jJhj}ubeh}(h]h ]h"]h$]h&]uh1j*hj}hM%hjv}ubeh}(h]h ]h"]h$]h&]uh1j%hjZ}ubeh}(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}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM2ubj)}(h h]h }(hj!~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhj ~hM2ubjZ)}(hhlist_add_fakeh]j`)}(hhlist_add_fakeh]hhlist_add_fake}(hj3~hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj/~ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj~hhhj ~hM2ubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjO~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK~ubj)}(h h]h }(hj\~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK~ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjm~hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjo~modnameN classnameNjj)}j]j)}jj5~sbc.hlist_add_fakeasbuh1hhjK~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK~ubj2)}(hjh]h*}(hj~hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjK~ubj`)}(hjkh]hn}(hj~hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjK~ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjG~ubah}(h]h ]h"]h$]h&]hhuh1jhj~hhhj ~hM2ubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhj ~hhhj ~hM2ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jMhj ~hM2hj~hhubj)}(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.hhM2hj~hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj ~hM2ubeh}(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)}(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.hhM6hj~ubj&)}(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}(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.hhM3hj ubjK)}(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&]uh1hhj'hM3hj(ubah}(h]h ]h"]h$]h&]uh1jJhj ubeh}(h]h ]h"]h$]h&]uh1j*hj'hM3hj ubah}(h]h ]h"]h$]h&]uh1j%hj~ubj)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(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.hhM5hj~ubj)}(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 }(hjchhhNhNubj)}(h**n**h]hn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh 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.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM4hj~ubeh}(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.hhM?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM?ubjZ)}(h hlist_fakeh]j`)}(h hlist_fakeh]h hlist_fake}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhjhM?ubj)}(h(struct hlist_node *h)h]j)}(hstruct hlist_node *hh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.hlist_fakeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hj-hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hjph]hh}(hj:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(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)}(hIs this node a fake hlist?h]hIs this node a fake hlist?}(hjchhhNhNubah}(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&]uh1jhjhhhjhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jHhhhj&hNhNubj)}(ha**Parameters** ``struct hlist_node *h`` Node to check for being a self-referential fake 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.hhMChjubj&)}(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.hhMEhjubjK)}(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.hhM@hjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMEhjubah}(h]h ]h"]h$]h&]uh1j%hjubeh}(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.hhMHubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMHubjZ)}(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&]hhuh1jYhjhhhj hMHubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j`)}(h hlist_nodeh]h hlist_node}(hjXhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]j)}jj sbc.hlist_is_singular_nodeasbuh1hhj6ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj6ubj`)}(hjkh]hn}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj2ubj)}(hstruct hlist_head *hh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjˁmodnameN classnameNjj)}j]jtc.hlist_is_singular_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hjph]hh}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj2ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj hMHubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj hMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj hMHhjhhubj)}(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.hhMHhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jHhhhj&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)}(hjMh]h Parameters}(hjOhhhNhNubah}(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.hhMLhjGubj&)}(hhh](j+)}(h8``struct hlist_node *n`` Node to check for singularity. h](j1)}(h``struct hlist_node *n``h]j$)}(hjlh]hstruct hlist_node *n}(hjnhhhNhNubah}(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.hhMIhjfubjK)}(hhh]j)}(hNode to check for singularity.h]hNode to check for singularity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jJhjfubeh}(h]h ]h"]h$]h&]uh1j*hjhMIhjcubj+)}(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.hhMJhjubjK)}(hhh]j)}(h%Header for potentially singular list.h]h%Header for potentially singular list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMJhjcubeh}(h]h ]h"]h$]h&]uh1j%hjGubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjނubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMLhjGubj)}(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.hhMKhjGubeh}(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}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMVubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj3hMVubjZ)}(hhlist_move_listh]j`)}(hhlist_move_listh]hhlist_move_list}(hjFhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjBubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj!hhhj3hMVubj)}(h0(struct hlist_head *old, struct hlist_head *new)h](j)}(hstruct hlist_head *oldh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjHsbc.hlist_move_listasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hj^ubj`)}(holdh]hold}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjZubj)}(hstruct hlist_head *newh](j)}(hjh]hstruct}(hjԃhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.hlist_move_listasbuh1hhjЃubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЃubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjЃubj`)}(hnewh]hnew}(hj+hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjЃubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjZubeh}(h]h ]h"]h$]h&]hhuh1jhj!hhhj3hMVubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj3hMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj3hMVhjhhubj)}(hhh]j)}(h Move an hlisth]h Move an hlist}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMVhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jHhhhj&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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhjqubj&)}(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.hhMWhjubjK)}(hhh]j)}(hhlist_head for old list.h]hhlist_head for old list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMWhjubj+)}(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.hhMXhjɄubjK)}(hhh]j)}(hhlist_head for new list.h]hhlist_head for new list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1jJhjɄubeh}(h]h ]h"]h$]h&]uh1j*hjhMXhjubeh}(h]h ]h"]h$]h&]uh1j%hjqubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhjqubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMYhjqubeh}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMgubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMgubjZ)}(hhlist_splice_inith]j`)}(hhlist_splice_inith]hhlist_splice_init}(hjphhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjlubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjKhhhj]hMgubj)}(hI(struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h](j)}(hstruct hlist_head *fromh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjrsbc.hlist_splice_initasbuh1hhjubj)}(h h]h }(hjʅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hj؅hhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct hlist_node *lasth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jƅc.hlist_splice_initasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hjHhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hlasth]hlast}(hjUhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct hlist_head *toh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j`)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jƅc.hlist_splice_initasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(hjh]h*}(hjhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjjubj`)}(htoh]hto}(hjņhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjKhhhj]hMgubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjGhhhj]hMgubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jMhj]hMghjDhhubj)}(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.hhMghjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMgubeh}(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.hhMkhj ubj&)}(hhh](j+)}(hH``struct hlist_head *from`` hlist_head from which entries will be moved h](j1)}(h``struct hlist_head *from``h]j$)}(hj0h]hstruct hlist_head *from}(hj2hhhNhNubah}(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.hhMhhj*ubjK)}(hhh]j)}(h+hlist_head from which entries will be movedh]h+hlist_head from which entries will be moved}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhhjFubah}(h]h ]h"]h$]h&]uh1jJhj*ubeh}(h]h ]h"]h$]h&]uh1j*hjEhMhhj'ubj+)}(h<``struct hlist_node *last`` last entry on the **from** list h](j1)}(h``struct hlist_node *last``h]j$)}(hjih]hstruct hlist_node *last}(hjkhhhNhNubah}(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.hhMihjcubjK)}(hhh]j)}(hlast entry on the **from** listh](hlast entry on the }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMihjubah}(h]h ]h"]h$]h&]uh1jJhjcubeh}(h]h ]h"]h$]h&]uh1j*hj~hMihj'ubj+)}(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.hhMjhjubjK)}(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&]uh1hhjɇhMjhjʇubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjɇhMjhj'ubeh}(h]h ]h"]h$]h&]uh1j%hj ubj)}(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.hhMlhj ubj)}(h=**to** can be empty, **from** must contain at least **last**.h](j)}(h**to**h]hto}(hj hhhNhNubah}(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.hhMkhj ubeh}(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`)}(hj`h]hhlist_for_each_entry}(hjjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjfubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjbhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj^hhhj}hMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jMhj}hMhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj}hMubeh}(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&]uh1jhjĈhMhj&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.hhMhjˈubj&)}(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.hhMhjubjK)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjubj+)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jJhj#ubeh}(h]h ]h"]h$]h&]uh1j*hj>hMhjubj+)}(h8``member`` the name of the hlist_node within the struct.h](j1)}(h ``member``h]j$)}(hjbh]hmember}(hjdhhhNhNubah}(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-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.hhMhjxubah}(h]h ]h"]h$]h&]uh1jJhj\ubeh}(h]h ]h"]h$]h&]uh1j*hjwhMhjubeh}(h]h ]h"]h$]h&]uh1j%hjˈubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj&hhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD'hlist_for_each_entry_continue (C macro)c.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}(hj hhhNhNubah}(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)}(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+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjFh]hpos}(hjHhhhNhNubah}(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.hhMhj@ubjK)}(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[hMhj\ubah}(h]h ]h"]h$]h&]uh1jJhj@ubeh}(h]h ]h"]h$]h&]uh1j*hj[hMhj=ubj+)}(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#hj}ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjyubjK)}(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&]uh1jJhjyubeh}(h]h ]h"]h$]h&]uh1j*hjhMhj=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#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]j̊ah ](jjeh"]h$]h&]jj)jhuh1jMhjhMhjΊhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjΊhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1jHhhhj&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#hj ubah}(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}(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&]uh1jhj7hMhj&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)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj>ubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjch]hpos}(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 type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jJhj]ubeh}(h]h ]h"]h$]h&]uh1j*hjxhMhjZubj+)}(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*hjhMhjZubeh}(h]h ]h"]h$]h&]uh1j%hj>ubeh}(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~uh1jSjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj&jj&jjjuh1jHhhhj&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#hj*ubah}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjBubah}(h]h ]h"]h$]h&]uh1jhjThMhj&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)}(hjah]h Parameters}(hjchhhNhNubah}(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+)}(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#hj~ubah}(h]h ]h"]h$]h&]uh1j0hS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzubjK)}(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&]uh1jJhjzubeh}(h]h ]h"]h$]h&]uh1j*hjhMhjwubj+)}(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ΌhMhjwubj+)}(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&]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&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj*hMhjwubj+)}(h8``member`` the name of the hlist_node within the struct.h](j1)}(h ``member``h]j$)}(hjNh]hmember}(hjPhhhNhNubah}(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.hhMhjHubjK)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjdubah}(h]h ]h"]h$]h&]uh1jJhjHubeh}(h]h ]h"]h$]h&]uh1j*hjchMhjwubeh}(h]h ]h"]h$]h&]uh1j%hj[ubeh}(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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jhlist_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&]uh1jhjhhhj̍hMubjZ)}(hhlist_count_nodesh]j`)}(hjɍh]hhlist_count_nodes}(hjߍhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjۍubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjhhhj̍hMubj)}(h(struct hlist_head *head)h]j)}(hstruct hlist_head *headh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jǍc.hlist_count_nodesasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(hjh]h*}(hjDhhhNhNubah}(h]h ]j=ah"]h$]h&]uh1j1hjubj`)}(hheadh]hhead}(hjQhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhj̍hMubeh}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj̍hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj̍hMhjhhubj)}(hhh]j)}(hcount nodes in the hlisth]hcount nodes in the hlist}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̍hMubeh}(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.h hMhjubj&)}(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 }(hjhhhNhNubj$)}(h````h]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh,, but designed for cases where the embedded }(hjhhhNhNubj$)}(h*``:c:type:`struct list_head ```h]h&:c:type:`struct list_head `}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh is private member.}(hjhhhNhNubeh}(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`)}(hj[h]hlist_private_entry}(hjehhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjaubah}(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~uh1jSjjhjYhhhjxhKubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jMhjxhKhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhKubeh}(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)}(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.hhKhjƏubj&)}(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#hjubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubjK)}(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#hj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhjhKhjubh pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjubj+)}(h5``type`` the type of the struct this is embedded in. h](j1)}(h``type``h]j$)}(hjGh]htype}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjEubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjAubjK)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1jJhjAubeh}(h]h ]h"]h$]h&]uh1j*hj\hKhjubj+)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j1)}(h ``member``h]j$)}(hjh]hmember}(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.hhKhjzubjK)}(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&]uh1jJhjzubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjubeh}(h]h ]h"]h$]h&]uh1j%hjƏubeh}(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&]jjjj jj jjjuh1jHhhhjhNhNubj)}(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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK$hj&ubah}(h]h ]h"]h$]h&]uh1jhj8hK$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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK(hj?ubj&)}(hhh](j+)}(h0``ptr`` the list head to take the element from. h](j1)}(h``ptr``h]j$)}(hjdh]hptr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjbubah}(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 list head to take the element from.h]h'the list head to take the element from.}(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+)}(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&hj[ubj+)}(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(hj[ubeh}(h]h ]h"]h$]h&]uh1j%hj?ubeh}(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`)}(hj*h]hlist_private_last_entry}(hj4hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj0ubah}(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(hhhjGhK-ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jMhjGhK-hj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhjGhK-ubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1jHhhhjhNhNubj)}(h/``list_private_last_entry (ptr, type, member)``h]j$)}(hjfh]h+list_private_last_entry (ptr, type, member)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjdubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK-hj|ubah}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hj ubah}(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#hj*ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK1hj&ubjK)}(hhh]j)}(h(the identifier passed to ACCESS_PRIVATE.h]h(the identifier passed to ACCESS_PRIVATE.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK0hjBubah}(h]h ]h"]h$]h&]uh1jJhj&ubeh}(h]h ]h"]h$]h&]uh1j*hjAhK1hjubeh}(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`)}(hjh]hlist_private_next_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.hhK6ubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj~hhhjhK6ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jMhjhK6hj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhjhK6ubeh}(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&]uh1jhjhK6hjhhubj)}(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.hhK7hj ubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hK7hj&ubah}(h]h ]h"]h$]h&]uh1jJhj ubeh}(h]h ]h"]h$]h&]uh1j*hj%hK7hjubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hjIh]hmember}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK9hjCubjK)}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK8hj_ubah}(h]h ]h"]h$]h&]uh1jJhjCubeh}(h]h ]h"]h$]h&]uh1j*hj^hK9hjubeh}(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&]uh1jhj ubah}(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?hj'ubjK)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhK?hjCubah}(h]h ]h"]h$]h&]uh1jJhj'ubeh}(h]h ]h"]h$]h&]uh1j*hjBhK?hj$ubj+)}(h1``head`` the list head to take the element from. h](j1)}(h``head``h]j$)}(hjfh]hhead}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjdubah}(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 list head to take the element from.h]h'the list head to take the element from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hK@hj|ubah}(h]h ]h"]h$]h&]uh1jJhj`ubeh}(h]h ]h"]h$]h&]uh1j*hj{hK@hj$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.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*hjhKAhj$ubeh}(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}(hj#hhhNhNubah}(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~uh1jSjjhjhhhj6hKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj6hKLhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj6hKLubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1jHhhhjhNhNubj)}(h)``list_private_prev_entry (pos, member)``h]j$)}(hjUh]h%list_private_prev_entry (pos, member)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjSubah}(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}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKLhjkubah}(h]h ]h"]h$]h&]uh1jhj}hKLhjhhubj)}(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.hhKPhjubj&)}(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}(hj–hhhNhNubah}(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$)}(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.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%hjubeh}(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`)}(hj6h]h list_private_prev_entry_circular}(hj@hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj<ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj8hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKTubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj4hhhjShKTubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jMhjShKThj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjShKTubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1jHhhhjhNhNubj)}(h8``list_private_prev_entry_circular (pos, head, member)``h]j$)}(hjrh]h4list_private_prev_entry_circular (pos, head, member)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjpubah}(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.hhKThjubah}(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$)}(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.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKVhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKVhjubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hj8h]hmember}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj6ubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKWhj2ubjK)}(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&]uh1hhjMhKWhjNubah}(h]h ]h"]h$]h&]uh1jJhj2ubeh}(h]h ]h"]h$]h&]uh1j*hjMhKWhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/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.}(hjhhhNhNubah}(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&]jjjjjjjjjuh1jHhhhjhNhNubj)}(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&]uh1jhjhKbhjhhubj)}(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)}(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.hhKfhjubj&)}(hhh](j+)}(h``pos`` the type * to cursor h](j1)}(h``pos``h]j$)}(hjBh]hpos}(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.hhKchj<ubjK)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKchjXubah}(h]h ]h"]h$]h&]uh1jJhj<ubeh}(h]h ]h"]h$]h&]uh1j*hjWhKchj9ubj+)}(h!``head`` the head for your list. 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.hhKdhjuubjK)}(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&]uh1jJhjuubeh}(h]h ]h"]h$]h&]uh1j*hjhKdhj9ubj+)}(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.hhKehjʙubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjəhKfhj9ubeh}(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&]hhuh1jYhj hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKkubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjhhhj%hKkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhj%hKkhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj%hKkubeh}(h]h ](jmacroeh"]h$]h&]jjjj>jj>jjjuh1jHhhhjhNhNubj)}(h3``list_private_for_each_entry (pos, head, member)``h]j$)}(hjDh]h/list_private_for_each_entry (pos, 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.hhKmhjhhubj)}(h iterate over list of given type h]j)}(hiterate over list of given typeh]hiterate over list of given type}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKkhjZubah}(h]h ]h"]h$]h&]uh1jhjlhKkhjhhubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKohjsubj&)}(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.hhKmhj˚ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKmhjubah}(h]h ]h"]h$]h&]uh1jJhj˚ubeh}(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#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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKnhj ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKohjubeh}(h]h ]h"]h$]h&]uh1j%hjsubeh}(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`)}(hj^h]h#list_private_for_each_entry_reverse}(hjhhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjdubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj`hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKvubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj\hhhj{hKvubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jMhj{hKvhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hKvubeh}(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&]uh1jhj›hKvhjhhubj)}(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.hhKzhjɛubj&)}(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.hhKwhjubjK)}(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&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjhKwhjubj+)}(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.hhKxhj!ubjK)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKxhj=ubah}(h]h ]h"]h$]h&]uh1jJhj!ubeh}(h]h ]h"]h$]h&]uh1j*hj<hKxhjubj+)}(h7``member`` the name of the list_head within the struct.h](j1)}(h ``member``h]j$)}(hj`h]hmember}(hjbhhhNhNubah}(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.hhKzhjZubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKyhjvubah}(h]h ]h"]h$]h&]uh1jJhjZubeh}(h]h ]h"]h$]h&]uh1j*hjuhKzhjubeh}(h]h ]h"]h$]h&]uh1j%hjɛubeh}(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&]jjjjjjjjjuh1jHhhhjhNhNubj)}(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}(hj hhhNhNubah}(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)}(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)}(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.hhKhjubj&)}(hhh](j+)}(h,``pos`` the type * to use as a loop cursor. h](j1)}(h``pos``h]j$)}(hjDh]hpos}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjBubah}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jJhj>ubeh}(h]h ]h"]h$]h&]uh1j*hjYhKhj;ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hj}h]hhead}(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.hhKhjwubjK)}(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&]uh1jJhjwubeh}(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.}(hjϝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˝hKhj̝ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj˝hKhj;ubeh}(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.}(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`)}(hj0h]h,list_private_for_each_entry_continue_reverse}(hj:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hj6ubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhj2hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhj.hhhjMhKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jMhjMhKhj+hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj+hhhjMhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjfjjfjjjuh1jHhhhjhNhNubj)}(hD``list_private_for_each_entry_continue_reverse (pos, head, member)``h]j$)}(hjlh]h@list_private_for_each_entry_continue_reverse (pos, head, member)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjubah}(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}(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)}(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}(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.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$)}(hj2h]hmember}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj0ubah}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jJhj,ubeh}(h]h ]h"]h$]h&]uh1j*hjGhKhjubeh}(h]h ]h"]h$]h&]uh1j%hjubj)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/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.}(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_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~uh1jSjjhjhhhjɟhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jMhjɟhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjɟhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h8``list_private_for_each_entry_from (pos, head, member)``h]j$)}(hjh]h4list_private_for_each_entry_from (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)}(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.hhKhjubj&)}(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#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 * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jJhj6ubeh}(h]h ]h"]h$]h&]uh1j*hjQhKhj3ubj+)}(h!``head`` the head for your list. h](j1)}(h``head``h]j$)}(hjuh]hhead}(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)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjoubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj3ubj+)}(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&]uh1hhjàhKhjĠubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjàhKhj3ubeh}(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)}(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.hhKhjubeh}(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`)}(hj(h]h(list_private_for_each_entry_from_reverse}(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)}(h@``list_private_for_each_entry_from_reverse (pos, head, member)``h]j$)}(hjdh]hhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj:ubah}(h]h ]h"]h$]h&]uh1jhjLhKhjhhubj)}(hX:**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate over list of given type from current point, safe against removal of list entry.h](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjSubj&)}(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&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjrubjK)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjrubeh}(h]h ]h"]h$]h&]uh1j*hjhKhjoubj+)}(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&]uh1hhjƦhKhjǦubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hjƦhKhjoubj+)}(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*hjhKhjoubj+)}(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.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&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj8hKhjoubeh}(h]h ]h"]h$]h&]uh1j%hjSubj)}(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.hhKhjSubj)}(hWIterate over list of given type from current point, safe against removal of list entry.h]hWIterate over list of given type from current point, safe against removal of list entry.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj8)}(hhh]h}(h]h ]h"]h$]h&]entries](jD2list_private_for_each_entry_safe_reverse (C macro)*c.list_private_for_each_entry_safe_reversehNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(h(list_private_for_each_entry_safe_reverseh]jT)}(h(list_private_for_each_entry_safe_reverseh]jZ)}(h(list_private_for_each_entry_safe_reverseh]j`)}(hjh]h(list_private_for_each_entry_safe_reverse}(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)}(hC``list_private_for_each_entry_safe_reverse (pos, n, head, member)``h]j$)}(hj٧h]h?list_private_for_each_entry_safe_reverse (pos, n, 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)}(h1iterate backwards over list safe against removal h]j)}(h0iterate backwards over list safe against removalh]h0iterate backwards over list safe against removal}(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)}(hX1**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate backwards over list of given type, safe against removal of list entry.h](j)}(h**Parameters**h]j)}(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.hhKhjubj&)}(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#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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jJhj'ubeh}(h]h ]h"]h$]h&]uh1j*hjBhKhj$ubj+)}(h1``n`` another type * to use as temporary storage h](j1)}(h``n``h]j$)}(hjfh]hn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjdubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj|ubah}(h]h ]h"]h$]h&]uh1jJhj`ubeh}(h]h ]h"]h$]h&]uh1j*hj{hKhj$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+)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjҨubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj$ubeh}(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)}(hNIterate backwards over list of given type, safe against removal of list entry.h]hNIterate backwards over list of given type, safe against removal of list entry.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]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_safe_reset_next (C macro)c.list_private_safe_reset_nexthNtauh1j7hjhhhNhNubjI)}(hhh](jN)}(hlist_private_safe_reset_nexth]jT)}(hlist_private_safe_reset_nexth]jZ)}(hlist_private_safe_reset_nexth]j`)}(hjRh]hlist_private_safe_reset_next}(hj\hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j_hjXubah}(h]h ](jrjseh"]h$]h&]hhuh1jYhjThhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhj~uh1jSjjhjPhhhjohKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jMhjohKhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjohKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jHhhhjhNhNubj)}(h1``list_private_safe_reset_next (pos, n, member)``h]j$)}(hjh]h-list_private_safe_reset_next (pos, n, 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,reset a stale list_for_each_entry_safe loop h]j)}(h+reset a stale list_for_each_entry_safe looph]h+reset a stale list_for_each_entry_safe loop}(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)}(hX)**Parameters** ``pos`` the loop cursor used in the list_for_each_entry_safe loop ``n`` temporary storage used in list_for_each_entry_safe ``member`` the name of the list_head within the struct. **Description** list_safe_reset_next is not safe to use in general if the list may be modified concurrently (eg. the lock is dropped in the loop body). An exception to this is if the cursor element (pos) is pinned in the list, and list_safe_reset_next is called after re-taking the lock and before completing the current iteration of the loop body.h](j)}(h**Parameters**h]j)}(hjéh]h Parameters}(hjũhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj&)}(hhh](j+)}(hB``pos`` the loop cursor used in the list_for_each_entry_safe loop 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.hhKhjܩubjK)}(hhh]j)}(h9the loop cursor used in the list_for_each_entry_safe looph]h9the loop cursor used in the list_for_each_entry_safe loop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jJhjܩubeh}(h]h ]h"]h$]h&]uh1j*hjhKhj٩ubj+)}(h9``n`` temporary storage used in list_for_each_entry_safe 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)}(h2temporary storage used in list_for_each_entry_safeh]h2temporary storage used in list_for_each_entry_safe}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj1ubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]uh1j*hj0hKhj٩ubj+)}(h8``member`` the name of the list_head within the struct. h](j1)}(h ``member``h]j$)}(hjTh]hmember}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(h]h ]h"]h$]h&]uh1j0h[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjNubjK)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1jJhjNubeh}(h]h ]h"]h$]h&]uh1j*hjihKhj٩ubeh}(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)}(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.}(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&]uh1jhjhhhNhNubeh}(h]jah ]h"]private list apiah$]h&]uh1hhhhhhhhM ubeh}(h]jfah ]h"]linked lists in linuxah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jƪjfjjjjj#jjjjjjj jj,jjNjjpj jj jj jjw jj jj j<jj^j j jjjju nametypes}(jƪjjj#jjjjjjj j j jw j j jj jjuh}(jfhjj9jjjj jjYjjj jj,jjNjjpjjjjj jj jj jjz j<j j^j j j jj&jFjOjjjjjj$jIjNjsjxjjj0j5jljqjpjujjj!j!j#j#j&j&jJ)jO)j+j+j-j.jt/jy/j1j 1j2j2j"4j'4j^6jc6j7j7j&;j+;j>j>j@j@jBjBjEj#EjZGj_GjHjHjOJjTJjKjKjGMjLMjNjNjOjOj\QjaQjyRj~RjSjSj5Uj:UjVjVjWjWjwYj|Yj[j[j\j\j]j]j-_j2_j`j`jajbj{cjcjdjdjsfjxfjgjgj~ijij3kj8kjljljnjnjpjpjqjqjPsjUsjtjtjWvj\vjwjwjyjzj|j|j~j ~jjjjjjjBjGjYj^jjj̊jъjjjjjjjTjYj͐jҐj#j(jyj~jjjjj/j4jjjjjWj\jjj)j.jjj!j&jjj,j1jjjjjKjPhjXjjvjjjjjjjjj&jjHj?jjjajjjjjjjjjj j6j-jXjOjj}jju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.