ReactOS 0.4.16-dev-329-g9223134
|
Go to the source code of this file.
Classes | |
struct | list_head |
Macros | |
#define | prefetch(a) ((void *)a) |
#define | LIST_HEAD_INIT(name) { &(name), &(name) } |
#define | LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name) |
#define | list_entry(ptr, type, member) ((type *)((char *)(ptr)-(char *)(&((type *)0)->member))) |
#define | list_for_each(pos, head) |
#define | list_for_each_safe(pos, n, head) |
#define | list_for_each_prev(pos, head) |
#define | list_for_each_entry(pos, head, type, member) |
#define | list_for_each_entry_safe(pos, n, head, type, member) |
Functions | |
static void | INIT_LIST_HEAD (struct list_head *list) |
static void | __list_add (struct list_head *new, struct list_head *prev, struct list_head *next) |
static void | list_add (struct list_head *new, struct list_head *head) |
static void | list_add_tail (struct list_head *new, struct list_head *head) |
static void | __list_del (struct list_head *prev, struct list_head *next) |
static void | list_del (struct list_head *entry) |
static void | list_del_init (struct list_head *entry) |
static void | list_move (struct list_head *list, struct list_head *head) |
static void | list_move_tail (struct list_head *list, struct list_head *head) |
static int | list_empty (struct list_head *head) |
static int | list_empty_careful (const struct list_head *head) |
static void | __list_splice (struct list_head *list, struct list_head *head) |
static void | list_splice (struct list_head *list, struct list_head *head) |
static void | list_splice_init (struct list_head *list, struct list_head *head) |
list_entry - get the struct for this entry @ptr: the &struct list_head pointer. @type: the type of the struct this is embedded in. @member: the name of the list_struct within the struct.
list_for_each - iterate over a list @pos: the &struct list_head to use as a loop counter. @head: the head for your list.
list_for_each_entry - iterate over list of given type @pos: the type * to use as a loop counter. @head: the head for your list. @member: the name of the list_struct within the struct.
list_for_each_entry_safe - iterate over list of given type safe against removal of list entry @pos: the type * to use as a loop counter.
: another type * to use as temporary storage @head: the head for your list. @member: the name of the list_struct within the struct.
list_add - add a new entry @new: new entry to be added @head: list head to add it after
Insert a new entry after the specified head. This is good for implementing stacks.
Definition at line 55 of file list.h.
list_del - deletes entry from list. @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.
list_move - delete from one list and add as another's head @list: the entry to move @head: the head that will precede our entry
list_splice - join two lists @list: the new list to add. @head: the place to add it in the first list.
Definition at line 163 of file list.h.