Go to the source code of this file.
|
#define | offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
|
#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 | list_entry(ptr, type, member) container_of(ptr, type, member) |
|
#define | list_for_each_entry(pos, head, member) |
|
#define container_of |
( |
|
ptr, |
|
|
|
type, |
|
|
|
member |
|
) |
| |
Value:container_of - cast a member of a structure out to the containing structure : the pointer to the member. : the type of the container struct this is embedded in. : the name of the member within the struct.
Definition at line 18 of file list.h.
#define list_for_each_entry |
( |
|
pos, |
|
|
|
head, |
|
|
|
member |
|
) |
| |
Value:list_for_each_entry - iterate over list of given type : the type * to use as a loop cursor. : the head for your list. : the name of the list_struct within the struct.
Definition at line 48 of file list.h.
Definition at line 9 of file list.h.