list.h File Reference
Go to the source code of this file.
Classes |
struct | dl_list |
Defines |
#define | dl_list_entry(item, type, member) ((type *) ((char *) item - offsetof(type, member))) |
#define | dl_list_first(list, type, member) |
#define | dl_list_for_each(item, list, type, member) |
#define | dl_list_for_each_safe(item, n, list, type, member) |
#define | offsetof(type, member) ((long) &((type *) 0)->member) |
Functions |
static void | dl_list_add (struct dl_list *list, struct dl_list *item) |
static void | dl_list_add_tail (struct dl_list *list, struct dl_list *item) |
static void | dl_list_del (struct dl_list *item) |
static int | dl_list_empty (struct dl_list *list) |
static void | dl_list_init (struct dl_list *list) |
static unsigned int | dl_list_len (struct dl_list *list) |
Define Documentation
#define dl_list_entry |
( |
item, |
|
|
type, |
|
|
member |
|
) |
((type *) ((char *) item - offsetof(type, member))) |
#define dl_list_first |
( |
list, |
|
|
type, |
|
|
member |
|
) |
|
Value:
Definition at line 74 of file list.h.
#define dl_list_for_each |
( |
item, |
|
|
list, |
|
|
type, |
|
|
member |
|
) |
|
Value:
Definition at line 78 of file list.h.
#define dl_list_for_each_safe |
( |
item, |
|
|
n, |
|
|
list, |
|
|
type, |
|
|
member |
|
) |
|
Value:
Definition at line 83 of file list.h.
#define offsetof |
( |
type, |
|
|
member |
|
) |
((long) &((type *) 0)->member) |
Function Documentation
static void dl_list_add |
( |
struct dl_list * |
list, |
|
|
struct dl_list * |
item | |
|
) |
| | [inline, static] |
static void dl_list_add_tail |
( |
struct dl_list * |
list, |
|
|
struct dl_list * |
item | |
|
) |
| | [inline, static] |
static void dl_list_del |
( |
struct dl_list * |
item |
) |
[inline, static] |
static int dl_list_empty |
( |
struct dl_list * |
list |
) |
[inline, static] |
static void dl_list_init |
( |
struct dl_list * |
list |
) |
[inline, static] |
static unsigned int dl_list_len |
( |
struct dl_list * |
list |
) |
[inline, static] |