|
xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
|
XTINY 双向链表与单向链表操作接口 更多...
结构体 | |
| struct | xt_list_node |
| struct | xt_slist_node |
宏定义 | |
| #define | xt_container_of(ptr, type, member) |
| #define | XT_LIST_OBJECT_INIT(object) |
| initialize a list object | |
| #define | xt_list_entry(node, type, member) |
| get the struct for this entry | |
| #define | xt_list_for_each(pos, head) |
| #define | xt_list_for_each_safe(pos, n, head) |
| #define | xt_list_for_each_entry(pos, head, member) |
| #define | xt_list_for_each_entry_safe(pos, n, head, member) |
| #define | xt_list_first_entry(ptr, type, member) |
| #define | XT_SLIST_OBJECT_INIT(object) |
| #define | xt_slist_entry(node, type, member) |
| get the struct for this single list node | |
| #define | xt_slist_for_each(pos, head) |
| #define | xt_slist_for_each_entry(pos, head, member) |
| #define | xt_slist_first_entry(ptr, type, member) |
| #define | xt_slist_tail_entry(ptr, type, member) |
函数 | |
| static void | xt_list_init (struct xt_list_node *l) |
| initialize a list | |
| static void | xt_list_insert_after (struct xt_list_node *l, struct xt_list_node *n) |
| insert a node after a list | |
| static void | xt_list_insert_before (struct xt_list_node *l, struct xt_list_node *n) |
| insert a node before a list | |
| static void | xt_list_remove (struct xt_list_node *n) |
| remove node from list. | |
| static int | xt_list_isempty (const struct xt_list_node *l) |
| tests whether a list is empty | |
| static unsigned int | xt_list_len (const struct xt_list_node *l) |
| get the list length | |
| static void | xt_slist_init (struct xt_slist_node *l) |
| initialize a single list | |
| static void | xt_slist_append (struct xt_slist_node *l, struct xt_slist_node *n) |
| static void | xt_slist_insert (struct xt_slist_node *l, struct xt_slist_node *n) |
| static unsigned int | xt_slist_len (const struct xt_slist_node *l) |
| static struct xt_slist_node * | xt_slist_remove (struct xt_slist_node *l, struct xt_slist_node *n) |
| static struct xt_slist_node * | xt_slist_first (struct xt_slist_node *l) |
| static struct xt_slist_node * | xt_slist_tail (struct xt_slist_node *l) |
| static struct xt_slist_node * | xt_slist_next (struct xt_slist_node *n) |
| static int | xt_slist_isempty (struct xt_slist_node *l) |
XTINY 双向链表与单向链表操作接口
| #define xt_container_of | ( | ptr, | |
| type, | |||
| member ) |
| #define xt_list_entry | ( | node, | |
| type, | |||
| member ) |
get the struct for this entry
| node | the entry point |
| type | the type of structure |
| member | the name of list in structure |
| #define xt_list_first_entry | ( | ptr, | |
| type, | |||
| member ) |
xt_list_first_entry - get the first element from a list @ptr: the list head to take the element from. @type: the type of the struct this is embedded in. @member: the name of the list_struct within the struct.
Note, that list is expected to be not empty.
| #define xt_list_for_each | ( | pos, | |
| head ) |
xt_list_for_each - iterate over a list @pos: the struct xt_list_node * to use as a loop cursor. @head: the head for your list.
| #define xt_list_for_each_entry | ( | pos, | |
| head, | |||
| member ) |
xt_list_for_each_entry - iterate over list of given type @pos: the type * to use as a loop cursor. @head: the head for your list. @member: the name of the list_struct within the struct.
| #define xt_list_for_each_entry_safe | ( | pos, | |
| n, | |||
| head, | |||
| member ) |
xt_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 cursor.
: another type * to use as temporary storage @head: the head for your list. @member: the name of the list_struct within the struct.
| #define xt_list_for_each_safe | ( | pos, | |
| n, | |||
| head ) |
xt_list_for_each_safe - iterate over a list safe against removal of list entry @pos: the struct xt_list_node * to use as a loop cursor.
: another struct xt_list_node * to use as temporary storage @head: the head for your list.
| #define XT_LIST_OBJECT_INIT | ( | object | ) |
| #define xt_slist_entry | ( | node, | |
| type, | |||
| member ) |
get the struct for this single list node
| node | the entry point |
| type | the type of structure |
| member | the name of list in structure |
| #define xt_slist_first_entry | ( | ptr, | |
| type, | |||
| member ) |
xt_slist_first_entry - get the first element from a slist @ptr: the slist head to take the element from. @type: the type of the struct this is embedded in. @member: the name of the slist_struct within the struct.
Note, that slist is expected to be not empty.
| #define xt_slist_for_each | ( | pos, | |
| head ) |
xt_slist_for_each - iterate over a single list @pos: the struct xt_slist_node * to use as a loop cursor. @head: the head for your single list.
| #define xt_slist_for_each_entry | ( | pos, | |
| head, | |||
| member ) |
xt_slist_for_each_entry - iterate over single list of given type @pos: the type * to use as a loop cursor. @head: the head for your single list. @member: the name of the list_struct within the struct.
| #define xt_slist_tail_entry | ( | ptr, | |
| type, | |||
| member ) |
xt_slist_tail_entry - get the tail element from a slist @ptr: the slist head to take the element from. @type: the type of the struct this is embedded in. @member: the name of the slist_struct within the struct.
Note, that slist is expected to be not empty.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |