Home
last modified time | relevance | path

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

/bionic/libc/include/sys/
Dqueue.h91 #define LIST_HEAD_INITIALIZER(head) \ argument
103 #define LIST_INIT(head) do { \ argument
104 (head)->lh_first = NULL; \
122 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
123 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
124 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
125 (head)->lh_first = (elm); \
126 (elm)->field.le_prev = &(head)->lh_first; \
136 #define LIST_FOREACH(var, head, field) \ argument
137 for ((var) = ((head)->lh_first); \
[all …]
/bionic/linker/
Dlinked_list.h86 LinkedListEntry<T>* head; member
109 return header_ == nullptr || header_->head == nullptr; in empty()
115 new_entry->next = header_->head; in push_front()
117 header_->head = new_entry; in push_front()
129 header_->tail = header_->head = new_entry; in push_back()
139 LinkedListEntry<T>* entry = header_->head; in pop_front()
141 header_->head = entry->next; in pop_front()
144 if (header_->head == nullptr) { in pop_front()
152 return empty() ? nullptr : header_->head->element; in front()
158 while (header_->head != nullptr) { in clear()
[all …]
/bionic/libc/bionic/
Dandroid_crash_detail.cpp59 if (crash_detail_t* head = atomic_load(&free_head)) { in android_crash_detail_register() local
60 while (head != nullptr && !atomic_compare_exchange_strong(&free_head, &head, head->prev_free)) { in android_crash_detail_register()
63 if (head) { in android_crash_detail_register()
64 head->prev_free = nullptr; in android_crash_detail_register()
65 populate_crash_detail(head); in android_crash_detail_register()
66 return head; in android_crash_detail_register()
Dfts.c549 FTSENT *p, *head; in fts_build() local
651 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { in fts_build()
667 fts_lfree(head); in fts_build()
693 fts_lfree(head); in fts_build()
736 if (head == NULL) in fts_build()
737 head = tail = p; in fts_build()
752 fts_padjust(sp, head); in fts_build()
788 head = fts_sort(sp, head, nitems); in fts_build()
789 return (head); in fts_build()
869 fts_sort(FTS *sp, FTSENT *head, int nitems) in fts_sort() argument
[all …]
Dspawn.cpp118 __posix_spawn_file_action* head; member
122 for (__posix_spawn_file_action* action = head; action != nullptr; action = action->next) { in Do()
326 __posix_spawn_file_action* a = (*actions)->head; in posix_spawn_file_actions_destroy()
365 if ((*actions)->head == nullptr) { in posix_spawn_add_file_action()
366 (*actions)->head = (*actions)->last = action; in posix_spawn_add_file_action()
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Dlist.h24 #define LIST(type) struct { type *head, *tail; }
26 do { (list).head = NULL; (list).tail = NULL; } while (0)
39 #define HEAD(list) ((list).head)
41 #define EMPTY(list) ((list).head == NULL)
46 if ((list).head != NULL) \
47 (list).head->link.prev = (elt); \
51 (elt)->link.next = (list).head; \
52 (list).head = (elt); \
61 (list).head = (elt); \
79 INSIST((list).head == (elt)); \
[all …]
/bionic/tests/
Dsearch_test.cpp178 q_node* head = &zero; in TEST() local
181 ASSERT_EQ(0, head->i); in TEST()
182 ASSERT_EQ(2, head->next->i); in TEST()
183 ASSERT_EQ(nullptr, head->next->next); in TEST()
186 ASSERT_EQ(0, head->i); in TEST()
187 ASSERT_EQ(nullptr, head->next); in TEST()
199 ASSERT_EQ(0, head->i); in TEST()
200 ASSERT_EQ(1, head->next->i); in TEST()
201 ASSERT_EQ(2, head->next->next->i); in TEST()
202 ASSERT_EQ(0, head->next->next->next->i); in TEST()
[all …]
/bionic/libc/kernel/uapi/asm-arm64/asm/
Dsigcontext.h25 struct _aarch64_ctx head; member
32 struct _aarch64_ctx head; member
37 struct _aarch64_ctx head; member
44 struct _aarch64_ctx head; member
52 struct _aarch64_ctx head; member
57 struct _aarch64_ctx head; member
62 struct _aarch64_ctx head; member
68 struct _aarch64_ctx head; member
/bionic/libc/kernel/uapi/linux/
Dvirtio_iommu.h57 struct virtio_iommu_req_head head; member
65 struct virtio_iommu_req_head head; member
76 struct virtio_iommu_req_head head; member
85 struct virtio_iommu_req_head head; member
102 struct virtio_iommu_probe_property head; member
109 struct virtio_iommu_req_head head; member
Dfd.h12 unsigned int size, sect, head, track, stretch; member
39 unsigned int device, head, track; member
Dio_uring.h236 __u32 head; member
250 __u32 head; member
409 __u32 head; member
/bionic/libc/kernel/uapi/rdma/
Drvt-abi.h20 RDMA_ATOMIC_UAPI(__u32, head);
31 RDMA_ATOMIC_UAPI(__u32, head);