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]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 <}(hhhhhNhNubh reference)}(h nicolas.frattaroli@collabora.comh]h nicolas.frattaroli@collabora.com}(hhhhhNhNubah}(h]h ]h"]h$]h&]refuri'mailto:nicolas.frattaroli@collabora.comuh1hhhubh>}(hhhhhNhNubeh}(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&]uh1hhj%hhhK ubh bullet_list)}(hhh]h list_item)}(hhh](h)}(hhh]h)}(hhh]hLinked Lists in Linux}(hjDhhhNhNubah}(h]hah ]h"]h$]h&]refidlinked-lists-in-linuxuh1hhjAubah}(h]h ]h"]h$]h&]uh1hhj>ubj8)}(hhh](j=)}(hhh]h)}(hhh]h)}(hhh]h Introduction}(hjbhhhNhNubah}(h]id2ah ]h"]h$]h&]refid introductionuh1hhj_ubah}(h]h ]h"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&]uh1j<hjYubj=)}(hhh](h)}(hhh]h)}(hhh]h+Linux implementation of doubly linked lists}(hjhhhNhNubah}(h]id3ah ]h"]h$]h&]refid+linux-implementation-of-doubly-linked-listsuh1hhjubah}(h]h ]h"]h$]h&]uh1hhj~ubj8)}(hhh](j=)}(hhh]h)}(hhh]h)}(hhh]hDeclaring a node}(hjhhhNhNubah}(h]id4ah ]h"]h$]h&]refiddeclaring-a-nodeuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]h!Declaring and initializing a list}(hjhhhNhNubah}(h]id5ah ]h"]h$]h&]refid!declaring-and-initializing-a-listuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hAdding nodes to the list}(hjhhhNhNubah}(h]id6ah ]h"]h$]h&]refidadding-nodes-to-the-listuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hTraversing the list}(hj hhhNhNubah}(h]id7ah ]h"]h$]h&]refidtraversing-the-listuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hRemoving nodes from the list}(hj+hhhNhNubah}(h]id8ah ]h"]h$]h&]refidremoving-nodes-from-the-listuh1hhj(ubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]h Traversing whilst removing nodes}(hjMhhhNhNubah}(h]id9ah ]h"]h$]h&]refid traversing-whilst-removing-nodesuh1hhjJubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hCutting a list}(hjohhhNhNubah}(h]id10ah ]h"]h$]h&]refidcutting-a-listuh1hhjlubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]h Moving entries and partial lists}(hjhhhNhNubah}(h]id11ah ]h"]h$]h&]refid moving-entries-and-partial-listsuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hRotating entries}(hjhhhNhNubah}(h]id12ah ]h"]h$]h&]refidrotating-entriesuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hSwapping entries}(hjhhhNhNubah}(h]id13ah ]h"]h$]h&]refidswapping-entriesuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hSplicing two lists together}(hjhhhNhNubah}(h]id14ah ]h"]h$]h&]refidsplicing-two-lists-togetheruh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hConcurrency considerations}(hjhhhNhNubah}(h]id15ah ]h"]h$]h&]refidconcurrency-considerationsuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjubj=)}(hhh]h)}(hhh]h)}(hhh]hFurther reading}(hj;hhhNhNubah}(h]id16ah ]h"]h$]h&]refidfurther-readinguh1hhj8ubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1j<hjubeh}(h]h ]h"]h$]h&]uh1j7hj~ubeh}(h]h ]h"]h$]h&]uh1j<hjYubj=)}(hhh]h)}(hhh]h)}(hhh]h Full List API}(hjihhhNhNubah}(h]id17ah ]h"]h$]h&]refid full-list-apiuh1hhjfubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]uh1j<hjYubj=)}(hhh]h)}(hhh]h)}(hhh]hPrivate List API}(hjhhhNhNubah}(h]id18ah ]h"]h$]h&]refidprivate-list-apiuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j<hjYubeh}(h]h ]h"]h$]h&]uh1j7hj>ubeh}(h]h ]h"]h$]h&]uh1j<hj9ubah}(h]h ]h"]h$]h&]uh1j7hj%hhhNhNubeh}(h]contentsah ]contentsah"]contentsah$]h&]uh1j#hhhK hhhhubh)}(hhh](h)}(h Introductionh]h Introduction}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjkuh1hhjhhhhhK ubh)}(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&]uh1hhhhKhjhhubh)}(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]jqah ]h"] introductionah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h+Linux implementation of doubly linked listsh]h+Linux implementation of doubly linked lists}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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!hjhhubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjhhubh)}(hhh](h)}(hDeclaring a nodeh]hDeclaring a node}(hjHhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjEhhhhhK*ubh)}(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:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjEhhubh 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 */ };}hjfsbah}(h]h ]h"]h$]h&]hhforcelanguagechighlight_args}uh1jdhhhK/hjEhhubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjEhhubeh}(h]jah ]h"]declaring a nodeah$]h&]uh1hhjhhhhhK*ubh)}(hhh](h)}(h!Declaring and initializing a listh]h!Declaring and initializing a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKAubh)}(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&]uh1hhhhKChjhhubje)}(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&]hhjtjujvjw}uh1jdhhhKGhjhhubh)}(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&]uh1hhjhhhhhKAubh)}(hhh](h)}(hAdding nodes to the listh]hAdding nodes to the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKbubh)}(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&]uh1hhhhKdhjhhubh)}(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&]uh1hhhhKfhjhhubje)}(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&]hhjtjujvjw}uh1jdhhhKihjhhubh)}(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&]uh1hhhhKhjhhubje)}(hB .------. v | .--------. | | clowns |--' '--------'h]hB .------. v | .--------. | | clowns |--' '--------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jdhhhKhjhhubh)}(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&]uh1hhhhKhjhhubh)}(h3In State 2, we've added Grock after the list head::h]h4In State 2, we’ve added Grock after the list head:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubje)}(h .--------------------. v | .--------. .-------. | | clowns |---->| Grock |--' '--------' '-------'h]h .--------------------. v | .--------. .-------. | | clowns |---->| Grock |--' '--------' '-------'}hjEsbah}(h]h ]h"]h$]h&]hhuh1jdhhhKhjhhubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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:}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubje)}(h .------------------------------------. v | .--------. .---------. .-------. | | clowns |---->| Dimitri |---->| Grock |--' '--------' '---------' '-------'h]h .------------------------------------. v | .--------. .---------. .-------. | | clowns |---->| Dimitri |---->| Grock |--' '--------' '---------' '-------'}hjosbah}(h]h ]h"]h$]h&]hhuh1jdhhhKhjhhubh)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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&]uh1hhhhKhjhhubje)}(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&]hhjtjujvjw}uh1jdhhhKhjhhubh)}(h$This results in the following list::h]h#This results in the following list:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubje)}(h .------------------------------------. v | .--------. .-------. .---------. | | clowns |---->| Grock |---->| Dimitri |--' '--------' '-------' '---------'h]h .------------------------------------. v | .--------. .-------. .---------. | | clowns |---->| Grock |---->| Dimitri |--' '--------' '-------' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jdhhhKhjhhubh)}(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]jah ]h"]adding nodes to the listah$]h&]uh1hhjhhhhhKbubh)}(hhh](h)}(hTraversing the listh]hTraversing the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKubh)}(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&]uh1hhhhKhjhhubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubje)}(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&]hhjtjujvjw}uh1jdhhhKhjhhubh)}(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 }(hjhhhNhNubj)}(h``node``h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a member of.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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 }(hj5hhhNhNubj)}(h``node``h]hnode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhF members, but we really want to iterate through the payload, i.e. the }(hj5hhhNhNubj)}(h``struct clown``h]h struct clown}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhn that contains each node’s struct list_head. For this reason, there is a second macro: list_for_each_entry()}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h6Using it would change our code to something like this:h]h6Using it would change our code to something like this:}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubje)}(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; }}hjusbah}(h]h ]h"]h$]h&]hhjtjujvjw}uh1jdhhhKhjhhubh)}(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]jah ]h"]traversing the listah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hRemoving nodes from the listh]hRemoving nodes from the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hj4uh1hhjhhhhhMubh)}(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&]uh1jhjubh and }(hjhhhNhNubj)}(h``next``h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS pointers, so that unintended use of the entry after removal does not go unnoticed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(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 hjhhubje)}(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&]hhjtjujvjw}uh1jdhhhM hjhhubh)}(h"The result of this would be this::h]h!The result of this would be this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubje)}(h .--------------------. v | .--------. .-------. | .---------. | clowns |---->| Grock |--' | Dimitri | '--------' '-------' '---------'h]h .--------------------. v | .--------. .-------. | .---------. | clowns |---->| Grock |--' | Dimitri | '--------' '-------' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjhhubh)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM)hjhhubh)}(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:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hjhhubje)}(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; }}hj?sbah}(h]h ]h"]h$]h&]hhjtjujvjw}uh1jdhhhM/hjhhubh)}(h;This results in the deleted node pointing to itself again::h]h:This results in the deleted node pointing to itself again:}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjhhubje)}(h .--------------------. .-------. v | v | .--------. .-------. | .---------. | | clowns |---->| Grock |--' | Dimitri |--' '--------' '-------' '---------'h]h .--------------------. .-------. v | v | .--------. .-------. | .---------. | | clowns |---->| Grock |--' | Dimitri |--' '--------' '-------' '---------'}hj\sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMBhjhhubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjhhubeh}(h]j:ah ]h"]removing nodes from the listah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h Traversing whilst removing nodesh]h Traversing whilst removing nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjVuh1hhjhhhhhMMubh)}(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&]uh1jhjubhZ pointer of it, which means the traversal can’t properly advance to the next list entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMOhjhhubh)}(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&]uh1hhhhMThjhhubh)}(hAn example of how to use it:h]hAn example of how to use it:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjhhubje)}(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&]hhjtjujvjw}uh1jdhhhM[hjhhubh)}(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]j\ah ]h"] traversing whilst removing nodesah$]h&]uh1hhjhhhhhMMubh)}(hhh](h)}(hCutting a listh]hCutting a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjxuh1hhjhhhhhMlubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh', and replace the contents of the list }(hjhhhNhNubj)}(h``list``h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMnhjhhubh)}(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 }(hj3hhhNhNubj)}(h``head``h]hhead}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh up to and including }(hj3hhhNhNubj)}(h ``entry``h]hentry}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh, placing them in }(hj3hhhNhNubj)}(h``list``h]hlist}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh instead.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMqhjhhubh)}(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:}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthjhhubje)}(hXd .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------'h]hXd .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jdhhhMvhjhhubh)}(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&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM|hjhhubje)}(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&]hhjtjujvjw}uh1jdhhhMhjhhubh)}(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&]uh1jhjubh list would be this:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubje)}(h .----------------------. v | .--------. .---------. | | clowns |---->| Alfredo |--' '--------' '---------'h]h .----------------------. v | .--------. .---------. | | clowns |---->| Alfredo |--' '--------' '---------'}hjsbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhjhhubh)}(hDMeanwhile, the ``retirement`` list is transformed to the following::h](hMeanwhile, the }(hjhhhNhNubj)}(h``retirement``h]h retirement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& list is transformed to the following:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubje)}(hX( .--------------------------------------------------. v | .------------. .-------. .---------. .-----. | | retirement |---->| Grock |---->| Dimitri |---->| Pic |--' '------------' '-------' '---------' '-----'h]hX( .--------------------------------------------------. v | .------------. .-------. .---------. .-----. | | retirement |---->| Grock |---->| Dimitri |---->| Pic |--' '------------' '-------' '---------' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhjhhubh)}(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 }(hj hhhNhNubj)}(h ``entry``h]hentry}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh- node, i.e. it removes all list entries from }(hj hhhNhNubj)}(h``head``h]hhead}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh up to but excluding }(hj hhhNhNubj)}(h ``entry``h]hentry}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, placing them in }(hj hhhNhNubj)}(h``list``h]hlist}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhV instead. This example assumes the same initial starting list as the previous example:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubje)}(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 */ }}hjt sbah}(h]h ]h"]h$]h&]hhjtjujvjw}uh1jdhhhMhjhhubh)}(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&]uh1jhj ubh list would be this:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubje)}(h .----------------------------------. v | .--------. .-----. .---------. | | clowns |---->| Pic |---->| Alfredo |--' '--------' '-----' '---------'h]h .----------------------------------. v | .--------. .-----. .---------. | | clowns |---->| Pic |---->| Alfredo |--' '--------' '-----' '---------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhjhhubh)}(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&]uh1jhj ubh& list is transformed to the following:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubje)}(h .--------------------------------------. v | .------------. .-------. .---------. | | retirement |---->| Grock |---->| Dimitri |--' '------------' '-------' '---------'h]h .--------------------------------------. v | .------------. .-------. .---------. | | retirement |---->| Grock |---->| Dimitri |--' '------------' '-------' '---------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhjhhubh)}(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&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]j~ah ]h"]cutting a listah$]h&]uh1hhjhhhhhMlubh)}(hhh](h)}(h Moving entries and partial listsh]h Moving entries and partial lists}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhMubh)}(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 hhubh)}(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”:}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubje)}(hX .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------' .-------------------. v | .----------. .-----. | | sidewalk |---->| Pio |--' '----------' '-----'h]hX .----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Pic |---->| Alfredo |--' '--------' '-------' '---------' '-----' '---------' .-------------------. v | .----------. .-----. | | sidewalk |---->| Pio |--' '----------' '-----'}hj3 sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhj hhubh)}(h5We apply the following example code to the two lists:h]h5We apply the following example code to the two lists:}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubje)}(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 */ }}hjO sbah}(h]h ]h"]h$]h&]hhjtjujvjw}uh1jdhhhMhj hhubh)}(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&]uh1hhhhMhj hhubje)}(hX* .-----------------------------------------------------. | | v | .--------. .-------. .---------. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Alfredo |--' '--------' '-------' '---------' '---------' .-------------------------------. v | .----------. .-----. .-----. | | sidewalk |---->| Pic |---->| Pio |--' '----------' '-----' '-----'h]hX* .-----------------------------------------------------. | | v | .--------. .-------. .---------. .---------. | | clowns |---->| Grock |---->| Dimitri |---->| Alfredo |--' '--------' '-------' '---------' '---------' .-------------------------------. v | .----------. .-----. .-----. | | sidewalk |---->| Pic |---->| Pio |--' '----------' '-----' '-----'}hjl sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhj hhubh)}(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:}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubje)}(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&]hhuh1jdhhhMhj hhubh)}(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 hhubje)}(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&]hhjtjujvjw}uh1jdhhhMhj hhubh)}(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 hhubje)}(hX .-----------------------------------------------. v | .----------. .---------. .-----. .-----. | | sidewalk |---->| Dimitri |---->| Pic |---->| Pio |--' '----------' '---------' '-----' '-----'h]hX .-----------------------------------------------. v | .----------. .---------. .-----. .-----. | | sidewalk |---->| Dimitri |---->| Pic |---->| Pio |--' '----------' '---------' '-----' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhM2hj hhubh)}(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&]uh1jhj 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&]uh1hhjhhhhhMubh)}(hhh](h)}(hRotating entriesh]hRotating entries}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhM>ubh)}(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 hhubh)}(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 *}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 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 hhubh)}(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 }(hj5 hhhNhNubhemphasis)}(h*until*h]huntil}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1j= hj5 ubh& the specified entry is the new front.}(hj5 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMIhj hhubh)}(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:}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhj hhubje)}(hXj .-----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-' '--------' '-------' '---------' '-----' '---------' '-----'h]hXj .-----------------------------------------------------------------. v | .--------. .-------. .---------. .-----. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-' '--------' '-------' '---------' '-----' '---------' '-----'}hje sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMOhj hhubh)}(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:}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj hhubje)}(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&]hhjtjujvjw}uh1jdhhhMWhj hhubh)}(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 hhubje)}(hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .---------. .-----. .-------. | | clowns |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-->| Grock |-' '--------' '---------' '-----' '---------' '-----' '-------'h]hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .---------. .-----. .-------. | | clowns |-->| Dimitri |-->| Pic |-->| Alfredo |-->| Pio |-->| Grock |-' '--------' '---------' '-----' '---------' '-----' '-------'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMnhj hhubh)}(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 hhubje)}(hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .-------. .---------. .-----. | | clowns |-->| Alfredo |-->| Pio |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '---------' '-----' '-------' '---------' '-----'h]hXj .-----------------------------------------------------------------. v | .--------. .---------. .-----. .-------. .---------. .-----. | | clowns |-->| Alfredo |-->| Pio |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '---------' '-----' '-------' '---------' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMwhj hhubh)}(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&]uh1hhjhhhhhM>ubh)}(hhh](h)}(hSwapping entriesh]hSwapping entries}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj hhhhhMubh)}(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 hhubh)}(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 hhubh)}(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 hhubje)}(h .-----------------------------------------. v | .--------. .-------. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '-------' '---------' '-----'h]h .-----------------------------------------. v | .--------. .-------. .---------. .-----. | | clowns |-->| Grock |-->| Dimitri |-->| Pic |-' '--------' '-------' '---------' '-----'}hj sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhj hhubje)}(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&]hhjtjujvjw}uh1jdhhhMhj hhubh)}(h0The resulting list at State 1 is the following::h]h/The resulting list at State 1 is the following:}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubje)}(h .-----------------------------------------. v | .--------. .-------. .-----. .---------. | | clowns |-->| Grock |-->| Pic |-->| Dimitri |-' '--------' '-------' '-----' '---------'h]h .-----------------------------------------. v | .--------. .-------. .-----. .---------. | | clowns |-->| Grock |-->| Pic |-->| Dimitri |-' '--------' '-------' '-----' '---------'}hjC sbah}(h]h ]h"]h$]h&]hhuh1jdhhhMhj hhubh)}(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.}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]jah ]h"]swapping entriesah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hSplicing two lists togetherh]hSplicing two lists together}(hji hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjf hhhhhMubh)}(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”:}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjf hhubje)}(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&]hhuh1jdhhhMhjf hhubh)}(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&]uh1hhhhMhjf hhubje)}(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&]hhjtjujvjw}uh1jdhhhMhjf hhubh)}(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&]uh1jhj ubh to the list }(hj hhhNhNubj)}(h ``dimitri``h]hdimitri}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh’s }(hj hhhNhNubj)}(h``node``h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh list_head is in, after the }(hj hhhNhNubj)}(h``node``h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh of }(hj hhhNhNubj)}(h ``dimitri``h]hdimitri}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhG. A somewhat surprising diagram of the resulting “State 1” follows:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjf hhubje)}(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&]hhuh1jdhhhMhjf hhubh)}(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}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubhJ list no longer results in correct behavior. A call of list_for_each() on }(hj& hhhNhNubj)}(h``stey``h]hstey}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubh> results in an infinite loop, as it never returns back to the }(hj& hhhNhNubj)}(h``stey``h]hstey}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubh list head.}(hj& hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjf hhubh)}(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.}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjf hhubh)}(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.}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjf hhubeh}(h]jah ]h"]splicing two lists togetherah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hConcurrency considerationsh]hConcurrency considerations}(hj hhhNhNubah}(h]h ]h"]h$]h&]hj"uh1hhj hhhhhMubh)}(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&]uh1hhjhhhhhMubh)}(hhh](h)}(hFurther readingh]hFurther reading}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjDuh1hhj hhhhhMubj8)}(hhh]j=)}(hl`How does the kernel implements Linked Lists? - KernelNewbies `_ h]h)}(hk`How does the kernel implements Linked Lists? - KernelNewbies `_h](h)}(hj h]hh]h}(h]9how-does-the-kernel-implements-linked-lists-kernelnewbiesah ]h"]`'s links to point to itself h]h)}(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 ](xrefjvc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoc core-api/list refdomainjvreftypetype 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&]uh1jhjhKhjhhubh container)}(h0**Parameters** ``name`` name of the list_headh](h)}(h**Parameters**h]hstrong)}(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.hhKhjubhdefinition_list)}(hhh]hdefinition_list_item)}(h``name`` name of the list_headh](hterm)}(h``name``h]j)}(hj h]hname}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubh definition)}(hhh]h)}(hname of the list_headh]hname of the list_head}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhj8ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj5hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0LIST_HEAD (C macro) c.LIST_HEADhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h LIST_HEADh]j@)}(h LIST_HEADh]jF)}(h LIST_HEADh]jL)}(hjvh]h LIST_HEAD}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj|ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjxhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjthhhjhKubah}(h]joah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhKhjqhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjqhhhjhKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(h``LIST_HEAD (name)``h]j)}(hjh]hLIST_HEAD (name)}(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 hjhhubj)}(hRdefinition of a :c:type:`struct list_head ` with initialization values h]h)}(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 ](jjvc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype 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&]uh1jhjhKhjhhubj)}(h0**Parameters** ``name`` name of the list_headh](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK"hjubj)}(hhh]j)}(h``name`` name of the list_headh](j)}(h``name``h]j)}(hj)h]hname}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK$hj#ubj7)}(hhh]h)}(hname of the list_headh]hname of the list_head}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhj?ubah}(h]h ]h"]h$]h&]uh1j6hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hK$hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0INIT_LIST_HEAD (C function)c.INIT_LIST_HEADhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h,void INIT_LIST_HEAD (struct list_head *list)h]j@)}(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%ubjF)}(hINIT_LIST_HEADh]jL)}(hINIT_LIST_HEADh]hINIT_LIST_HEAD}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhjhK%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]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftype identifier reftargetjmodnameN classnameNjj)}j]j ASTIdentifier)}jjsbc.INIT_LIST_HEADasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(hjh]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubjL)}(hlisth]hlist}(hj-hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhK%ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj{hhhjhK%ubah}(h]jvah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhK%hjxhhubjy)}(hhh]h)}(h Initialize a list_head structureh]h Initialize a list_head structure}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK%hjThhubah}(h]h ]h"]h$]h&]uh1jxhjxhhhjhK%ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjojjojjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(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.hhK)hjsubj)}(hhh]j)}(hB``struct list_head *list`` list_head structure to be initialized. h](j)}(h``struct list_head *list``h]j)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK&hjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhK(hjsubh)}(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'hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_add (C function) c.list_addhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h=void list_add (struct list_head *new, struct list_head *head)h]j@)}(hhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhKubjF)}(h list_add_tailh]jL)}(h list_add_tailh]h list_add_tail}(hjchhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj_ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj>hhhjPhKubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]j )}jjesbc.list_add_tailasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj{ubjL)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj{ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjwubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]jc.list_add_tailasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hheadh]hhead}(hjHhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjwubeh}(h]h ]h"]h$]h&]hhuh1jhj>hhhjPhKubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj:hhhjPhKubah}(h]j5ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjPhKhj7hhubjy)}(hhh]h)}(hadd a new entryh]hadd a new entry}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjohhubah}(h]h ]h"]h$]h&]uh1jxhj7hhhjPhKubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct list_head *new`` new entry to be added ``struct list_head *head`` list head to add it before **Description** Insert a new entry before the specified head. This is useful for implementing queues.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubj)}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hjh]hstruct list_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubj7)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h6``struct list_head *head`` list head to add it before h](j)}(h``struct list_head *head``h]j)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubj7)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubh)}(hUInsert a new entry before the specified head. This is useful for implementing queues.h]hUInsert a new entry before the specified head. This is useful for implementing queues.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_del (C function) c.list_delhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h'void list_del (struct list_head *entry)h]j@)}(h&void list_del(struct list_head *entry)h](j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhKubjF)}(hlist_delh]jL)}(hlist_delh]hlist_del}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhhjzhKubj)}(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]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]j )}jjsb c.list_delasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhhjzhKubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjdhhhjzhKubah}(h]j_ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjzhKhjahhubjy)}(hhh]h)}(hdeletes entry from list.h]hdeletes entry from list.}(hj,hhhNhNubah}(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&]uh1jxhjahhhjzhKubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjDjjDjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct list_head *entry`` the element to delete from the list. **Note** list_empty() on entry does not return true after this, the entry is in an undefined state.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(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.hhKhjHubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjmh]hstruct list_head *entry}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjgubj7)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Note**h]j)}(hjh]hNote}(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.hhKhjHubh)}(hZlist_empty() on entry does not return true after this, the entry is in an undefined state.h]hZlist_empty() on entry does not return true after this, the entry is in an undefined state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_replace (C function)c.list_replacehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h@void list_replace (struct list_head *old, struct list_head *new)h]j@)}(h?void list_replace(struct list_head *old, struct list_head *new)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjF)}(h list_replaceh]jL)}(h list_replaceh]h list_replace}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhjhKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]jL)}(h list_headh]h list_head}(hjHhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjEubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjJmodnameN classnameNjj)}j]j )}jjsbc.list_replaceasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj&ubjL)}(holdh]hold}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj&ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj"ubj)}(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]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]jdc.list_replaceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj"ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhKubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhKhjhhubjy)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jxhjhhhjhKubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj5jj5jjjuh1j4hhhjhNhNubj)}(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](h)}(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.hhKhj9ubj)}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hj^h]hstruct list_head *old}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjXubj7)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1j6hjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hjh]hstruct list_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhKhjubj7)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(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.hhKhj9ubh)}(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.hhKhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_replace_init (C function)c.list_replace_inithNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hEvoid list_replace_init (struct list_head *old, struct list_head *new)h]j@)}(hDvoid list_replace_init(struct list_head *old, struct list_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.hhMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hMubjF)}(hlist_replace_inith]jL)}(hlist_replace_inith]hlist_replace_init}(hjJhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjFubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj%hhhj7hMubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]j )}jjLsbc.list_replace_initasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjbubjL)}(holdh]hold}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj^ubj)}(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]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]jc.list_replace_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hnewh]hnew}(hj/hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj^ubeh}(h]h ]h"]h$]h&]hhuh1jhj%hhhj7hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj!hhhj7hMubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj7hMhjhhubjy)}(hhh]h)}(h7replace old entry by new one and initialize the old oneh]h7replace old entry by new one and initialize the old one}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jxhjhhhj7hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjqjjqjjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(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.hhMhjuubj)}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hjh]hstruct list_head *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hjh]hstruct list_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(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.hhMhjuubh)}(h-If **old** was empty, it will be overwritten.h](hIf }(hj$hhhNhNubj)}(h**old**h]hold}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh# was empty, it will be overwritten.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_swap (C function) c.list_swaphNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hCvoid list_swap (struct list_head *entry1, struct list_head *entry2)h]j@)}(hBvoid list_swap(struct list_head *entry1, struct list_head *entry2)h](j)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjshMubjF)}(h list_swaph]jL)}(h list_swaph]h list_swap}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjahhhjshMubj)}(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]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]j )}jjsb c.list_swapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hentry1h]hentry1}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct list_head *entry2h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jL)}(h list_headh]h list_head}(hj2hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj/ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj4modnameN classnameNjj)}j]j c.list_swapasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hentry2h]hentry2}(hjkhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj]hhhjshMubah}(h]jXah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjshMhjZhhubjy)}(hhh]h)}(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&]uh1jxhjZhhhjshMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct list_head *entry1`` the location to place entry2 ``struct list_head *entry2`` the location to place entry1h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj)}(hhh](j)}(h:``struct list_head *entry1`` the location to place entry2 h](j)}(h``struct list_head *entry1``h]j)}(hjh]hstruct list_head *entry1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hthe location to place entry2h]hthe location to place entry2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``struct list_head *entry2`` the location to place entry1h](j)}(h``struct list_head *entry2``h]j)}(hjh]hstruct list_head *entry2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj ubj7)}(hhh]h)}(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.hhMhj%ubah}(h]h ]h"]h$]h&]uh1j6hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_del_init (C function)c.list_del_inithNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h,void list_del_init (struct list_head *entry)h]j@)}(h+void list_del_init(struct list_head *entry)h](j)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM"ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhM"ubjF)}(h list_del_inith]jL)}(h list_del_inith]h list_del_init}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjehhhjwhM"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]jL)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]j )}jjsbc.list_del_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjehhhjwhM"ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjahhhjwhM"ubah}(h]j\ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjwhM"hj^hhubjy)}(hhh]h)}(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&]uh1jxhj^hhhjwhM"ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjAjjAjjjuh1j4hhhjhNhNubj)}(hR**Parameters** ``struct list_head *entry`` the element to delete from the list.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM&hjEubj)}(hhh]j)}(h@``struct list_head *entry`` the element to delete from the list.h](j)}(h``struct list_head *entry``h]j)}(hjjh]hstruct list_head *entry}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM(hjdubj7)}(hhh]h)}(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&]uh1j6hjdubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_move (C function) c.list_movehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h?void list_move (struct list_head *list, struct list_head *head)h]j@)}(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,ubjF)}(h list_moveh]jL)}(h list_moveh]h list_move}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhjhM,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&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jL)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj! modnameN classnameNjj)}j]j )}jjsb c.list_moveasbuh1hhjubj)}(h h]h }(hj? hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjM hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hlisth]hlist}(hjZ hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo ubh)}(hhh]jL)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj modnameN classnameNjj)}j]j; c.list_moveasbuh1hhjo ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjo ubjL)}(hheadh]hhead}(hj hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjo ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM,ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhM,ubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhM,hjhhubjy)}(hhh]h)}(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&]uh1jxhjhhhjhM,ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj !jj !jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct list_head *list`` the entry to move ``struct list_head *head`` the head that will precede our entryh](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM0hj!ubj)}(hhh](j)}(h-``struct list_head *list`` the entry to move h](j)}(h``struct list_head *list``h]j)}(hj5!h]hstruct list_head *list}(hj7!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3!ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM-hj/!ubj7)}(hhh]h)}(hthe entry to moveh]hthe entry to move}(hjN!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ!hM-hjK!ubah}(h]h ]h"]h$]h&]uh1j6hj/!ubeh}(h]h ]h"]h$]h&]uh1jhjJ!hM-hj,!ubj)}(h?``struct list_head *head`` the head that will precede our entryh](j)}(h``struct list_head *head``h]j)}(hjn!h]hstruct list_head *head}(hjp!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl!ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM/hjh!ubj7)}(hhh]h)}(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&]uh1j6hjh!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM/hj,!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_move_tail (C function)c.list_move_tailhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hDvoid list_move_tail (struct list_head *list, struct list_head *head)h]j@)}(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!hM7ubjF)}(hlist_move_tailh]jL)}(hlist_move_tailh]hlist_move_tail}(hj!hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj!ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj!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]jL)}(h list_headh]h list_head}(hj#"hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj "ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj%"modnameN classnameNjj)}j]j )}jj!sbc.list_move_tailasbuh1hhj"ubj)}(h h]h }(hjC"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjQ"hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj"ubjL)}(hlisth]hlist}(hj^"hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj"ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj!ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjw"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs"ubh)}(hhh]jL)}(h list_headh]h list_head}(hj"hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj"ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj"modnameN classnameNjj)}j]j?"c.list_move_tailasbuh1hhjs"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjs"ubjL)}(hheadh]hhead}(hj"hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjs"ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj!ubeh}(h]h ]h"]h$]h&]hhuh1jhj!hhhj!hM7ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj!hhhj!hM7ubah}(h]j!ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj!hM7hj!hhubjy)}(hhh]h)}(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&]uh1jxhj!hhhj!hM7ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj#jj#jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct list_head *list`` the entry to move ``struct list_head *head`` the head that will follow our entryh](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM;hj#ubj)}(hhh](j)}(h-``struct list_head *list`` the entry to move h](j)}(h``struct list_head *list``h]j)}(hj9#h]hstruct list_head *list}(hj;#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7#ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM8hj3#ubj7)}(hhh]h)}(hthe entry to moveh]hthe entry to move}(hjR#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN#hM8hjO#ubah}(h]h ]h"]h$]h&]uh1j6hj3#ubeh}(h]h ]h"]h$]h&]uh1jhjN#hM8hj0#ubj)}(h>``struct list_head *head`` the head that will follow our entryh](j)}(h``struct list_head *head``h]j)}(hjr#h]hstruct list_head *head}(hjt#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp#ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM:hjl#ubj7)}(hhh]h)}(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&]uh1j6hjl#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM:hj0#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0 list_bulk_move_tail (C function)c.list_bulk_move_tailhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hbvoid list_bulk_move_tail (struct list_head *head, struct list_head *first, struct list_head *last)h]j@)}(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#hMCubjF)}(hlist_bulk_move_tailh]jL)}(hlist_bulk_move_tailh]hlist_bulk_move_tail}(hj#hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj#ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj#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]jL)}(h list_headh]h list_head}(hj'$hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj$$ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj)$modnameN classnameNjj)}j]j )}jj#sbc.list_bulk_move_tailasbuh1hhj$ubj)}(h h]h }(hjG$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjU$hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj$ubjL)}(hheadh]hhead}(hjb$hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj$ubj)}(hstruct list_head *firsth](j)}(hjh]hstruct}(hj{$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw$ubh)}(hhh]jL)}(h list_headh]h list_head}(hj$hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj$ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj$modnameN classnameNjj)}j]jC$c.list_bulk_move_tailasbuh1hhjw$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjw$ubjL)}(hfirsth]hfirst}(hj$hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjw$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]jL)}(h list_headh]h list_head}(hj %hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj%ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj %modnameN classnameNjj)}j]jC$c.list_bulk_move_tailasbuh1hhj$ubj)}(h h]h }(hj'%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hj5%hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj$ubjL)}(hlasth]hlast}(hjB%hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj$ubeh}(h]h ]h"]h$]h&]hhuh1jhj#hhhj#hMCubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj#hhhj#hMCubah}(h]j#ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj#hMChj#hhubjy)}(hhh]h)}(h'move a subsection of a list to its tailh]h'move a subsection of a list to its tail}(hjl%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMChji%hhubah}(h]h ]h"]h$]h&]uh1jxhj#hhhj#hMCubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj%jj%jjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMGhj%ubj)}(hhh](j)}(h?``struct list_head *head`` the head that will follow our entry h](j)}(h``struct list_head *head``h]j)}(hj%h]hstruct list_head *head}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMDhj%ubj7)}(hhh]h)}(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&]uh1j6hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMDhj%ubj)}(h0``struct list_head *first`` first entry to move h](j)}(h``struct list_head *first``h]j)}(hj%h]hstruct list_head *first}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMEhj%ubj7)}(hhh]h)}(hfirst entry to moveh]hfirst entry to move}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMEhj%ubah}(h]h ]h"]h$]h&]uh1j6hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMEhj%ubj)}(hH``struct list_head *last`` last entry to move, can be the same as first h](j)}(h``struct list_head *last``h]j)}(hj&h]hstruct list_head *last}(hj!&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMFhj&ubj7)}(hhh]h)}(h,last entry to move, can be the same as firsth]h,last entry to move, can be the same as first}(hj8&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4&hMFhj5&ubah}(h]h ]h"]h$]h&]uh1j6hj&ubeh}(h]h ]h"]h$]h&]uh1jhj4&hMFhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hjZ&h]h Description}(hj\&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX&ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMHhj%ubh)}(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 }(hjp&hhhNhNubj)}(h **first**h]hfirst}(hjx&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp&ubh and including }(hjp&hhhNhNubj)}(h**last**h]hlast}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp&ubh before }(hjp&hhhNhNubj)}(h**head**h]hhead}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp&ubh8. All three entries must belong to the same linked list.}(hjp&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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_is_first (C function)c.list_is_firsthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hNint list_is_first (const struct list_head *list, const struct list_head *head)h]j@)}(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&hMZubjF)}(h list_is_firsth]jL)}(h list_is_firsth]h list_is_first}(hj&hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj&ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj&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 }(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]jL)}(h list_headh]h list_head}(hjL'hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjI'ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjN'modnameN classnameNjj)}j]j )}jj&sbc.list_is_firstasbuh1hhj'ubj)}(h h]h }(hjl'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjz'hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj'ubjL)}(hlisth]hlist}(hj'hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj'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]jL)}(h list_headh]h list_head}(hj'hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj'ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj'modnameN classnameNjj)}j]jh'c.list_is_firstasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj'ubjL)}(hheadh]hhead}(hj(hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj'ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj 'ubeh}(h]h ]h"]h$]h&]hhuh1jhj&hhhj&hMZubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj&hhhj&hMZubah}(h]j&ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj&hMZhj&hhubjy)}(hhh]j8)}(hhh]j=)}(h:tests whether **list** is the first entry in list **head**h]h)}(hjA(h](htests whether }(hjC(hhhNhNubj)}(h**list**h]hlist}(hjJ(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC(ubh is the first entry in list }(hjC(hhhNhNubj)}(h**head**h]hhead}(hj\(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC(ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhj?(ubah}(h]h ]h"]h$]h&]uh1j<hj<(hhhjp(hNubah}(h]h ]h"]h$]h&]j-uh1j7hjp(hMZhj9(hhubah}(h]h ]h"]h$]h&]uh1jxhj&hhhj&hMZubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj(jj(jjjuh1j4hhhjhNhNubj)}(h}**Parameters** ``const struct list_head *list`` the entry to test ``const struct list_head *head`` the head of the listh](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM^hj(ubj)}(hhh](j)}(h3``const struct list_head *list`` the entry to test h](j)}(h ``const struct list_head *list``h]j)}(hj(h]hconst struct list_head *list}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM[hj(ubj7)}(hhh]h)}(hthe entry to testh]hthe entry to test}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM[hj(ubah}(h]h ]h"]h$]h&]uh1j6hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM[hj(ubj)}(h5``const struct list_head *head`` the head of the listh](j)}(h ``const struct list_head *head``h]j)}(hj(h]hconst struct list_head *head}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM]hj(ubj7)}(hhh]h)}(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&]uh1j6hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM]hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_is_last (C function)c.list_is_lasthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hMint list_is_last (const struct list_head *list, const struct list_head *head)h]j@)}(hLint list_is_last(const struct list_head *list, const struct list_head *head)h](j)}(hinth]hint}(hjC)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMdubj)}(h h]h }(hjR)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)hhhjQ)hMdubjF)}(h list_is_lasth]jL)}(h list_is_lasth]h list_is_last}(hjd)hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj`)ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj?)hhhjQ)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]jL)}(h list_headh]h list_head}(hj)hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj)ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj)modnameN classnameNjj)}j]j )}jjf)sbc.list_is_lastasbuh1hhj|)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj|)ubjL)}(hlisth]hlist}(hj)hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj|)ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjx)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 }(hj5*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *ubh)}(hhh]jL)}(h list_headh]h list_head}(hjF*hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjC*ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjH*modnameN classnameNjj)}j]j)c.list_is_lastasbuh1hhj *ubj)}(h h]h }(hjd*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *ubj)}(hjh]h*}(hjr*hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj *ubjL)}(hheadh]hhead}(hj*hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj *ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjx)ubeh}(h]h ]h"]h$]h&]hhuh1jhj?)hhhjQ)hMdubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj;)hhhjQ)hMdubah}(h]j6)ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjQ)hMdhj8)hhubjy)}(hhh]h)}(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&]uh1jxhj8)hhhjQ)hMdubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj*jj*jjjuh1j4hhhjhNhNubj)}(h}**Parameters** ``const struct list_head *list`` the entry to test ``const struct list_head *head`` the head of the listh](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhj*ubj)}(hhh](j)}(h3``const struct list_head *list`` the entry to test h](j)}(h ``const struct list_head *list``h]j)}(hj +h]hconst struct list_head *list}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMehj+ubj7)}(hhh]h)}(hthe entry to testh]hthe entry to test}(hj#+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMehj +ubah}(h]h ]h"]h$]h&]uh1j6hj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMehj+ubj)}(h5``const struct list_head *head`` the head of the listh](j)}(h ``const struct list_head *head``h]j)}(hjC+h]hconst struct list_head *head}(hjE+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMghj=+ubj7)}(hhh]h)}(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.hhMfhjY+ubah}(h]h ]h"]h$]h&]uh1j6hj=+ubeh}(h]h ]h"]h$]h&]uh1jhjX+hMghj+ubeh}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_is_head (C function)c.list_is_headhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hMint list_is_head (const struct list_head *list, const struct list_head *head)h]j@)}(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+hMnubjF)}(h list_is_headh]jL)}(h list_is_headh]h list_is_head}(hj+hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj+ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj+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]jL)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj,ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj,modnameN classnameNjj)}j]j )}jj+sbc.list_is_headasbuh1hhj+ubj)}(h h]h }(hj3,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjA,hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj+ubjL)}(hlisth]hlist}(hjN,hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj+ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj+ubj)}(hconst struct list_head *headh](j)}(hj'h]hconst}(hjg,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc,ubj)}(h h]h }(hjt,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc,ubj)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc,ubh)}(hhh]jL)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj,ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj,modnameN classnameNjj)}j]j/,c.list_is_headasbuh1hhjc,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjc,ubjL)}(hheadh]hhead}(hj,hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjc,ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj+ubeh}(h]h ]h"]h$]h&]hhuh1jhj+hhhj+hMnubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj+hhhj+hMnubah}(h]j+ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj+hMnhj+hhubjy)}(hhh]h)}(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}(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.hhMnhj-hhubah}(h]h ]h"]h$]h&]uh1jxhj+hhhj+hMnubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj;-jj;-jjjuh1j4hhhjhNhNubj)}(h}**Parameters** ``const struct list_head *list`` the entry to test ``const struct list_head *head`` the head of the listh](h)}(h**Parameters**h]j)}(hjE-h]h Parameters}(hjG-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC-ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMrhj?-ubj)}(hhh](j)}(h3``const struct list_head *list`` the entry to test h](j)}(h ``const struct list_head *list``h]j)}(hjd-h]hconst struct list_head *list}(hjf-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb-ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMohj^-ubj7)}(hhh]h)}(hthe entry to testh]hthe entry to test}(hj}-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy-hMohjz-ubah}(h]h ]h"]h$]h&]uh1j6hj^-ubeh}(h]h ]h"]h$]h&]uh1jhjy-hMohj[-ubj)}(h5``const struct list_head *head`` the head of the listh](j)}(h ``const struct list_head *head``h]j)}(hj-h]hconst struct list_head *head}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMqhj-ubj7)}(hhh]h)}(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&]uh1j6hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMqhj[-ubeh}(h]h ]h"]h$]h&]uh1jhj?-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_empty (C function) c.list_emptyhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h-int list_empty (const struct list_head *head)h]j@)}(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.hMxubjF)}(h list_emptyh]jL)}(h list_emptyh]h list_empty}(hj.hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj.ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj-hhhj.hMxubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj'h]hconst}(hj4.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0.ubj)}(h h]h }(hjA.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0.ubj)}(hjh]hstruct}(hjO.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0.ubj)}(h h]h }(hj\.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0.ubh)}(hhh]jL)}(h list_headh]h list_head}(hjm.hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjj.ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjo.modnameN classnameNjj)}j]j )}jj.sb c.list_emptyasbuh1hhj0.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj0.ubjL)}(hheadh]hhead}(hj.hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj0.ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj,.ubah}(h]h ]h"]h$]h&]hhuh1jhj-hhhj.hMxubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj-hhhj.hMxubah}(h]j-ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj.hMxhj-hhubjy)}(hhh]h)}(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&]uh1jxhj-hhhj.hMxubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj.jj.jjjuh1j4hhhjhNhNubj)}(hD**Parameters** ``const struct list_head *head`` the list to test.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM|hj.ubj)}(hhh]j)}(h2``const struct list_head *head`` the list to test.h](j)}(h ``const struct list_head *head``h]j)}(hj/h]hconst struct list_head *head}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM~hj /ubj7)}(hhh]h)}(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&]uh1j6hj /ubeh}(h]h ]h"]h$]h&]uh1jhj(/hM~hj /ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_del_init_careful (C function)c.list_del_init_carefulhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h4void list_del_init_careful (struct list_head *entry)h]j@)}(h3void list_del_init_careful(struct list_head *entry)h](j)}(hvoidh]hvoid}(hjm/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji/hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj|/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji/hhhj{/hMubjF)}(hlist_del_init_carefulh]jL)}(hlist_del_init_carefulh]hlist_del_init_careful}(hj/hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj/ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhji/hhhj{/hMubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](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]jL)}(h list_headh]h list_head}(hj/hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj/ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj/modnameN classnameNjj)}j]j )}jj/sbc.list_del_init_carefulasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj/ubjL)}(hentryh]hentry}(hj0hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/ubah}(h]h ]h"]h$]h&]hhuh1jhji/hhhj{/hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhje/hhhj{/hMubah}(h]j`/ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj{/hMhjb/hhubjy)}(hhh]h)}(h,deletes entry from list and reinitialize it.h]h,deletes entry from list and reinitialize it.}(hj-0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj*0hhubah}(h]h ]h"]h$]h&]uh1jxhjb/hhhj{/hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjE0jjE0jjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjO0h]h Parameters}(hjQ0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjI0ubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjn0h]hstruct list_head *entry}(hjp0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjh0ubj7)}(hhh]h)}(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&]uh1j6hjh0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhje0ubah}(h]h ]h"]h$]h&]uh1jhjI0ubh)}(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.hhMhjI0ubh)}(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.hhMhjI0ubh)}(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.hhMhjI0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_empty_careful (C function)c.list_empty_carefulhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h5int list_empty_careful (const struct list_head *head)h]j@)}(h4int list_empty_careful(const struct list_head *head)h](j)}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj 1hMubjF)}(hlist_empty_carefulh]jL)}(hlist_empty_carefulh]hlist_empty_careful}(hj1hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj1ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj0hhhj 1hMubj)}(h(const struct list_head *head)h]j)}(hconst struct list_head *headh](j)}(hj'h]hconst}(hj:1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj61ubj)}(h h]h }(hjG1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj61ubj)}(hjh]hstruct}(hjU1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj61ubj)}(h h]h }(hjb1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj61ubh)}(hhh]jL)}(h list_headh]h list_head}(hjs1hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjp1ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetju1modnameN classnameNjj)}j]j )}jj 1sbc.list_empty_carefulasbuh1hhj61ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj61ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj61ubjL)}(hheadh]hhead}(hj1hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj61ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj21ubah}(h]h ]h"]h$]h&]hhuh1jhj0hhhj 1hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj0hhhj 1hMubah}(h]j0ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj 1hMhj0hhubjy)}(hhh]h)}(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&]uh1jxhj0hhhj 1hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj1jj1jjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj1ubj)}(hhh]j)}(h2``const struct list_head *head`` the list to test h](j)}(h ``const struct list_head *head``h]j)}(hj2h]hconst struct list_head *head}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj2ubj7)}(hhh]h)}(hthe list to testh]hthe list to test}(hj22hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.2hMhj/2ubah}(h]h ]h"]h$]h&]uh1j6hj2ubeh}(h]h ]h"]h$]h&]uh1jhj.2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hjT2h]h Description}(hjV2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj1ubh)}(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)}(hjj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj1ubh)}(h**NOTE**h]j)}(hj{2h]hNOTE}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj1ubh)}(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.hhMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_rotate_left (C function)c.list_rotate_lefthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h.void list_rotate_left (struct list_head *head)h]j@)}(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&]uh1jhj2hhhj2hMubjF)}(hlist_rotate_lefth]jL)}(hlist_rotate_lefth]hlist_rotate_left}(hj2hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj2ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj2hhhj2hMubj)}(h(struct list_head *head)h]j)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]jL)}(h list_headh]h list_head}(hj3hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj3ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj3modnameN classnameNjj)}j]j )}jj2sbc.list_rotate_leftasbuh1hhj2ubj)}(h h]h }(hj;3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjI3hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj2ubjL)}(hheadh]hhead}(hjV3hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj2ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj2ubah}(h]h ]h"]h$]h&]hhuh1jhj2hhhj2hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj2hhhj2hMubah}(h]j2ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj2hMhj2hhubjy)}(hhh]h)}(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.hhMhj}3hhubah}(h]h ]h"]h$]h&]uh1jxhj2hhhj2hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj3jj3jjjuh1j4hhhjhNhNubj)}(hA**Parameters** ``struct list_head *head`` the head of the listh](h)}(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](j)}(h``struct list_head *head``h]j)}(hj3h]hstruct list_head *head}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3ubj7)}(hhh]h)}(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&]uh1j6hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!list_rotate_to_front (C function)c.list_rotate_to_fronthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hJvoid list_rotate_to_front (struct list_head *list, struct list_head *head)h]j@)}(hIvoid list_rotate_to_front(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj*4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj)4hMubjF)}(hlist_rotate_to_fronth]jL)}(hlist_rotate_to_fronth]hlist_rotate_to_front}(hj<4hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj84ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj4hhhj)4hMubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjX4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT4ubj)}(h h]h }(hje4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT4ubh)}(hhh]jL)}(h list_headh]h list_head}(hjv4hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjs4ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjx4modnameN classnameNjj)}j]j )}jj>4sbc.list_rotate_to_frontasbuh1hhjT4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjT4ubjL)}(hlisth]hlist}(hj4hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjT4ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjP4ubj)}(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]jL)}(h list_headh]h list_head}(hj4hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj4ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj4modnameN classnameNjj)}j]j4c.list_rotate_to_frontasbuh1hhj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj4ubjL)}(hheadh]hhead}(hj!5hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj4ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjP4ubeh}(h]h ]h"]h$]h&]hhuh1jhj4hhhj)4hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj4hhhj)4hMubah}(h]j4ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj)4hMhj4hhubjy)}(hhh]h)}(hRotate list to specific item.h]hRotate list to specific item.}(hjK5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjH5hhubah}(h]h ]h"]h$]h&]uh1jxhj4hhhj)4hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjc5jjc5jjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjm5h]h Parameters}(hjo5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjg5ubj)}(hhh](j)}(h>``struct list_head *list`` The desired new front of the list. h](j)}(h``struct list_head *list``h]j)}(hj5h]hstruct list_head *list}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubj7)}(hhh]h)}(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&]uh1j6hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(h1``struct list_head *head`` The head of the list. h](j)}(h``struct list_head *head``h]j)}(hj5h]hstruct list_head *head}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj5ubj7)}(hhh]h)}(hThe head of the list.h]hThe head of the list.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j6hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjg5ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(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.hhMhjg5ubh)}(h@Rotates list so that **list** becomes the new front of the list.h](hRotates list so that }(hj6hhhNhNubj)}(h**list**h]hlist}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh# becomes the new front of the list.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjg5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_is_singular (C function)c.list_is_singularhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h3int list_is_singular (const struct list_head *head)h]j@)}(h2int list_is_singular(const struct list_head *head)h](j)}(hinth]hint}(hjW6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjf6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6hhhje6hMubjF)}(hlist_is_singularh]jL)}(hlist_is_singularh]hlist_is_singular}(hjx6hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjt6ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjS6hhhje6hMubj)}(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]jL)}(h list_headh]h list_head}(hj6hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj6ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj6modnameN classnameNjj)}j]j )}jjz6sbc.list_is_singularasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj6ubjL)}(hheadh]hhead}(hj7hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubah}(h]h ]h"]h$]h&]hhuh1jhjS6hhhje6hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjO6hhhje6hMubah}(h]jJ6ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hje6hMhjL6hhubjy)}(hhh]h)}(h(tests whether a list has just one entry.h]h(tests whether a list has just one entry.}(hj27hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj/7hhubah}(h]h ]h"]h$]h&]uh1jxhjL6hhhje6hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjJ7jjJ7jjjuh1j4hhhjhNhNubj)}(hD**Parameters** ``const struct list_head *head`` the list to test.h](h)}(h**Parameters**h]j)}(hjT7h]h Parameters}(hjV7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjN7ubj)}(hhh]j)}(h2``const struct list_head *head`` the list to test.h](j)}(h ``const struct list_head *head``h]j)}(hjs7h]hconst struct list_head *head}(hju7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjm7ubj7)}(hhh]h)}(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&]uh1j6hjm7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjj7ubah}(h]h ]h"]h$]h&]uh1jhjN7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_cut_position (C function)c.list_cut_positionhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h`void list_cut_position (struct list_head *list, struct list_head *head, struct list_head *entry)h]j@)}(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&]uh1jhj7hhhj7hMubjF)}(hlist_cut_positionh]jL)}(hlist_cut_positionh]hlist_cut_position}(hj7hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj7ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj7hhhj7hMubj)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj 8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]jL)}(h list_headh]h list_head}(hj(8hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj%8ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj*8modnameN classnameNjj)}j]j )}jj7sbc.list_cut_positionasbuh1hhj8ubj)}(h h]h }(hjH8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjV8hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj8ubjL)}(hlisth]hlist}(hjc8hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj8ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj|8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx8ubh)}(hhh]jL)}(h list_headh]h list_head}(hj8hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj8ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj8modnameN classnameNjj)}j]jD8c.list_cut_positionasbuh1hhjx8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjx8ubjL)}(hheadh]hhead}(hj8hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjx8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj8ubj)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]jL)}(h list_headh]h list_head}(hj 9hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj9ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj 9modnameN classnameNjj)}j]jD8c.list_cut_positionasbuh1hhj8ubj)}(h h]h }(hj(9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj69hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj8ubjL)}(hentryh]hentry}(hjC9hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj8ubeh}(h]h ]h"]h$]h&]hhuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj7hhhj7hMubah}(h]j7ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj7hMhj7hhubjy)}(hhh]h)}(hcut a list into twoh]hcut a list into two}(hjm9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjj9hhubah}(h]h ]h"]h$]h&]uh1jxhj7hhhj7hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj9jj9jjjuh1j4hhhjhNhNubj)}(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](h)}(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](j)}(h``struct list_head *list``h]j)}(hj9h]hstruct list_head *list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9ubj7)}(hhh]h)}(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&]uh1j6hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubj)}(h/``struct list_head *head`` a list with entries h](j)}(h``struct list_head *head``h]j)}(hj9h]hstruct list_head *head}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9ubj7)}(hhh]h)}(ha list with entriesh]ha list with entries}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1j6hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubj)}(hk``struct list_head *entry`` an entry within head, could be the head itself and if so we won't cut the list h](j)}(h``struct list_head *entry``h]j)}(hj :h]hstruct list_head *entry}(hj":hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:ubj7)}(hhh]h)}(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}(hj9:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj6:ubah}(h]h ]h"]h$]h&]uh1j6hj:ubeh}(h]h ]h"]h$]h&]uh1jhj5:hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj\:h]h Description}(hj^:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ:ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9ubh)}(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 }(hjr:hhhNhNubj)}(h**head**h]hhead}(hjz:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubh, up to and including }(hjr:hhhNhNubj)}(h **entry**h]hentry}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubh, from }(hjr:hhhNhNubj)}(h**head**h]hhead}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubh to }(hjr:hhhNhNubj)}(h**list**h]hlist}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubh. You should pass on }(hjr:hhhNhNubj)}(h **entry**h]hentry}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubh an element you know is on }(hjr:hhhNhNubj)}(h**head**h]hhead}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubh. }(hjr:hhhNhNubj)}(h**list**h]hlist}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubhI should be an empty list or a list you do not care about losing its data.}(hjr: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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_cut_before (C function)c.list_cut_beforehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h^void list_cut_before (struct list_head *list, struct list_head *head, struct list_head *entry)h]j@)}(h]void list_cut_before(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj.;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj-;hMubjF)}(hlist_cut_beforeh]jL)}(hlist_cut_beforeh]hlist_cut_before}(hj@;hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj<;ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj;hhhj-;hMubj)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj\;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX;ubj)}(h h]h }(hji;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX;ubh)}(hhh]jL)}(h list_headh]h list_head}(hjz;hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjw;ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj|;modnameN classnameNjj)}j]j )}jjB;sbc.list_cut_beforeasbuh1hhjX;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjX;ubjL)}(hlisth]hlist}(hj;hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjX;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjT;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]jL)}(h list_headh]h list_head}(hj;hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj;ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj;modnameN classnameNjj)}j]j;c.list_cut_beforeasbuh1hhj;ubj)}(h h]h }(hj <hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj;ubjL)}(hheadh]hhead}(hj%<hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjT;ubj)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hj><hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:<ubj)}(h h]h }(hjK<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:<ubh)}(hhh]jL)}(h list_headh]h list_head}(hj\<hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjY<ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj^<modnameN classnameNjj)}j]j;c.list_cut_beforeasbuh1hhj:<ubj)}(h h]h }(hjz<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj:<ubjL)}(hentryh]hentry}(hj<hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj:<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjT;ubeh}(h]h ]h"]h$]h&]hhuh1jhj;hhhj-;hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj;hhhj-;hMubah}(h]j;ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj-;hMhj;hhubjy)}(hhh]h)}(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&]uh1jxhj;hhhj-;hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj<jj<jjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<ubj)}(hhh](j)}(hA``struct list_head *list`` a new list to add all removed entries h](j)}(h``struct list_head *list``h]j)}(hj=h]hstruct list_head *list}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<ubj7)}(hhh]h)}(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&]uh1j6hj<ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj<ubj)}(h/``struct list_head *head`` a list with entries h](j)}(h``struct list_head *head``h]j)}(hj9=h]hstruct list_head *head}(hj;=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj3=ubj7)}(hhh]h)}(ha list with entriesh]ha list with entries}(hjR=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN=hMhjO=ubah}(h]h ]h"]h$]h&]uh1j6hj3=ubeh}(h]h ]h"]h$]h&]uh1jhjN=hMhj<ubj)}(hK``struct list_head *entry`` an entry within head, could be the head itself h](j)}(h``struct list_head *entry``h]j)}(hjr=h]hstruct list_head *entry}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjl=ubj7)}(hhh]h)}(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&]uh1j6hjl=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj<ubh)}(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}(hj%>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. }(hj=hhhNhNubj)}(h**list**h]hlist}(hj7>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}(hjI>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh == }(hj=hhhNhNubj)}(h**head**h]hhead}(hj[>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh, all entries on }(hj=hhhNhNubj)}(h**head**h]hhead}(hjm>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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_splice (C function) c.list_splicehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hGvoid list_splice (const struct list_head *list, struct list_head *head)h]j@)}(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"ubjF)}(h list_spliceh]jL)}(h list_spliceh]h list_splice}(hj>hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj>ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj>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 }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]jL)}(h list_headh]h list_head}(hj.?hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj+?ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj0?modnameN classnameNjj)}j]j )}jj>sb c.list_spliceasbuh1hhj>ubj)}(h h]h }(hjN?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj\?hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj>ubjL)}(hlisth]hlist}(hji?hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj>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]jL)}(h list_headh]h list_head}(hj?hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj?ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj?modnameN classnameNjj)}j]jJ? c.list_spliceasbuh1hhj~?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhj~?ubjL)}(hheadh]hhead}(hj?hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj~?ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>ubeh}(h]h ]h"]h$]h&]hhuh1jhj>hhhj>hM"ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj>hhhj>hM"ubah}(h]j>ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj>hM"hj>hhubjy)}(hhh]h)}(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&]uh1jxhj>hhhj>hM"ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj@jj@jjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hj%@h]h Parameters}(hj'@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#@ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM&hj@ubj)}(hhh](j)}(h6``const struct list_head *list`` the new list to add. h](j)}(h ``const struct list_head *list``h]j)}(hjD@h]hconst struct list_head *list}(hjF@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM#hj>@ubj7)}(hhh]h)}(hthe new list to add.h]hthe new list to add.}(hj]@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY@hM#hjZ@ubah}(h]h ]h"]h$]h&]uh1j6hj>@ubeh}(h]h ]h"]h$]h&]uh1jhjY@hM#hj;@ubj)}(hA``struct list_head *head`` the place to add it in the first list.h](j)}(h``struct list_head *head``h]j)}(hj}@h]hstruct list_head *head}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM%hjw@ubj7)}(hhh]h)}(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&]uh1j6hjw@ubeh}(h]h ]h"]h$]h&]uh1jhj@hM%hj;@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_splice_tail (C function)c.list_splice_tailhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hFvoid list_splice_tail (struct list_head *list, struct list_head *head)h]j@)}(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.ubjF)}(hlist_splice_tailh]jL)}(hlist_splice_tailh]hlist_splice_tail}(hj@hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj@ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj@hhhj@hM.ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hj!AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]jL)}(h list_headh]h list_head}(hj2AhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj/Aubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj4AmodnameN classnameNjj)}j]j )}jj@sbc.list_splice_tailasbuh1hhjAubj)}(h h]h }(hjRAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hj`AhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjAubjL)}(hlisth]hlist}(hjmAhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjAubeh}(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]jL)}(h list_headh]h list_head}(hjAhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjAubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjAmodnameN classnameNjj)}j]jNAc.list_splice_tailasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjAubjL)}(hheadh]hhead}(hjAhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjAubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj Aubeh}(h]h ]h"]h$]h&]hhuh1jhj@hhhj@hM.ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj@hhhj@hM.ubah}(h]j@ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj@hM.hj@hhubjy)}(hhh]h)}(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&]uh1jxhj@hhhj@hM.ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjBjjBjjjuh1j4hhhjhNhNubj)}(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](h)}(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.hhM2hj#Bubj)}(hhh](j)}(h0``struct list_head *list`` the new list to add. h](j)}(h``struct list_head *list``h]j)}(hjHBh]hstruct list_head *list}(hjJBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM/hjBBubj7)}(hhh]h)}(hthe new list to add.h]hthe new list to add.}(hjaBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]BhM/hj^Bubah}(h]h ]h"]h$]h&]uh1j6hjBBubeh}(h]h ]h"]h$]h&]uh1jhj]BhM/hj?Bubj)}(hA``struct list_head *head`` the place to add it in the first list.h](j)}(h``struct list_head *head``h]j)}(hjBh]hstruct list_head *head}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM1hj{Bubj7)}(hhh]h)}(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&]uh1j6hj{Bubeh}(h]h ]h"]h$]h&]uh1jhjBhM1hj?Bubeh}(h]h ]h"]h$]h&]uh1jhj#Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_splice_init (C function)c.list_splice_inithNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hFvoid list_splice_init (struct list_head *list, struct list_head *head)h]j@)}(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:ubjF)}(hlist_splice_inith]jL)}(hlist_splice_inith]hlist_splice_init}(hjBhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjBubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjBhhhjBhM:ubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hj%ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]jL)}(h list_headh]h list_head}(hj6ChhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj3Cubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj8CmodnameN classnameNjj)}j]j )}jjBsbc.list_splice_initasbuh1hhjCubj)}(h h]h }(hjVChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjdChhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjCubjL)}(hlisth]hlist}(hjqChhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubj)}(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]jL)}(h list_headh]h list_head}(hjChhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjCubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjCmodnameN classnameNjj)}j]jRCc.list_splice_initasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjCubjL)}(hheadh]hhead}(hjChhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubeh}(h]h ]h"]h$]h&]hhuh1jhjBhhhjBhM:ubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjBhhhjBhM:ubah}(h]jBah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjBhM:hjBhhubjy)}(hhh]h)}(h1join two lists and reinitialise the emptied list.h]h1join two lists and reinitialise the emptied list.}(hj DhhhNhNubah}(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&]uh1jxhjBhhhjBhM:ubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj#Djj#Djjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hj-Dh]h Parameters}(hj/DhhhNhNubah}(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](j)}(h``struct list_head *list``h]j)}(hjLDh]hstruct list_head *list}(hjNDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM;hjFDubj7)}(hhh]h)}(hthe new list to add.h]hthe new list to add.}(hjeDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaDhM;hjbDubah}(h]h ]h"]h$]h&]uh1j6hjFDubeh}(h]h ]h"]h$]h&]uh1jhjaDhM;hjCDubj)}(hB``struct list_head *head`` the place to add it in the first list. h](j)}(h``struct list_head *head``h]j)}(hjDh]hstruct list_head *head}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM<hjDubj7)}(hhh]h)}(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&]uh1j6hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM<hjCDubeh}(h]h ]h"]h$]h&]uh1jhj'Dubh)}(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'Dubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_splice_tail_init (C function)c.list_splice_tail_inithNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hKvoid list_splice_tail_init (struct list_head *list, struct list_head *head)h]j@)}(hJvoid list_splice_tail_init(struct list_head *list, struct list_head *head)h](j)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJubj)}(h h]h }(hj&EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhj%EhMJubjF)}(hlist_splice_tail_inith]jL)}(hlist_splice_tail_inith]hlist_splice_tail_init}(hj8EhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj4Eubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjEhhhj%EhMJubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjTEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPEubj)}(h h]h }(hjaEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPEubh)}(hhh]jL)}(h list_headh]h list_head}(hjrEhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjoEubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjtEmodnameN classnameNjj)}j]j )}jj:Esbc.list_splice_tail_initasbuh1hhjPEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjPEubjL)}(hlisth]hlist}(hjEhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjPEubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLEubj)}(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]jL)}(h list_headh]h list_head}(hjEhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjEubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjEmodnameN classnameNjj)}j]jEc.list_splice_tail_initasbuh1hhjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjEubjL)}(hheadh]hhead}(hjFhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjEubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLEubeh}(h]h ]h"]h$]h&]hhuh1jhjEhhhj%EhMJubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjEhhhj%EhMJubah}(h]j Eah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj%EhMJhj Ehhubjy)}(hhh]h)}(h0join two lists and reinitialise the emptied listh]h0join two lists and reinitialise the emptied list}(hjGFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMJhjDFhhubah}(h]h ]h"]h$]h&]uh1jxhj Ehhhj%EhMJubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj_Fjj_Fjjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjiFh]h Parameters}(hjkFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgFubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMNhjcFubj)}(hhh](j)}(h0``struct list_head *list`` the new list to add. h](j)}(h``struct list_head *list``h]j)}(hjFh]hstruct list_head *list}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMKhjFubj7)}(hhh]h)}(hthe new list to add.h]hthe new list to add.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMKhjFubah}(h]h ]h"]h$]h&]uh1j6hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMKhjFubj)}(hB``struct list_head *head`` the place to add it in the first list. h](j)}(h``struct list_head *head``h]j)}(hjFh]hstruct list_head *head}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMLhjFubj7)}(hhh]h)}(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&]uh1j6hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMLhjFubeh}(h]h ]h"]h$]h&]uh1jhjcFubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMNhjcFubh)}(hCEach of the lists is a queue. The list at **list** is reinitialisedh](h*Each of the lists is a queue. The list at }(hjGhhhNhNubj)}(h**list**h]hlist}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh is reinitialised}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMMhjcFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_entry (C macro) c.list_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h list_entryh]j@)}(h list_entryh]jF)}(h list_entryh]jL)}(hjMGh]h list_entry}(hjWGhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjSGubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjOGhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM[ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjKGhhhjjGhM[ubah}(h]jFGah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjjGhM[hjHGhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjHGhhhjjGhM[ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjGjjGjjjuh1j4hhhjhNhNubh)}(h"``list_entry (ptr, type, member)``h]j)}(hjGh]hlist_entry (ptr, type, member)}(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]hjhhubj)}(hget the struct for this entry h]h)}(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[hjhhubj)}(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](h)}(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](j)}(h``ptr``h]j)}(hjGh]hptr}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM\hjGubj7)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjGhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjHh]hstruct list_head}(hjHhhhNhNubah}(h]h ](jjvc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjGhM\hjGubh pointer.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhM\hjGubah}(h]h ]h"]h$]h&]uh1j6hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM\hjGubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj9Hh]htype}(hj;HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Hubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM]hj3Hubj7)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjRHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNHhM]hjOHubah}(h]h ]h"]h$]h&]uh1j6hj3Hubeh}(h]h ]h"]h$]h&]uh1jhjNHhM]hjGubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjrHh]hmember}(hjtHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM_hjlHubj7)}(hhh]h)}(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&]uh1j6hjlHubeh}(h]h ]h"]h$]h&]uh1jhjHhM_hjGubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_first_entry (C macro)c.list_first_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_first_entryh]j@)}(hlist_first_entryh]jF)}(hlist_first_entryh]jL)}(hjHh]hlist_first_entry}(hjHhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjHubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjHhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMdubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjHhhhjHhMdubah}(h]jHah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjHhMdhjHhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjHhhhjHhMdubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjHjjHjjjuh1j4hhhjhNhNubh)}(h(``list_first_entry (ptr, type, member)``h]j)}(hjIh]h$list_first_entry (ptr, type, member)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMfhjhhubj)}(h"get the first element from a list h]h)}(h!get the first element from a listh]h!get the first element from a list}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMdhjIubah}(h]h ]h"]h$]h&]uh1jhj*IhMdhjhhubj)}(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](h)}(h**Parameters**h]j)}(hj7Ih]h Parameters}(hj9IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Iubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhj1Iubj)}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hjVIh]hptr}(hjXIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMehjPIubj7)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjoIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkIhMehjlIubah}(h]h ]h"]h$]h&]uh1j6hjPIubeh}(h]h ]h"]h$]h&]uh1jhjkIhMehjMIubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjIh]htype}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMfhjIubj7)}(hhh]h)}(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&]uh1j6hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMfhjMIubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjIh]hmember}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMghjIubj7)}(hhh]h)}(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&]uh1j6hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMghjMIubeh}(h]h ]h"]h$]h&]uh1jhj1Iubh)}(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.hhMihj1Iubh)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhj1Iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_last_entry (C macro)c.list_last_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_last_entryh]j@)}(hlist_last_entryh]jF)}(hlist_last_entryh]jL)}(hjBJh]hlist_last_entry}(hjLJhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjHJubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjDJhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMoubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj@Jhhhj_JhMoubah}(h]j;Jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj_JhMohj=Jhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhj=Jhhhj_JhMoubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjxJjjxJjjjuh1j4hhhjhNhNubh)}(h'``list_last_entry (ptr, type, member)``h]j)}(hj~Jh]h#list_last_entry (ptr, type, member)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Jubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMqhjhhubj)}(h!get the last element from a list h]h)}(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&]uh1jhjJhMohjhhubj)}(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](h)}(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](j)}(h``ptr``h]j)}(hjJh]hptr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMphjJubj7)}(hhh]h)}(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&]uh1j6hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMphjJubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj Kh]htype}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Kubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMqhjKubj7)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj$KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj KhMqhj!Kubah}(h]h ]h"]h$]h&]uh1j6hjKubeh}(h]h ]h"]h$]h&]uh1jhj KhMqhjJubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjDKh]hmember}(hjFKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMrhj>Kubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj]KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYKhMrhjZKubah}(h]h ]h"]h$]h&]uh1j6hj>Kubeh}(h]h ]h"]h$]h&]uh1jhjYKhMrhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Kubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMthjJubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_first_entry_or_null (C macro)c.list_first_entry_or_nullhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_first_entry_or_nullh]j@)}(hlist_first_entry_or_nullh]jF)}(hlist_first_entry_or_nullh]jL)}(hjKh]hlist_first_entry_or_null}(hjKhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjKubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjKhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjKhhhjKhMzubah}(h]jKah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjKhMzhjKhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjKhhhjKhMzubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjKjjKjjjuh1j4hhhjhNhNubh)}(h0``list_first_entry_or_null (ptr, type, member)``h]j)}(hjKh]h,list_first_entry_or_null (ptr, type, member)}(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.hhM|hjhhubj)}(h"get the first element from a list h]h)}(h!get the first element from a listh]h!get the first element from a list}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMzhjLubah}(h]h ]h"]h$]h&]uh1jhj"LhMzhjhhubj)}(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](h)}(h**Parameters**h]j)}(hj/Lh]h Parameters}(hj1LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Lubah}(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](j)}(h``ptr``h]j)}(hjNLh]hptr}(hjPLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM{hjHLubj7)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjgLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcLhM{hjdLubah}(h]h ]h"]h$]h&]uh1j6hjHLubeh}(h]h ]h"]h$]h&]uh1jhjcLhM{hjELubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjLh]htype}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM|hjLubj7)}(hhh]h)}(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&]uh1j6hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhM|hjELubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjLh]hmember}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM}hjLubj7)}(hhh]h)}(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&]uh1j6hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhM}hjELubeh}(h]h ]h"]h$]h&]uh1jhj)Lubh)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj)Lubh)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjMhhhNhNubah}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!list_last_entry_or_null (C macro)c.list_last_entry_or_nullhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_last_entry_or_nullh]j@)}(hlist_last_entry_or_nullh]jF)}(hlist_last_entry_or_nullh]jL)}(hj:Mh]hlist_last_entry_or_null}(hjDMhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj@Mubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Nubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj6Nubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjUNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQNhMhjRNubah}(h]h ]h"]h$]h&]uh1j6hj6Nubeh}(h]h ]h"]h$]h&]uh1jhjQNhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hjwNh]h Description}(hjyNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjMubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_next_entry (C macro)c.list_next_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_next_entryh]j@)}(hlist_next_entryh]jF)}(hlist_next_entryh]jL)}(hjNh]hlist_next_entry}(hjNhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjNubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjNhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjNhhhjNhMubah}(h]jNah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjNhMhjNhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjNhhhjNhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjNjjNjjjuh1j4hhhjhNhNubh)}(h!``list_next_entry (pos, member)``h]j)}(hjNh]hlist_next_entry (pos, member)}(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.hhMhjhhubj)}(hget the next element in list h]h)}(hget the next element in listh]hget the next element in list}(hj OhhhNhNubah}(h]h ]h"]h$D]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOhMhjhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](h)}(h**Parameters**h]j)}(hj'Oh]h Parameters}(hj)OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Oubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj!Oubj)}(hhh](j)}(h``pos`` the type * to cursor h](j)}(h``pos``h]j)}(hjFOh]hpos}(hjHOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDOubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj@Oubj7)}(hhh]h)}(hthe type * to cursorh]hthe type * to cursor}(hj_OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[OhMhj\Oubah}(h]h ]h"]h$]h&]uh1j6hj@Oubeh}(h]h ]h"]h$]h&]uh1jhj[OhMhj=Oubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjOh]hmember}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Oubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjyOubj7)}(hhh]h)}(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&]uh1j6hjyOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj=Oubeh}(h]h ]h"]h$]h&]uh1jhj!Oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_next_entry_circular (C macro)c.list_next_entry_circularhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_next_entry_circularh]j@)}(hlist_next_entry_circularh]jF)}(hlist_next_entry_circularh]jL)}(hjOh]hlist_next_entry_circular}(hjOhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjOubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjOhhhjOhMubah}(h]jOah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjOhMhjOhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjOhhhjOhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj Pjj Pjjjuh1j4hhhjhNhNubh)}(h0``list_next_entry_circular (pos, head, member)``h]j)}(hjPh]h,list_next_entry_circular (pos, head, member)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Pubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(hget the next element in list h]h)}(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.hhMhj%Pubah}(h]h ]h"]h$]h&]uh1jhj7PhMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hjDPh]h Parameters}(hjFPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj>Pubj)}(hhh](j)}(h``pos`` the type * to cursor. h](j)}(h``pos``h]j)}(hjcPh]hpos}(hjePhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaPubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]Pubj7)}(hhh]h)}(hthe type * to cursor.h]hthe type * to cursor.}(hj|PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxPhMhjyPubah}(h]h ]h"]h$]h&]uh1j6hj]Pubeh}(h]h ]h"]h$]h&]uh1jhjxPhMhjZPubj)}(h1``head`` the list head to take the element from. h](j)}(h``head``h]j)}(hjPh]hhead}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjPubj7)}(hhh]h)}(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&]uh1j6hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjZPubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjPh]hmember}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjPubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j6hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjZPubeh}(h]h ]h"]h$]h&]uh1jhj>Pubh)}(h**Description**h]j)}(hjQh]h Description}(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.hhMhj>Pubh)}(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.hhMhj>Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_prev_entry (C macro)c.list_prev_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_prev_entryh]j@)}(hlist_prev_entryh]jF)}(hlist_prev_entryh]jL)}(hjOQh]hlist_prev_entry}(hjYQhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjUQubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjQQhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjMQhhhjlQhMubah}(h]jHQah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjlQhMhjJQhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjJQhhhjlQhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjQjjQjjjuh1j4hhhjhNhNubh)}(h!``list_prev_entry (pos, member)``h]j)}(hjQh]hlist_prev_entry (pos, member)}(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.hhMhjhhubj)}(hget the prev element in list h]h)}(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&]uh1jhjQhMhjhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](h)}(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](j)}(h``pos``h]j)}(hjQh]hpos}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjQubj7)}(hhh]h)}(hthe type * to cursorh]hthe type * to cursor}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1j6hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjQubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjRh]hmember}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj1RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj.Rubah}(h]h ]h"]h$]h&]uh1j6hjRubeh}(h]h ]h"]h$]h&]uh1jhj-RhMhjQubeh}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_prev_entry_circular (C macro)c.list_prev_entry_circularhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_prev_entry_circularh]j@)}(hlist_prev_entry_circularh]jF)}(hlist_prev_entry_circularh]jL)}(hjlRh]hlist_prev_entry_circular}(hjvRhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjrRubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjnRhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjjRhhhjRhMubah}(h]jeRah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjRhMhjgRhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjgRhhhjRhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjRjjRjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(hget the prev element in list h]h)}(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&]uh1jhjRhMhjhhubj)}(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](h)}(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](j)}(h``pos``h]j)}(hjRh]hpos}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubj7)}(hhh]h)}(hthe type * to cursor.h]hthe type * to cursor.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j6hjRubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(h1``head`` the list head to take the element from. h](j)}(h``head``h]j)}(hj5Sh]hhead}(hj7ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Subah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj/Subj7)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjNShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJShMhjKSubah}(h]h ]h"]h$]h&]uh1j6hj/Subeh}(h]h ]h"]h$]h&]uh1jhjJShMhjRubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjnSh]hmember}(hjpShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhSubj7)}(hhh]h)}(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&]uh1j6hjhSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjRubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_for_each (C macro)c.list_for_eachhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h list_for_eachh]j@)}(h list_for_eachh]jF)}(h list_for_eachh]jL)}(hjSh]h list_for_each}(hjShhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjSubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjShhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjShhhjThMubah}(h]jSah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjThMhjShhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjShhhjThMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjTjjTjjjuh1j4hhhjhNhNubh)}(h``list_for_each (pos, head)``h]j)}(hj$Th]hlist_for_each (pos, head)}(hj&ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Tubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(hiterate over a list h]h)}(hiterate over a listh]hiterate over a list}(hj>ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj:Tubah}(h]h ]h"]h$]h&]uh1jhjLThMhjhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](h)}(h**Parameters**h]j)}(hjYTh]h Parameters}(hj[ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjSTubj)}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjxTh]hpos}(hjzThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjrTubj7)}(hhh]h)}(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 ](jjvc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjThMhjTubh to use as a loop cursor.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1j6hjrTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjoTubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hjTh]hhead}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjTubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjTubah}(h]h ]h"]h$]h&]uh1j6hjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjoTubeh}(h]h ]h"]h$]h&]uh1jhjSTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0 list_for_each_continue (C macro)c.list_for_each_continuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_continueh]j@)}(hlist_for_each_continueh]jF)}(hlist_for_each_continueh]jL)}(hj(Uh]hlist_for_each_continue}(hj2UhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj.Uubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj*UhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj&UhhhjEUhMubah}(h]j!Uah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjEUhMhj#Uhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhj#UhhhjEUhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj^Ujj^Ujjjuh1j4hhhjhNhNubh)}(h&``list_for_each_continue (pos, head)``h]j)}(hjdUh]h"list_for_each_continue (pos, head)}(hjfUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(hcontinue iteration over a list h]h)}(hcontinue iteration over a listh]hcontinue iteration over a list}(hj~UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzUubah}(h]h ]h"]h$]h&]uh1jhjUhMhjhhubj)}(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](h)}(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](j)}(h``pos``h]j)}(hjUh]hpos}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubj7)}(hhh]h)}(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 ](jjvc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjUhMhjUubh to use as a loop cursor.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j6hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjVh]hhead}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj-VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)VhMhj*Vubah}(h]h ]h"]h$]h&]uh1j6hjVubeh}(h]h ]h"]h$]h&]uh1jhj)VhMhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjOVh]h Description}(hjQVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjUubh)}(hGContinue to iterate over a list, continuing after the current position.h]hGContinue to iterate over a list, continuing after the current position.}(hjeVhhhNhNubah}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_for_each_prev (C macro)c.list_for_each_prevhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_prevh]j@)}(hlist_for_each_prevh]jF)}(hlist_for_each_prevh]jL)}(hjVh]hlist_for_each_prev}(hjVhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjVubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjVhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjVhhhjVhMubah}(h]jVah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjVhMhjVhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjVhhhjVhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjVjjVjjjuh1j4hhhjhNhNubh)}(h"``list_for_each_prev (pos, head)``h]j)}(hjVh]hlist_for_each_prev (pos, head)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(hiterate over a list backwards h]h)}(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&]uh1jhjVhMhjhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjVubj)}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjWh]hpos}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjWubj7)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj7WhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjAWh]hstruct list_head}(hjCWhhhNhNubah}(h]h ](jjvc-typeeh"]h$]h&]uh1jhj?Wubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhj3WhMhj7Wubh to use as a loop cursor.}(hj7WhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3WhMhj4Wubah}(h]h ]h"]h$]h&]uh1j6hjWubeh}(h]h ]h"]h$]h&]uh1jhj3WhMhjWubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hjzWh]hhead}(hj|WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjtWubj7)}(hhh]h)}(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&]uh1j6hjtWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubeh}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_for_each_safe (C macro)c.list_for_each_safehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_safeh]j@)}(hlist_for_each_safeh]jF)}(hlist_for_each_safeh]jL)}(hjWh]hlist_for_each_safe}(hjWhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjWubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjWhhhjWhMubah}(h]jWah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjWhMhjWhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjWhhhjWhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjXjjXjjjuh1j4hhhjhNhNubh)}(h%``list_for_each_safe (pos, n, head)``h]j)}(hj Xh]h!list_for_each_safe (pos, n, head)}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(h7iterate over a list safe against removal of list entry h]h)}(h6iterate over a list safe against removal of list entryh]h6iterate over a list safe against removal of list entry}(hj$XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj Xubah}(h]h ]h"]h$]h&]uh1jhj2XhMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hj?Xh]h Parameters}(hjAXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Xubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj9Xubj)}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj^Xh]hpos}(hj`XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Xubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjXXubj7)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjwXhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjXh]hstruct list_head}(hjXhhhNhNubah}(h]h ](jjvc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjsXhMhjwXubh to use as a loop cursor.}(hjwXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjsXhMhjtXubah}(h]h ]h"]h$]h&]uh1j6hjXXubeh}(h]h ]h"]h$]h&]uh1jhjsXhMhjUXubj)}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j)}(h``n``h]j)}(hjXh]hn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjXubj7)}(hhh]h)}(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 ](jjvc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjXhMhjXubh to use as temporary storage}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1j6hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjUXubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hjYh]hhead}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj/YhhhNhNubah}(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&]uh1j6hjYubeh}(h]h ]h"]h$]h&]uh1jhj+YhMhjUXubeh}(h]h ]h"]h$]h&]uh1jhj9Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!list_for_each_prev_safe (C macro)c.list_for_each_prev_safehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_prev_safeh]j@)}(hlist_for_each_prev_safeh]jF)}(hlist_for_each_prev_safeh]jL)}(hjjYh]hlist_for_each_prev_safe}(hjtYhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjpYubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjlYhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhYhhhjYhMubah}(h]jcYah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjYhMhjeYhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjeYhhhjYhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjYjjYjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(hAiterate over a list backwards safe against removal of list entry h]h)}(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&]uh1jhjYhMhjhhubj)}(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](h)}(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](j)}(h``pos``h]j)}(hjYh]hpos}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjYubj7)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjZhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjZh]hstruct list_head}(hjZhhhNhNubah}(h]h ](jjvc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjZhMhjZubh to use as a loop cursor.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1j6hjYubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjYubj)}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j)}(h``n``h]j)}(hjVZh]hn}(hjXZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjPZubj7)}(hhh]h)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(hjoZhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjyZh]hstruct list_head}(hj{ZhhhNhNubah}(h]h ](jjvc-typeeh"]h$]h&]uh1jhjwZubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjkZhMhjoZubh to use as temporary storage}(hjoZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkZhMhjlZubah}(h]h ]h"]h$]h&]uh1j6hjPZubeh}(h]h ]h"]h$]h&]uh1jhjkZhMhjYubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hjZh]hhead}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjZubj7)}(hhh]h)}(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&]uh1j6hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjYubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_count_nodes (C function)c.list_count_nodeshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h0size_t list_count_nodes (struct list_head *head)h]j@)}(h/size_t list_count_nodes(struct list_head *head)h](h)}(hhh]jL)}(hsize_th]hsize_t}(hj[hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj [ubah}(h]h ]h"]h$]h&] refdomainjvreftypej 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 }(hj1[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj0[hMubjF)}(hlist_count_nodesh]jL)}(hj-[h]hlist_count_nodes}(hjC[hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj?[ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj[hhhj0[hMubj)}(h(struct list_head *head)h]j)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj^[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ[ubj)}(h h]h }(hjk[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ[ubh)}(hhh]jL)}(h list_headh]h list_head}(hj|[hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjy[ubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj~[modnameN classnameNjj)}j]j+[c.list_count_nodesasbuh1hhjZ[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjZ[ubjL)}(hheadh]hhead}(hj[hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjZ[ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjV[ubah}(h]h ]h"]h$]h&]hhuh1jhj[hhhj0[hMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj[hhhj0[hMubah}(h]jZah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj0[hMhj[hhubjy)}(hhh]h)}(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&]uh1jxhj[hhhj0[hMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj[jj[jjjuh1j4hhhjhNhNubj)}(hD**Parameters** ``struct list_head *head`` the head for your list.h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj[ubj)}(hhh]j)}(h2``struct list_head *head`` the head for your list.h](j)}(h``struct list_head *head``h]j)}(hj \h]hstruct list_head *head}(hj"\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj\ubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj9\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj6\ubah}(h]h ]h"]h$]h&]uh1j6hj\ubeh}(h]h ]h"]h$]h&]uh1jhj5\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_entry_is_head (C macro)c.list_entry_is_headhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_entry_is_headh]j@)}(hlist_entry_is_headh]jF)}(hlist_entry_is_headh]jL)}(hjt\h]hlist_entry_is_head}(hj~\hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjz\ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjv\hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjr\hhhj\hMubah}(h]jm\ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj\hMhjo\hhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjo\hhhj\hMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj\jj\jjjuh1j4hhhjhNhNubh)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(h1test if the entry points to the head of the list h]h)}(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\hMhjhhubj)}(h**Parameters** ``pos`` the type * to cursor ``head`` the head for your list. ``member`` the name of the list_head within the struct.h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]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](j)}(h``pos``h]j)}(hj]h]hpos}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj\ubj7)}(hhh]h)}(hthe type * to cursorh]hthe type * to cursor}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j6hj\ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj\ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj=]h]hhead}(hj?]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj7]ubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjV]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR]hMhjS]ubah}(h]h ]h"]h$]h&]uh1j6hj7]ubeh}(h]h ]h"]h$]h&]uh1jhjR]hMhj\ubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjv]h]hmember}(hjx]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjp]ubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj]ubah}(h]h ]h"]h$]h&]uh1j6hjp]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_for_each_entry (C macro)c.list_for_each_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_entryh]j@)}(hlist_for_each_entryh]jF)}(hlist_for_each_entryh]jL)}(hj]h]hlist_for_each_entry}(hj]hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj]ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj]hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj]hhhj]hMubah}(h]j]ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj]hMhj]hhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhj]hhhj]hMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj^jj^jjjuh1j4hhhjhNhNubh)}(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&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjhhubj)}(h iterate over list of given type h]h)}(hiterate over list of given typeh]hiterate 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.^hMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hj;^h]h Parameters}(hj=^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj5^ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjZ^h]hpos}(hj\^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjT^ubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjs^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo^hM hjp^ubah}(h]h ]h"]h$]h&]uh1j6hjT^ubeh}(h]h ]h"]h$]h&]uh1jhjo^hM hjQ^ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj^h]hhead}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj^ubj7)}(hhh]h)}(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&]uh1j6hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hjQ^ubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hj^h]hmember}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj^ubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj^ubah}(h]h ]h"]h$]h&]uh1j6hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hjQ^ubeh}(h]h ]h"]h$]h&]uh1jhj5^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0%list_for_each_entry_reverse (C macro)c.list_for_each_entry_reversehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_entry_reverseh]j@)}(hlist_for_each_entry_reverseh]jF)}(hlist_for_each_entry_reverseh]jL)}(hj _h]hlist_for_each_entry_reverse}(hj*_hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj&_ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj"_hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj_hhhj=_hMubah}(h]j_ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj=_hMhj_hhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhj_hhhj=_hMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjV_jjV_jjjuh1j4hhhjhNhNubh)}(h3``list_for_each_entry_reverse (pos, head, member)``h]j)}(hj\_h]h/list_for_each_entry_reverse (pos, head, member)}(hj^_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(h+iterate backwards over list of given type. h]h)}(h*iterate backwards over list of given type.h]h*iterate backwards over list of given type.}(hjv_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjr_ubah}(h]h ]h"]h$]h&]uh1jhj_hMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj_ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj_h]hpos}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj_ubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j6hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj_h]hhead}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj_ubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j6hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hj"`h]hmember}(hj$`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj `ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj`ubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj;`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj8`ubah}(h]h ]h"]h$]h&]uh1j6hj`ubeh}(h]h ]h"]h$]h&]uh1jhj7`hMhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_prepare_entry (C macro)c.list_prepare_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_prepare_entryh]j@)}(hlist_prepare_entryh]jF)}(hlist_prepare_entryh]jL)}(hjv`h]hlist_prepare_entry}(hj`hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj|`ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjx`hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjt`hhhj`hMubah}(h]jo`ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj`hMhjq`hhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjq`hhhj`hMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj`jj`jjjuh1j4hhhjhNhNubh)}(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&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hjhhubj)}(h>prepare a pos entry for use in list_for_each_entry_continue() h]h)}(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`hMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM"hj`ubj)}(hhh](j)}(h+``pos`` the type * to use as a start point h](j)}(h``pos``h]j)}(hjah]hpos}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjaubj7)}(hhh]h)}(h"the type * to use as a start pointh]h"the type * to use as a start point}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j6hjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhj`ubj)}(h``head`` the head of the list h](j)}(h``head``h]j)}(hj?ah]hhead}(hjAahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=aubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM hj9aubj7)}(hhh]h)}(hthe head of the listh]hthe head of the list}(hjXahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTahM hjUaubah}(h]h ]h"]h$]h&]uh1j6hj9aubeh}(h]h ]h"]h$]h&]uh1jhjTahM hj`ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjxah]hmember}(hjzahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM!hjraubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM!hjaubah}(h]h ]h"]h$]h&]uh1j6hjraubeh}(h]h ]h"]h$]h&]uh1jhjahM!hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM#hj`ubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&list_for_each_entry_continue (C macro)c.list_for_each_entry_continuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_entry_continueh]j@)}(hlist_for_each_entry_continueh]jF)}(hlist_for_each_entry_continueh]jL)}(hjah]hlist_for_each_entry_continue}(hjahhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjaubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjahhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM)ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjahhhjbhM)ubah}(h]jaah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjbhM)hjahhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjahhhjbhM)ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj(bjj(bjjjuh1j4hhhjhNhNubh)}(h4``list_for_each_entry_continue (pos, head, member)``h]j)}(hj.bh]h0list_for_each_entry_continue (pos, head, member)}(hj0bhhhNhNubah}(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.hhM+hjhhubj)}(h+continue iteration over list of given type h]h)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hjHbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM)hjDbubah}(h]h ]h"]h$]h&]uh1jhjVbhM)hjhhubj)}(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](h)}(h**Parameters**h]j)}(hjcbh]h Parameters}(hjebhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjabubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM-hj]bubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjbh]hpos}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM*hj|bubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM*hjbubah}(h]h ]h"]h$]h&]uh1j6hj|bubeh}(h]h ]h"]h$]h&]uh1jhjbhM*hjybubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjbh]hhead}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM+hjbubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM+hjbubah}(h]h ]h"]h$]h&]uh1j6hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM+hjybubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjbh]hmember}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM,hjbubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj chM,hj cubah}(h]h ]h"]h$]h&]uh1j6hjbubeh}(h]h ]h"]h$]h&]uh1jhj chM,hjybubeh}(h]h ]h"]h$]h&]uh1jhj]bubh)}(h**Description**h]j)}(hj/ch]h Description}(hj1chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-cubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM.hj]bubh)}(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.}(hjEchhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM-hj]bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0.list_for_each_entry_continue_reverse (C macro)&c.list_for_each_entry_continue_reversehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h$list_for_each_entry_continue_reverseh]j@)}(h$list_for_each_entry_continue_reverseh]jF)}(h$list_for_each_entry_continue_reverseh]jL)}(hjnch]h$list_for_each_entry_continue_reverse}(hjxchhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjtcubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjpchhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM7ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjlchhhjchM7ubah}(h]jgcah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjchM7hjichhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjichhhjchM7ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjcjjcjjjuh1j4hhhjhNhNubh)}(h<``list_for_each_entry_continue_reverse (pos, head, member)``h]j)}(hjch]h8list_for_each_entry_continue_reverse (pos, head, member)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM9hjhhubj)}(h'iterate backwards from the given point h]h)}(h&iterate backwards from the given pointh]h&iterate backwards from the given point}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM7hjcubah}(h]h ]h"]h$]h&]uh1jhjchM7hjhhubj)}(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](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM;hjcubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjch]hpos}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM8hjcubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM8hjdubah}(h]h ]h"]h$]h&]uh1j6hjcubeh}(h]h ]h"]h$]h&]uh1jhjdhM8hjcubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj7dh]hhead}(hj9dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5dubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM9hj1dubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjPdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLdhM9hjMdubah}(h]h ]h"]h$]h&]uh1j6hj1dubeh}(h]h ]h"]h$]h&]uh1jhjLdhM9hjcubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjpdh]hmember}(hjrdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjndubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM:hjjdubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM:hjdubah}(h]h ]h"]h$]h&]uh1j6hjjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM:hjcubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM<hjcubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhM;hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_for_each_entry_from (C macro)c.list_for_each_entry_fromhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_for_each_entry_fromh]j@)}(hlist_for_each_entry_fromh]jF)}(hlist_for_each_entry_fromh]jL)}(hjdh]hlist_for_each_entry_from}(hjdhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjdubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjdhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMEubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjdhhhjehMEubah}(h]jdah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjehMEhjdhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjdhhhjehMEubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj ejj ejjjuh1j4hhhjhNhNubh)}(h0``list_for_each_entry_from (pos, head, member)``h]j)}(hj&eh]h,list_for_each_entry_from (pos, head, member)}(hj(ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$eubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMGhjhhubj)}(h7iterate over list of given type from the current point h]h)}(h6iterate over list of given type from the current pointh]h6iterate over list of given type from the current point}(hj@ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMEhjlubah}(h]h ]h"]h$]h&]uh1j6hj"lubeh}(h]h ]h"]h$]h&]uh1jhj=lhM~hjkubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjalh]hmember}(hjclhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_lubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj[lubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjzlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvlhMhjwlubah}(h]h ]h"]h$]h&]uh1j6hj[lubeh}(h]h ]h"]h$]h&]uh1jhjvlhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(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.hhMhjkubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*list_for_each_entry_safe_reverse (C macro)"c.list_for_each_entry_safe_reversehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h list_for_each_entry_safe_reverseh]j@)}(h list_for_each_entry_safe_reverseh]jF)}(h list_for_each_entry_safe_reverseh]jL)}(hjlh]h list_for_each_entry_safe_reverse}(hjlhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjlubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjlhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjlhhhjlhMubah}(h]jlah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjlhMhjlhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjlhhhjlhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjmjjmjjjuh1j4hhhjhNhNubh)}(h;``list_for_each_entry_safe_reverse (pos, n, head, member)``h]j)}(hjmh]h7list_for_each_entry_safe_reverse (pos, n, head, member)}(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.hhMhjhhubj)}(h1iterate backwards over list safe against removal h]h)}(h0iterate backwards over list safe against removalh]h0iterate backwards over list safe against removal}(hj1mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj-mubah}(h]h ]h"]h$]h&]uh1jhj?mhMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hjLmh]h Parameters}(hjNmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJmubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjFmubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjkmh]hpos}(hjmmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjimubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjemubj7)}(hhh]h)}(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&]uh1j6hjemubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjbmubj)}(h1``n`` another type * to use as temporary storage h](j)}(h``n``h]j)}(hjmh]hn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjmubj7)}(hhh]h)}(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&]uh1j6hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjbmubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjmh]hhead}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjmubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1j6hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjbmubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjnh]hmember}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjnubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj/nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+nhMhj,nubah}(h]h ]h"]h$]h&]uh1j6hjnubeh}(h]h ]h"]h$]h&]uh1jhj+nhMhjbmubeh}(h]h ]h"]h$]h&]uh1jhjFmubh)}(h**Description**h]j)}(hjQnh]h Description}(hjSnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjFmubh)}(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.}(hjgnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjFmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_safe_reset_next (C macro)c.list_safe_reset_nexthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_safe_reset_nexth]j@)}(hlist_safe_reset_nexth]jF)}(hlist_safe_reset_nexth]jL)}(hjnh]hlist_safe_reset_next}(hjnhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjnubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjnhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjnhhhjnhMubah}(h]jnah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjnhMhjnhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjnhhhjnhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjnjjnjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(h,reset a stale list_for_each_entry_safe loop h]h)}(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&]uh1jhjnhMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(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.hhMhjnubj)}(hhh](j)}(hB``pos`` the loop cursor used in the list_for_each_entry_safe loop h](j)}(h``pos``h]j)}(hj oh]hpos}(hj"ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjoubj7)}(hhh]h)}(h9the loop cursor used in the list_for_each_entry_safe looph]h9the loop cursor used in the list_for_each_entry_safe loop}(hj9ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ohMhj6oubah}(h]h ]h"]h$]h&]uh1j6hjoubeh}(h]h ]h"]h$]h&]uh1jhj5ohMhjoubj)}(h9``n`` temporary storage used in list_for_each_entry_safe h](j)}(h``n``h]j)}(hjYoh]hn}(hj[ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjSoubj7)}(hhh]h)}(h2temporary storage used in list_for_each_entry_safeh]h2temporary storage used in list_for_each_entry_safe}(hjrohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnohMhjooubah}(h]h ]h"]h$]h&]uh1j6hjSoubeh}(h]h ]h"]h$]h&]uh1jhjnohMhjoubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjoh]hmember}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjoubj7)}(hhh]h)}(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&]uh1j6hjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjnubh)}(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.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_unhashed (C function)c.hlist_unhashedhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/int hlist_unhashed (const struct hlist_node *h)h]j@)}(h.int hlist_unhashed(const struct hlist_node *h)h](j)}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj!phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhj phMubjF)}(hhlist_unhashedh]jL)}(hhlist_unhashedh]hhlist_unhashed}(hj3phhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj/pubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjphhhj phMubj)}(h(const struct hlist_node *h)h]j)}(hconst struct hlist_node *hh](j)}(hj'h]hconst}(hjOphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKpubj)}(h h]h }(hj\phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKpubj)}(hjh]hstruct}(hjjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKpubj)}(h h]h }(hjwphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKpubh)}(hhh]jL)}(h hlist_nodeh]h hlist_node}(hjphhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjpubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjpmodnameN classnameNjj)}j]j )}jj5psbc.hlist_unhashedasbuh1hhjKpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjKpubjL)}(hhh]hh}(hjphhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjKpubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjGpubah}(h]h ]h"]h$]h&]hhuh1jhjphhhj phMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj phhhj phMubah}(h]jpah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj phMhjphhubjy)}(hhh]h)}(h2Has node been removed from list and reinitialized?h]h2Has node been removed from list and reinitialized?}(hjphhhNhNubah}(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&]uh1jxhjphhhj phMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjqjjqjjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(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.hhMhj qubj)}(hhh]j)}(h2``const struct hlist_node *h`` Node to be checked h](j)}(h``const struct hlist_node *h``h]j)}(hj.qh]hconst struct hlist_node *h}(hj0qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,qubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj(qubj7)}(hhh]h)}(hNode to be checkedh]hNode to be checked}(hjGqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCqhMhjDqubah}(h]h ]h"]h$]h&]uh1j6hj(qubeh}(h]h ]h"]h$]h&]uh1jhjCqhMhj%qubah}(h]h ]h"]h$]h&]uh1jhj qubh)}(h**Description**h]j)}(hjiqh]h Description}(hjkqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgqubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj qubh)}(hNot that not all removal functions will leave a node in unhashed state. For example, hlist_nulls_del_init_rcu() does leave the node in unhashed state, but hlist_nulls_del() does not.h]hNot that not all removal functions will leave a node in unhashed state. For example, hlist_nulls_del_init_rcu() does leave the node in unhashed state, but hlist_nulls_del() does not.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0$hlist_unhashed_lockless (C function)c.hlist_unhashed_locklesshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h8int hlist_unhashed_lockless (const struct hlist_node *h)h]j@)}(h7int hlist_unhashed_lockless(const struct hlist_node *h)h](j)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMubjF)}(hhlist_unhashed_locklessh]jL)}(hhlist_unhashed_locklessh]hhlist_unhashed_lockless}(hjqhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjqubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjqhhhjqhMubj)}(h(const struct hlist_node *h)h]j)}(hconst struct hlist_node *hh](j)}(hj'h]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]jL)}(h hlist_nodeh]h hlist_node}(hj$rhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj!rubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj&rmodnameN classnameNjj)}j]j )}jjqsbc.hlist_unhashed_locklessasbuh1hhjqubj)}(h h]h }(hjDrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjRrhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjqubjL)}(hjph]hh}(hj_rhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubah}(h]h ]h"]h$]h&]hhuh1jhjqhhhjqhMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjqhhhjqhMubah}(h]jqah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjqhMhjqhhubjy)}(hhh]h)}(h*Version of hlist_unhashed for lockless useh]h*Version of hlist_unhashed for lockless use}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjrhhubah}(h]h ]h"]h$]h&]uh1jxhjqhhhjqhMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjrjjrjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``const struct hlist_node *h`` Node to be checked **Description** This variant of hlist_unhashed() must be used in lockless contexts to avoid potential load-tearing. The READ_ONCE() is paired with the various WRITE_ONCE() in hlist helpers that are defined below.h](h)}(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)}(h2``const struct hlist_node *h`` Node to be checked h](j)}(h``const struct hlist_node *h``h]j)}(hjrh]hconst struct hlist_node *h}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjrubj7)}(hhh]h)}(hNode to be checkedh]hNode to be checked}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1j6hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjrubh)}(hThis variant of hlist_unhashed() must be used in lockless contexts to avoid potential load-tearing. The READ_ONCE() is paired with the various WRITE_ONCE() in hlist helpers that are defined below.h]hThis variant of hlist_unhashed() must be used in lockless contexts to avoid potential load-tearing. The READ_ONCE() is paired with the various WRITE_ONCE() in hlist helpers that are defined below.}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_empty (C function) c.hlist_emptyhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h,int hlist_empty (const struct hlist_head *h)h]j@)}(h+int hlist_empty(const struct hlist_head *h)h](j)}(hinth]hint}(hjIshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEshhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjXshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEshhhjWshMubjF)}(h hlist_emptyh]jL)}(h hlist_emptyh]h hlist_empty}(hjjshhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjfsubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjEshhhjWshMubj)}(h(const struct hlist_head *h)h]j)}(hconst struct hlist_head *hh](j)}(hj'h]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]jL)}(h hlist_headh]h hlist_head}(hjshhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjsubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjsmodnameN classnameNjj)}j]j )}jjlssb c.hlist_emptyasbuh1hhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjsubjL)}(hjph]hh}(hjshhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjsubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj~subah}(h]h ]h"]h$]h&]hhuh1jhjEshhhjWshMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjAshhhjWshMubah}(h]jshhubjy)}(hhh]h)}(h5Is the specified hlist_head structure an empty hlist?h]h5Is the specified hlist_head structure an empty hlist?}(hj#thhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj thhubah}(h]h ]h"]h$]h&]uh1jxhj>shhhjWshMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjj;tjj;tjjjuh1j4hhhjhNhNubj)}(hD**Parameters** ``const struct hlist_head *h`` Structure to check.h](h)}(h**Parameters**h]j)}(hjEth]h Parameters}(hjGthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCtubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj?tubj)}(hhh]j)}(h2``const struct hlist_head *h`` Structure to check.h](j)}(h``const struct hlist_head *h``h]j)}(hjdth]hconst struct hlist_head *h}(hjfthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbtubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj^tubj7)}(hhh]h)}(hStructure to check.h]hStructure to check.}(hj}thhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjztubah}(h]h ]h"]h$]h&]uh1j6hj^tubeh}(h]h ]h"]h$]h&]uh1jhjythMhj[tubah}(h]h ]h"]h$]h&]uh1jhj?tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_del (C function) c.hlist_delhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h%void hlist_del (struct hlist_node *n)h]j@)}(h$void hlist_del(struct hlist_node *n)h](j)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthMubjF)}(h hlist_delh]jL)}(h hlist_delh]h hlist_del}(hjthhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjtubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjthhhjthMubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]jL)}(h hlist_nodeh]h hlist_node}(hjuhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjuubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjumodnameN classnameNjj)}j]j )}jjtsb c.hlist_delasbuh1hhjtubj)}(h h]h }(hj9uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjGuhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjtubjL)}(hjWh]hn}(hjTuhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjtubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjtubah}(h]h ]h"]h$]h&]hhuh1jhjthhhjthMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjthhhjthMubah}(h]jtah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjthMhjthhubjy)}(hhh]h)}(h-Delete the specified hlist_node from its listh]h-Delete the specified hlist_node from its list}(hj}uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjzuhhubah}(h]h ]h"]h$]h&]uh1jxhjthhhjthMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjujjujjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct hlist_node *n`` Node to delete. **Description** Note that this function leaves the node in hashed state. Use hlist_del_init() or similar instead to unhash **n**.h](h)}(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)}(h)``struct hlist_node *n`` Node to delete. h](j)}(h``struct hlist_node *n``h]j)}(hjuh]hstruct hlist_node *n}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjuubj7)}(hhh]h)}(hNode to delete.h]hNode to delete.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjuubah}(h]h ]h"]h$]h&]uh1j6hjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjuubh)}(hrNote that this function leaves the node in hashed state. Use hlist_del_init() or similar instead to unhash **n**.h](hlNote that this function leaves the node in hashed state. Use hlist_del_init() or similar instead to unhash }(hjvhhhNhNubj)}(h**n**h]hn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_del_init (C function)c.hlist_del_inithNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h*void hlist_del_init (struct hlist_node *n)h]j@)}(h)void hlist_del_init(struct hlist_node *n)h](j)}(hvoidh]hvoid}(hjPvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLvhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubj)}(h h]h }(hj_vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLvhhhj^vhMubjF)}(hhlist_del_inith]jL)}(hhlist_del_inith]hhlist_del_init}(hjqvhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjmvubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjLvhhhj^vhMubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]jL)}(h hlist_nodeh]h hlist_node}(hjvhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjvubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjvmodnameN classnameNjj)}j]j )}jjsvsbc.hlist_del_initasbuh1hhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjvubjL)}(hjWh]hn}(hjvhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubah}(h]h ]h"]h$]h&]hhuh1jhjLvhhhj^vhMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjHvhhhj^vhMubah}(h]jCvah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj^vhMhjEvhhubjy)}(hhh]h)}(hhhubah}(h]h ]h"]h$]h&]uh1jxhjhhhjhMVubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjYjjYjjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhj]ubj)}(hhh](j)}(h4``struct hlist_head *old`` hlist_head for old list. h](j)}(h``struct hlist_head *old``h]j)}(hjh]hstruct hlist_head *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMWhj|ubj7)}(hhh]h)}(hhlist_head for old list.h]hhlist_head for old list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j6hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjyubj)}(h4``struct hlist_head *new`` hlist_head for new list. h](j)}(h``struct hlist_head *new``h]j)}(hjh]hstruct hlist_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMXhjubj7)}(hhh]h)}(hhlist_head for new list.h]hhlist_head for new list.}(hjԄhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЄhMXhjфubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjЄhMXhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMZhj]ubh)}(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.hhMYhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_splice_init (C function)c.hlist_splice_inithNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h`void hlist_splice_init (struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h]j@)}(h_void hlist_splice_init(struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h](j)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMgubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjIhMgubjF)}(hhlist_splice_inith]jL)}(hhlist_splice_inith]hhlist_splice_init}(hj\hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjXubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj7hhhjIhMgubj)}(hI(struct hlist_head *from, struct hlist_node *last, struct hlist_head *to)h](j)}(hstruct hlist_head *fromh](j)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]jL)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]j )}jj^sbc.hlist_splice_initasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjąhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjtubjL)}(hfromh]hfrom}(hjхhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjtubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(hstruct hlist_node *lasth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jL)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetj modnameN classnameNjj)}j]jc.hlist_splice_initasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hlasth]hlast}(hjAhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(hstruct hlist_head *toh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]jL)}(h hlist_headh]h hlist_head}(hjxhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjuubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjzmodnameN classnameNjj)}j]jc.hlist_splice_initasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjVubjL)}(htoh]hto}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjVubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubeh}(h]h ]h"]h$]h&]hhuh1jhj7hhhjIhMgubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj3hhhjIhMgubah}(h]j.ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjIhMghj0hhubjy)}(hhh]h)}(h)move all entries from one list to anotherh]h)move all entries from one list to another}(hjۆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMghj؆hhubah}(h]h ]h"]h$]h&]uh1jxhj0hhhjIhMgubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubj)}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMkhjubj)}(hhh](j)}(hH``struct hlist_head *from`` hlist_head from which entries will be moved h](j)}(h``struct hlist_head *from``h]j)}(hjh]hstruct hlist_head *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhhjubj7)}(hhh]h)}(h+hlist_head from which entries will be movedh]h+hlist_head from which entries will be moved}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhhj2ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhhjubj)}(h<``struct hlist_node *last`` last entry on the **from** list h](j)}(h``struct hlist_node *last``h]j)}(hjUh]hstruct hlist_node *last}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMihjOubj7)}(hhh]h)}(hlast entry on the **from** listh](hlast entry on the }(hjnhhhNhNubj)}(h**from**h]hfrom}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh list}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMihjkubah}(h]h ]h"]h$]h&]uh1j6hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMihjubj)}(hD``struct hlist_head *to`` hlist_head to which entries will be moved h](j)}(h``struct hlist_head *to``h]j)}(hjh]hstruct hlist_head *to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMjhjubj7)}(hhh]h)}(h)hlist_head to which entries will be movedh]h)hlist_head to which entries will be moved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjۇh]h Description}(hj݇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjهubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMlhjubh)}(h=**to** can be empty, **from** must contain at least **last**.h](j)}(h**to**h]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be empty, }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must contain at least }(hjhhhNhNubj)}(h**last**h]hlast}(hjhhhNhNubah}(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.hhMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_for_each_entry (C macro)c.hlist_for_each_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hhlist_for_each_entryh]j@)}(hhlist_for_each_entryh]jF)}(hhlist_for_each_entryh]jL)}(hjLh]hhlist_for_each_entry}(hjVhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjRubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjNhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjJhhhjihMubah}(h]jEah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjihMhjGhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjGhhhjihMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(h iterate over list of given type h]h)}(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&]uh1jhjhMhjhhubj)}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj܈h]hpos}(hjވhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڈubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjֈubj7)}(hhh]h)}(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&]uh1j6hjֈubeh}(h]h ]h"]h$]h&]uh1jhjhMhjӈubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjӈubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjNh]hmember}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjHubj7)}(hhh]h)}(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&]uh1j6hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjӈubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0'hlist_for_each_entry_continue (C macro)c.hlist_for_each_entry_continuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hhlist_for_each_entry_continueh]j@)}(hhlist_for_each_entry_continueh]jF)}(hhlist_for_each_entry_continueh]jL)}(hjh]hhlist_for_each_entry_continue}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhMubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhMhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj؉jj؉jjjuh1j4hhhjhNhNubh)}(h/``hlist_for_each_entry_continue (pos, member)``h]j)}(hjމh]h+hlist_for_each_entry_continue (pos, member)}(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.hhMhjhhubj)}(h4iterate over a hlist continuing after current point h]h)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(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&]uh1jhjhMhjhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(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.hhMhj ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj2h]hpos}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj,ubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j6hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjkh]hmember}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjeubj7)}(hhh]h)}(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&]uh1j6hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0#hlist_for_each_entry_from (C macro)c.hlist_for_each_entry_fromhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hhlist_for_each_entry_fromh]j@)}(hhlist_for_each_entry_fromh]jF)}(hhlist_for_each_entry_fromh]jL)}(hjh]hhlist_for_each_entry_from}(hjɊhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjŊubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhj܊hMubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj܊hMhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhj܊hMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjhhubj)}(h3iterate over a hlist continuing from current point h]h)}(h2iterate over a hlist continuing from current pointh]h2iterate over a hlist continuing from current point}(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#hMhjhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(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](j)}(h``pos``h]j)}(hjOh]hpos}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjIubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j6hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjFubeh}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0#hlist_for_each_entry_safe (C macro)c.hlist_for_each_entry_safehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hhlist_for_each_entry_safeh]j@)}(hhlist_for_each_entry_safeh]jF)}(hhlist_for_each_entry_safeh]jL)}(hj܋h]hhlist_for_each_entry_safe}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjދhhhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjڋhhhjhMubah}(h]jՋah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhMhj׋hhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhj׋hhhjhMubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(h4``hlist_for_each_entry_safe (pos, n, head, member)``h]j)}(hjh]h0hlist_for_each_entry_safe (pos, n, head, member)}(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.hhMhjhhubj)}(hCiterate over list of given type safe against removal of list entry h]h)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(hj2hhhNhNubah}(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@hMhjhhubj)}(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](h)}(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.hhMhjGubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjlh]hpos}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjfubj7)}(hhh]h)}(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&]uh1j6hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(hM``n`` a :c:type:`struct hlist_node ` to use as temporary storage h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hFa :c:type:`struct hlist_node ` to use as temporary storageh](ha }(hjhhhNhNubh)}(h(:c:type:`struct hlist_node `h]j)}(hjȌh]hstruct hlist_node}(hjʌhhhNhNubah}(h]h ](jjvc-typeeh"]h$]h&]uh1jhjƌubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj hlist_nodeuh1hhjhMhjubh to use as temporary storage}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hj:h]hmember}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhj4ubj7)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjPubah}(h]h ]h"]h$]h&]uh1j6hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0hlist_count_nodes (C function)c.hlist_count_nodeshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h2size_t hlist_count_nodes (struct hlist_head *head)h]j@)}(h1size_t hlist_count_nodes(struct hlist_head *head)h](h)}(hhh]jL)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej 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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjF)}(hhlist_count_nodesh]jL)}(hjh]hhlist_count_nodes}(hjˍhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjǍubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhhjhMubj)}(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]jL)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&] refdomainjvreftypej reftargetjmodnameN classnameNjj)}j]jc.hlist_count_nodesasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1jhjubjL)}(hheadh]hhead}(hj=hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjލubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhMubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhMhjhhubjy)}(hhh]h)}(hcount nodes in the hlisth]hcount nodes in the hlist}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjdhhubah}(h]h ]h"]h$]h&]uh1jxhjhhhjhMubeh}(h]h ](jvfunctioneh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubj)}(hF**Parameters** ``struct hlist_head *head`` the head for your hlist.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj)}(hhh]j)}(h4``struct hlist_head *head`` the head for your hlist.h](j)}(h``struct hlist_head *head``h]j)}(hjh]hstruct hlist_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/list:775: ./include/linux/list.hhMhjubj7)}(hhh]h)}(hthe head for your hlist.h]hthe head for your hlist.}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]jxah ]h"] full list apiah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hPrivate List APIh]hPrivate List API}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhM ubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh,, but designed for cases where the embedded }(hjhhhNhNubj)}(h*``:c:type:`struct list_head ```h]h&:c:type:`struct list_head `}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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 hjhhubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0list_private_entry (C macro)c.list_private_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_entryh]j@)}(hlist_private_entryh]jF)}(hlist_private_entryh]jL)}(hjGh]hlist_private_entry}(hjQhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjMubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjIhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjEhhhjdhKubah}(h]j@ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjdhKhjBhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjBhhhjdhKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj}jj}jjjuh1j4hhhjhNhNubh)}(h*``list_private_entry (ptr, type, member)``h]j)}(hjh]h&list_private_entry (ptr, type, member)}(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.hhKhjhhubj)}(hget the struct for this entry h]h)}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hj׏h]hptr}(hjُhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՏubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjяubj7)}(hhh]h)}(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 ](jjvc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftypetype refexplicitrefwarnjjj list_headuh1hhjhKhjubh pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjяubeh}(h]h ]h"]h$]h&]uh1jhjhKhjΏubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj3h]htype}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj-ubj7)}(hhh]h)}(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&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1j6hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhjΏubj)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j)}(h ``member``h]j)}(hjlh]hmember}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjfubj7)}(hhh]h)}(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&]uh1j6hjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhjΏubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"list_private_first_entry (C macro)c.list_private_first_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_first_entryh]j@)}(hlist_private_first_entryh]jF)}(hlist_private_first_entryh]jL)}(hjh]hlist_private_first_entry}(hjʐhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjƐubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK$ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjݐhK$ubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjݐhK$hjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjݐhK$ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjubah}(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]h)}(h!get the first element from a listh]h!get the first element from a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK$hjubah}(h]h ]h"]h$]h&]uh1jhj$hK$hjhhubj)}(h**Parameters** ``ptr`` the list head to take the element from. ``type`` the type of the struct this is embedded in. ``member`` the identifier passed to ACCESS_PRIVATE.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(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.hhK(hj+ubj)}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hjPh]hptr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK%hjJubj7)}(hhh]h)}(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&]uh1hhjehK%hjfubah}(h]h ]h"]h$]h&]uh1j6hjJubeh}(h]h ]h"]h$]h&]uh1jhjehK%hjGubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK&hjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjGubj)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j)}(h ``member``h]j)}(hj‘h]hmember}(hjđhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK(hjubj7)}(hhh]h)}(h(the identifier passed to ACCESS_PRIVATE.h]h(the identifier passed to ACCESS_PRIVATE.}(hjۑhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK'hjؑubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjבhK(hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!list_private_last_entry (C macro)c.list_private_last_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_last_entryh]j@)}(hlist_private_last_entryh]jF)}(hlist_private_last_entryh]jL)}(hjh]hlist_private_last_entry}(hj hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK-ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhj3hK-ubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj3hK-hjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhj3hK-ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjLjjLjjjuh1j4hhhjhNhNubh)}(h/``list_private_last_entry (ptr, type, member)``h]j)}(hjRh]h+list_private_last_entry (ptr, type, member)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(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]h)}(h get the last element from a listh]h get the last element from a list}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK-hjhubah}(h]h ]h"]h$]h&]uh1jhjzhK-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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK1hjubj)}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK.hjubj7)}(hhh]h)}(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&]uh1hhjhK.hjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhK.hjubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjߒh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݒubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK/hjْubj7)}(hhh]h)}(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&]uh1j6hjْubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubj)}(h3``member`` the identifier passed to ACCESS_PRIVATE.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK1hjubj7)}(hhh]h)}(h(the identifier passed to ACCESS_PRIVATE.h]h(the identifier passed to ACCESS_PRIVATE.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK0hj.ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj-hK1hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!list_private_next_entry (C macro)c.list_private_next_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_next_entryh]j@)}(hlist_private_next_entryh]jF)}(hlist_private_next_entryh]jL)}(hjlh]hlist_private_next_entry}(hjvhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjrubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjnhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK6ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjjhhhjhK6ubah}(h]jeah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhK6hjghhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjghhhjhK6ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(h)``list_private_next_entry (pos, member)``h]j)}(hjh]h%list_private_next_entry (pos, member)}(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.hhK8hjhhubj)}(hget the next element in list h]h)}(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.hhK6hjubah}(h]h ]h"]h$]h&]uh1jhjГhK6hjhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](h)}(h**Parameters**h]j)}(hjݓh]h Parameters}(hjߓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۓubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK:hjדubj)}(hhh](j)}(h``pos`` the type * to cursor h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK7hjubj7)}(hhh]h)}(hthe type * to cursorh]hthe type * to cursor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hj5h]hmember}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK9hj/ubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK8hjKubah}(h]h ]h"]h$]h&]uh1j6hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK9hjubeh}(h]h ]h"]h$]h&]uh1jhjדubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*list_private_next_entry_circular (C macro)"c.list_private_next_entry_circularhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h list_private_next_entry_circularh]j@)}(h list_private_next_entry_circularh]jF)}(h list_private_next_entry_circularh]jL)}(hjh]h list_private_next_entry_circular}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK>ubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhK>ubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhK>hjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjhK>ubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjÔ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]h)}(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.hhK>hj۔ubah}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKBhjubj)}(hhh](j)}(h``pos`` the type * to cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK?hjubj7)}(hhh]h)}(hthe type * to cursor.h]hthe type * to cursor.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hK?hj/ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj.hK?hjubj)}(h1``head`` the list head to take the element from. h](j)}(h``head``h]j)}(hjRh]hhead}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhK@hjLubj7)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghK@hjhubah}(h]h ]h"]h$]h&]uh1j6hjLubeh}(h]h ]h"]h$]h&]uh1jhjghK@hjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKAhjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjƕh]h Description}(hjȕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĕubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKChjubh)}(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ܕhhhNhNubah}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!list_private_prev_entry (C macro)c.list_private_prev_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_prev_entryh]j@)}(hlist_private_prev_entryh]jF)}(hlist_private_prev_entryh]jL)}(hjh]hlist_private_prev_entry}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKLubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhj"hKLubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj"hKLhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhj"hKLubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj;jj;jjjuh1j4hhhjhNhNubh)}(h)``list_private_prev_entry (pos, member)``h]j)}(hjAh]h%list_private_prev_entry (pos, member)}(hjChhhNhNubah}(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.hhKNhjhhubj)}(hget the prev element in list h]h)}(hget the prev element in listh]hget the prev 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.hhKLhjWubah}(h]h ]h"]h$]h&]uh1jhjihKLhjhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKPhjpubj)}(hhh](j)}(h``pos`` the type * to cursor h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKMhjubj7)}(hhh]h)}(hthe type * to cursorh]hthe type * to cursor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjΖh]hmember}(hjЖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̖ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKOhjȖubj7)}(hhh]h)}(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&]uh1j6hjȖubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*list_private_prev_entry_circular (C macro)"c.list_private_prev_entry_circularhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h list_private_prev_entry_circularh]j@)}(h list_private_prev_entry_circularh]jF)}(h list_private_prev_entry_circularh]jL)}(hj"h]h list_private_prev_entry_circular}(hj,hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj(ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj$hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKTubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj hhhj?hKTubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj?hKThjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhj?hKTubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjXjjXjjjuh1j4hhhjhNhNubh)}(h8``list_private_prev_entry_circular (pos, head, member)``h]j)}(hj^h]h4list_private_prev_entry_circular (pos, head, member)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKVhjhhubj)}(hget the prev element in list h]h)}(hget the prev element in listh]hget the prev element in list}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKThjtubah}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKXhjubj)}(hhh](j)}(h``pos`` the type * to cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKUhjubj7)}(hhh]h)}(hthe type * to cursor.h]hthe type * to cursor.}(hj˗hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǗhKUhjȗubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjǗhKUhjubj)}(h1``head`` the list head to take the element from. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKVhjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKVhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj$h]hmember}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKWhjubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKWhj:ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj9hKWhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKYhjubh)}(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.}(hjuhhhNhNubah}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0$list_private_entry_is_head (C macro)c.list_private_entry_is_headhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_entry_is_headh]j@)}(hlist_private_entry_is_headh]jF)}(hlist_private_entry_is_headh]jL)}(hjh]hlist_private_entry_is_head}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKbubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhKbubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhKbhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjhKbubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjԘjjԘjjjuh1j4hhhjhNhNubh)}(h2``list_private_entry_is_head (pos, head, member)``h]j)}(hjژh]h.list_private_entry_is_head (pos, head, member)}(hjܘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjؘubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKdhjhhubj)}(h1test if the entry points to the head of the list h]h)}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKfhj ubj)}(hhh](j)}(h``pos`` the type * to cursor h](j)}(h``pos``h]j)}(hj.h]hpos}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKchj(ubj7)}(hhh]h)}(hthe type * to cursorh]hthe type * to cursor}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKchjDubah}(h]h ]h"]h$]h&]uh1j6hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKchj%ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjgh]hhead}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKdhjaubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKdhj}ubah}(h]h ]h"]h$]h&]uh1j6hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKdhj%ubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKfhjubj7)}(hhh]h)}(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.hhKehjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0%list_private_for_each_entry (C macro)c.list_private_for_each_entryhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hlist_private_for_each_entryh]j@)}(hlist_private_for_each_entryh]jF)}(hlist_private_for_each_entryh]jL)}(hjh]hlist_private_for_each_entry}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKkubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhKkubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhKkhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjhKkubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj*jj*jjjuh1j4hhhjhNhNubh)}(h3``list_private_for_each_entry (pos, head, member)``h]j)}(hj0h]h/list_private_for_each_entry (pos, head, member)}(hj2hhhNhNubah}(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.hhKmhjhhubj)}(h iterate over list of given type h]h)}(hiterate over list of given typeh]hiterate over list of given type}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKkhjFubah}(h]h ]h"]h$]h&]uh1jhjXhKkhjhhubj)}(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](h)}(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.hhKohj_ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKlhj~ubj7)}(hhh]h)}(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&]uh1j6hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKlhj{ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKmhjubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj֚hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҚhKmhjӚubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjҚhKmhj{ubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKohjubj7)}(hhh]h)}(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.hhKnhj ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj hKohj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0-list_private_for_each_entry_reverse (C macro)%c.list_private_for_each_entry_reversehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h#list_private_for_each_entry_reverseh]j@)}(h#list_private_for_each_entry_reverseh]jF)}(h#list_private_for_each_entry_reverseh]jL)}(hjJh]h#list_private_for_each_entry_reverse}(hjThhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjPubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjLhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKvubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjHhhhjghKvubah}(h]jCah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjghKvhjEhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjEhhhjghKvubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjjjjjjuh1j4hhhjhNhNubh)}(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&]uh1jhjubah}(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]h)}(h*iterate backwards over list of given type.h]h*iterate backwards over list of given type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKvhjubah}(h]h ]h"]h$]h&]uh1jhjhKvhjhhubj)}(h**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKzhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjڛh]hpos}(hjܛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؛ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKwhjԛubj7)}(hhh]h)}(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&]uh1j6hjԛubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjћubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKxhj ubj7)}(hhh]h)}(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&]uh1j6hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKxhjћubj)}(h7``member`` the name of the list_head within the struct.h](j)}(h ``member``h]j)}(hjLh]hmember}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKzhjFubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKyhjbubah}(h]h ]h"]h$]h&]uh1j6hjFubeh}(h]h ]h"]h$]h&]uh1jhjahKzhjћubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0.list_private_for_each_entry_continue (C macro)&c.list_private_for_each_entry_continuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h$list_private_for_each_entry_continueh]j@)}(h$list_private_for_each_entry_continueh]jF)}(h$list_private_for_each_entry_continueh]jL)}(hjh]h$list_private_for_each_entry_continue}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhKubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhKhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjhKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjj֜jj֜jjjuh1j4hhhjhNhNubh)}(h<``list_private_for_each_entry_continue (pos, head, member)``h]j)}(hjܜh]h8list_private_for_each_entry_continue (pos, head, member)}(hjޜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڜubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(h+continue iteration over list of given type h]h)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubah}(h]h ]h"]h$]h&]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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj0h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj*ubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1j6hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj'ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjih]hhead}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjcubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1j6hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj'ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjݝh]h Description}(hjߝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۝ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj ubh)}(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.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j06list_private_for_each_entry_continue_reverse (C macro).c.list_private_for_each_entry_continue_reversehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h,list_private_for_each_entry_continue_reverseh]j@)}(h,list_private_for_each_entry_continue_reverseh]jF)}(h,list_private_for_each_entry_continue_reverseh]jL)}(hjh]h,list_private_for_each_entry_continue_reverse}(hj&hhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhj"ubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhj9hKubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj9hKhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhj9hKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjRjjRjjjuh1j4hhhjhNhNubh)}(hD``list_private_for_each_entry_continue_reverse (pos, head, member)``h]j)}(hjXh]h@list_private_for_each_entry_continue_reverse (pos, head, member)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(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]h)}(h&iterate backwards from the given pointh]h&iterate backwards from the given point}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjnubah}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjŞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjžubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjߞubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjߞubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj7)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubh)}(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.}(hjohhhNhNubah}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*list_private_for_each_entry_from (C macro)"c.list_private_for_each_entry_fromhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h list_private_for_each_entry_fromh]j@)}(h list_private_for_each_entry_fromh]jF)}(h list_private_for_each_entry_fromh]jL)}(hjh]h list_private_for_each_entry_from}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhjhKubah}(h]jah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hjhKhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhjhKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjΟjjΟjjjuh1j4hhhjhNhNubh)}(h8``list_private_for_each_entry_from (pos, head, member)``h]j)}(hjԟh]h4list_private_for_each_entry_from (pos, head, member)}(hj֟hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҟubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjhhubj)}(h7iterate over list of given type from the current point h]h)}(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](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj(h]hpos}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj"ubj7)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1j6hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjah]hhead}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj[ubj7)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1j6hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj7)}(hhh]h)}(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&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjՠh]h Description}(hjנhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӠubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubh)}(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&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j02list_private_for_each_entry_from_reverse (C macro)*c.list_private_for_each_entry_from_reversehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h(list_private_for_each_entry_from_reverseh]j@)}(h(list_private_for_each_entry_from_reverseh]jF)}(h(list_private_for_each_entry_from_reverseh]jL)}(hjh]h(list_private_for_each_entry_from_reverse}(hjhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhjhhhj1hKubah}(h]j ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj1hKhjhhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhjhhhj1hKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjJjjJjjjuh1j4hhhjhNhNubh)}(h@``list_private_for_each_entry_from_reverse (pos, head, member)``h]j)}(hjPh]hh]hlist_private_safe_reset_next}(hjHhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jKhjDubah}(h]h ](j^j_eh"]h$]h&]hhuh1jEhj@hhh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKubah}(h]h ]h"]h$]h&]hhjjuh1j?jkjlhj<hhhj[hKubah}(h]j7ah ](jpjqeh"]h$]h&]jujv)jwhuh1j9hj[hKhj9hhubjy)}(hhh]h}(h]h ]h"]h$]h&]uh1jxhj9hhhj[hKubeh}(h]h ](jvmacroeh"]h$]h&]jjvjjtjjtjjjuh1j4hhhjhNhNubh)}(h1``list_private_safe_reset_next (pos, n, member)``h]j)}(hjzh]h-list_private_safe_reset_next (pos, n, member)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(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]h)}(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](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj)}(hhh](j)}(hB``pos`` the loop cursor used in the list_for_each_entry_safe loop h](j)}(h``pos``h]j)}(hjΩh]hpos}(hjЩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̩ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjȩubj7)}(hhh]h)}(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&]uh1j6hjȩubeh}(h]h ]h"]h$]h&]uh1jhjhKhjũubj)}(h9``n`` temporary storage used in list_for_each_entry_safe h](j)}(h``n``h]j)}(hjh]hn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubj7)}(hhh]h)}(h2temporary storage used in list_for_each_entry_safeh]h2temporary storage used in list_for_each_entry_safe}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjũubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj@h]hmember}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhj:ubj7)}(hhh]h)}(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&]uh1hhjUhKhjVubah}(h]h ]h"]h$]h&]uh1j6hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKhjũubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/list:784: ./include/linux/list_private.hhKhjubh)}(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]jRah ]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_handlerjتerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjRjjjjqjjjjjjjjjjj|j:jj\j j~j jj jjc jj jj j(jjJj j jjxjju nametypes}(jjjjjjjjj|jj j j jc j j jj jjuh}(jRhjj%jqjjjjjEjjjjjjj:jj\jj~jjj jj jj jjf j(j jJj j j jxjj2j;jojtjvj{j jj5j:j_jdjjjj!jXj]j\jajjj!j!j#j#j&j&j6)j;)j+j+j-j-j`/je/j0j0j2j2j4j4jJ6jO6j7j7j;j;j>j>j@j@jBjBj EjEjFGjKGjHjHj;Jj@JjKjKj3Mj8MjNjNjOjOjHQjMQjeRjjRjSjSj!Uj&UjVjVjWjWjcYjhYjZj[jm\jr\j]j]j_j_jo`jt`jajajgcjlcjdjdj_fjdfjgjgjjijoijkj$kjljljnjnjpj pjqjqj