Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | list_head |
struct | hlist_head |
struct | hlist_node |
Macros | |
#define | LIST_POISON1 ((void *) 0x00100100) |
#define | LIST_POISON2 ((void *) 0x00200200) |
#define | container_of(ptr, type, member) |
#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_top(head, type, member) |
#define | list_entry(ptr, type, member) container_of(ptr, type, member) |
#define | list_for_each(pos, head) for (pos = (head)->next; pos != (head); pos = pos->next) |
#define | list_for_each_prev(pos, head) for (pos = (head)->prev; pos != (head); pos = pos->prev) |
#define | list_for_each_safe(pos, n, head) |
#define | list_for_each_entry(pos, head, member) |
#define | list_for_each_entry_dual(pos, pos2, head, head2, member, member2) |
#define | list_for_each_entry_reverse(pos, head, member) |
#define | list_for_each_entry_continue(pos, head, member) |
#define | list_for_each_entry_safe(pos, n, head, member) |
#define | HLIST_HEAD_INIT { .first = NULL } |
#define | HLIST_HEAD(name) struct hlist_head name = { .first = NULL } |
#define | INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL) |
#define | INIT_HLIST_NODE(ptr) ((ptr)->next = NULL, (ptr)->pprev = NULL) |
#define | hlist_del_rcu_init hlist_del_init |
#define | hlist_entry(ptr, type, member) container_of(ptr,type,member) |
#define | hlist_for_each(pos, head) for (pos = (head)->first; pos; pos = pos->next) |
#define | hlist_for_each_safe(pos, n, head) |
#define | hlist_for_each_entry(tpos, pos, head, member) |
#define | hlist_for_each_entry_continue(tpos, pos, member) |
#define | hlist_for_each_entry_from(tpos, pos, member) |
#define | hlist_for_each_entry_safe(tpos, pos, n, head, member) |
#define container_of | ( | ptr, | |
type, | |||
member | |||
) |
#define hlist_entry | ( | ptr, | |
type, | |||
member | |||
) | container_of(ptr,type,member) |
#define hlist_for_each | ( | pos, | |
head | |||
) | for (pos = (head)->first; pos; pos = pos->next) |
#define hlist_for_each_entry | ( | tpos, | |
pos, | |||
head, | |||
member | |||
) |
hlist_for_each_entry - iterate over list of given type : the type * to use as a loop counter. : the &struct hlist_node to use as a loop counter. : the head for your list. : the name of the hlist_node within the struct.
#define hlist_for_each_entry_continue | ( | tpos, | |
pos, | |||
member | |||
) |
hlist_for_each_entry_continue - iterate over a hlist continuing after existing point : the type * to use as a loop counter. : the &struct hlist_node to use as a loop counter. : the name of the hlist_node within the struct.
#define hlist_for_each_entry_from | ( | tpos, | |
pos, | |||
member | |||
) |
hlist_for_each_entry_from - iterate over a hlist continuing from existing point : the type * to use as a loop counter. : the &struct hlist_node to use as a loop counter. : the name of the hlist_node within the struct.
#define hlist_for_each_entry_safe | ( | tpos, | |
pos, | |||
n, | |||
head, | |||
member | |||
) |
hlist_for_each_entry_safe - iterate over list of given type safe against removal of list entry : the type * to use as a loop counter. : the &struct hlist_node to use as a loop counter.
: another &struct hlist_node to use as temporary storage : the head for your list. : the name of the hlist_node within the struct.
#define hlist_for_each_safe | ( | pos, | |
n, | |||
head | |||
) |
#define HLIST_HEAD | ( | name | ) | struct hlist_head name = { .first = NULL } |
#define INIT_HLIST_NODE | ( | ptr | ) | ((ptr)->next = NULL, (ptr)->pprev = NULL) |
#define INIT_LIST_HEAD | ( | ptr | ) |
#define list_entry | ( | ptr, | |
type, | |||
member | |||
) | container_of(ptr, type, member) |
#define list_for_each | ( | pos, | |
head | |||
) | for (pos = (head)->next; pos != (head); pos = pos->next) |
#define list_for_each_entry | ( | pos, | |
head, | |||
member | |||
) |
list_for_each_entry - iterate over list of given type : the type * to use as a loop counter. : the head for your list. : the name of the list_struct within the struct.
#define list_for_each_entry_continue | ( | pos, | |
head, | |||
member | |||
) |
list_for_each_entry_continue - iterate over list of given type continuing after existing point : the type * to use as a loop counter. : the head for your list. : the name of the list_struct within the struct.
#define list_for_each_entry_dual | ( | pos, | |
pos2, | |||
head, | |||
head2, | |||
member, | |||
member2 | |||
) |
list_for_each_entry_dual - iterate over two lists of given type : the type * to use as a loop counter. : the type * to use as a loop counter. : the head for your list. : the head for your list. : the name of the list_struct within the struct. :the name of the list_struct within the struct.
#define list_for_each_entry_reverse | ( | pos, | |
head, | |||
member | |||
) |
list_for_each_entry_reverse - iterate backwards over list of given type. : the type * to use as a loop counter. : the head for your list. : the name of the list_struct within the struct.
#define list_for_each_entry_safe | ( | pos, | |
n, | |||
head, | |||
member | |||
) |
list_for_each_entry_safe - iterate over list of given type safe against removal of list entry : the type * to use as a loop counter.
: another type * to use as temporary storage : the head for your list. : the name of the list_struct within the struct.
#define list_for_each_prev | ( | pos, | |
head | |||
) | for (pos = (head)->prev; pos != (head); pos = pos->prev) |
#define list_for_each_safe | ( | pos, | |
n, | |||
head | |||
) |
#define LIST_HEAD | ( | name | ) | struct list_head name = LIST_HEAD_INIT(name) |
#define list_top | ( | head, | |
type, | |||
member | |||
) |