Go to the source code of this file.
◆ ATALK_INIT_LIST_HEAD
#define ATALK_INIT_LIST_HEAD |
( |
| ptr | ) |
|
Value: do { \
(ptr)->
next = (ptr); (ptr)->prev = (ptr); \
} while (0)
#define next
Definition hash.c:35
◆ ATALK_LIST_HEAD
#define ATALK_LIST_HEAD |
( |
| name | ) |
|
Value:
#define ATALK_LIST_HEAD_INIT(name)
Definition include/atalk/list.h:21
Definition include/atalk/list.h:17
◆ ATALK_LIST_HEAD_INIT
#define ATALK_LIST_HEAD_INIT |
( |
| name | ) |
|
◆ list_entry
#define list_entry |
( |
| ptr, |
|
|
| type, |
|
|
| member ) |
Value: ((
type *)((
char *)(ptr)-(
unsigned long)(&((
type *)0)->member)))
static enum op type
Definition nad_cp.c:95
list_entry - get the struct for this entry
- Parameters
-
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
#define list_for_each |
( |
| pos, |
|
|
| head ) |
Value: for (pos = (head)->
next; pos != (head); \
pos = pos->next)
list_for_each - iterate over a list
- Parameters
-
pos | the &struct list_head to use as a loop counter. |
head | the head for your list. |
◆ list_for_each_prev
#define list_for_each_prev |
( |
| pos, |
|
|
| head ) |
Value: for (pos = (head)->prev; pos != (head); \
pos = pos->prev)
list_for_each_prev - iterate over a list in reverse order
- Parameters
-
pos | the &struct list_head to use as a loop counter. |
head | the head for your list. |