Home
last modified time | relevance | path

Searched refs:head (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/include/sys/
Dqueue.h89 #define LIST_HEAD_INITIALIZER(head) \ argument
101 #define LIST_INIT(head) do { \ argument
102 (head)->lh_first = NULL; \
120 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
121 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
122 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
123 (head)->lh_first = (elm); \
124 (elm)->field.le_prev = &(head)->lh_first; \
134 #define LIST_FOREACH(var, head, field) \ argument
135 for ((var) = ((head)->lh_first); \
[all …]
/bionic/libc/kernel/common/linux/
Dplist.h36 #define PLIST_HEAD_INIT(head, _lock) { .prio_list = LIST_HEAD_INIT((head).prio_list), .node_li… argument
39 #define plist_for_each(pos, head) list_for_each_entry(pos, &(head)->node_list, plist.node_list) argument
40 #define plist_for_each_safe(pos, n, head) list_for_each_entry_safe(pos, n, &(head)->node_list, pl… argument
41 #define plist_for_each_entry(pos, head, mem) list_for_each_entry(pos, &(head)->node_list, mem.pli… argument
42 #define plist_for_each_entry_safe(pos, n, head, m) list_for_each_entry_safe(pos, n, &(head)->node… argument
44 #define plist_first_entry(head, type, member) container_of(plist_first(head), type, member) argument
Dcirc_buf.h24 int head; member
27 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) argument
29 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) argument
30 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & (… argument
31 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail… argument
Dnotifier.h34 struct notifier_block *head; member
39 struct notifier_block *head; member
42 struct notifier_block *head; member
45 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { spin_lock_init(&(name)->lock); (name)->head = NULL…
46 #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { init_rwsem(&(name)->rwsem); (name)->head = NULL;…
47 #define RAW_INIT_NOTIFIER_HEAD(name) do { (name)->head = NULL; } while (0)
49 #define ATOMIC_NOTIFIER_INIT(name) { .lock = __SPIN_LOCK_UNLOCKED(name.lock), .head = NULL }
50 #define BLOCKING_NOTIFIER_INIT(name) { .rwsem = __RWSEM_INITIALIZER((name).rwsem), .head = NULL…
51 #define RAW_NOTIFIER_INIT(name) { .head = NULL }
Dgenhd.h49 unsigned char head; member
Dfd.h27 head, member
62 unsigned int device,head,track; member
Dskbuff.h160 unsigned char *head, member
/bionic/libc/private/isc/
Dlist.h24 #define LIST(type) struct { type *head, *tail; }
26 do { (list).head = NULL; (list).tail = NULL; } while (/*CONSTCOND*/0)
38 #define HEAD(list) ((list).head)
40 #define EMPTY(list) ((list).head == NULL)
45 if ((list).head != NULL) \
46 (list).head->link.prev = (elt); \
50 (elt)->link.next = (list).head; \
51 (list).head = (elt); \
60 (list).head = (elt); \
76 (list).head = (elt)->link.next; \
/bionic/libc/bionic/
Dmalloc_debug_check.cpp117 static hdr_t *head; variable
186 static inline void add_locked(hdr_t *hdr, hdr_t **tail, hdr_t **head) { in add_locked() argument
188 hdr->next = *head; in add_locked()
189 if (*head) in add_locked()
190 (*head)->prev = hdr; in add_locked()
193 *head = hdr; in add_locked()
196 static inline int del_locked(hdr_t *hdr, hdr_t **tail, hdr_t **head) { in del_locked() argument
200 *head = hdr->next; in del_locked()
217 add_locked(hdr, &tail, &head); in add()
226 del_locked(hdr, &tail, &head); in del()
[all …]
Dfts.c546 FTSENT *p, *head; in fts_build() local
648 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { in fts_build()
665 fts_lfree(head); in fts_build()
691 fts_lfree(head); in fts_build()
733 if (head == NULL) in fts_build()
734 head = tail = p; in fts_build()
749 fts_padjust(sp, head); in fts_build()
785 head = fts_sort(sp, head, nitems); in fts_build()
786 return (head); in fts_build()
859 fts_sort(FTS *sp, FTSENT *head, int nitems) in fts_sort() argument
[all …]
Dmalloc_debug_common.cpp163 uint8_t* head = *info; in get_malloc_leak_info() local
170 memset(head + entrySize, 0, *infoSize - entrySize); in get_malloc_leak_info()
175 memcpy(head, &(entry->size), entrySize); in get_malloc_leak_info()
176 head += *infoSize; in get_malloc_leak_info()
/bionic/libc/kernel/common/linux/sunrpc/
Dsched.h94 #define task_for_each(task, pos, head) list_for_each(pos, head) if ((task=list_entry(pos, struc… argument
95 #define task_for_first(task, head) if (!list_empty(head) && ((task=list_entry((head)->next, str… argument
96 #define alltask_for_each(task, pos, head) list_for_each(pos, head) if ((task=list_entry(pos, st… argument
Dxprt.h80 #define rq_svec rq_snd_buf.head
/bionic/libc/kernel/common/linux/mtd/
Dnftl.h46 int head,sect,cyl; member
/bionic/libc/kernel/common/linux/raid/
Dmd_k.h199 …ERIC(head,rdev,tmp) for ((tmp) = (head).next; (rdev) = (list_entry((tmp), mdk_rdev_t, same_s… argument
/bionic/libc/upstream-dlmalloc/
Dmalloc.c2186 size_t head; /* Size and inuse bits. */ member
2256 #define cinuse(p) ((p)->head & CINUSE_BIT)
2257 #define pinuse(p) ((p)->head & PINUSE_BIT)
2258 #define flag4inuse(p) ((p)->head & FLAG4_BIT)
2259 #define is_inuse(p) (((p)->head & INUSE_BITS) != PINUSE_BIT)
2260 #define is_mmapped(p) (((p)->head & INUSE_BITS) == 0)
2262 #define chunksize(p) ((p)->head & ~(FLAG_BITS))
2264 #define clear_pinuse(p) ((p)->head &= ~PINUSE_BIT)
2265 #define set_flag4(p) ((p)->head |= FLAG4_BIT)
2266 #define clear_flag4(p) ((p)->head &= ~FLAG4_BIT)
[all …]