ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | list_head |
Macros | |
#define | LIST_HEAD_INIT(name) { &(name), &(name) } |
#define | LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name) |
#define | INIT_LIST_HEAD(ptr) |
#define | list_entry(ptr, type, member) ((type *)((char *)(ptr)-(uintptr_t)(&((type *)0)->member))) |
#define | list_for_each(pos, head) |
#define | list_for_each_prev(pos, head) |
#define | list_for_each_safe(pos, n, head) |
#define | list_for_each_entry(pos, head, member) |
#define | list_for_each_entry_safe(pos, n, head, member) |
#define | list_for_each_entry_continue(pos, head, member) |
Functions | |
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 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) |
#define list_entry | ( | ptr, | |
type, | |||
member | |||
) | ((type *)((char *)(ptr)-(uintptr_t)(&((type *)0)->member))) |
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_continue - iterate over list of given type continuing after existing point @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.
|
inlinestatic |
Definition at line 35 of file list.h.
Referenced by list_add(), and list_add_tail().
Definition at line 78 of file list.h.
Referenced by list_del(), list_del_init(), list_move(), and list_move_tail().
Definition at line 138 of file list.h.
Referenced by list_splice(), and list_splice_init().
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 53 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.
Definition at line 89 of file list.h.
Referenced by __remove_wait_queue(), acpi_bus_receive_event(), acpi_bus_unregister_driver(), acpi_power_off_device(), acpi_power_remove(), chmc_entries_free(), chmc_pmgi_free(), chmc_pmgl_free(), chmc_section_destroy(), chmc_sections_free(), and journal_clear_revoke().
list_del_init - deletes entry from list and reinitialize it. @entry: the element to delete from the list.
Definition at line 100 of file list.h.
Referenced by ext4_xattr_item_remove(), and finish_wait().
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_move_tail - delete from one list and add as another's tail @list: the entry to move @head: the head that will follow our entry
Definition at line 122 of file list.h.
Referenced by shader_arb_handle_instruction().
list_splice - join two lists @list: the new list to add. @head: the place to add it in the first list.
Definition at line 157 of file list.h.