Home
last modified time | relevance | path

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

/systemd-251/src/basic/ !
Dlist.h16 #define LIST_HEAD_INIT(head) \ argument
18 (head) = NULL; \
30 #define LIST_PREPEND(name,head,item) \ argument
32 typeof(*(head)) **_head = &(head), *_item = (item); \
41 #define LIST_APPEND(name,head,item) \ argument
43 typeof(*(head)) **_hhead = &(head), *_tail; \
49 #define LIST_REMOVE(name,head,item) \ argument
51 typeof(*(head)) **_head = &(head), *_item = (item); \
65 #define LIST_FIND_HEAD(name,item,head) \ argument
69 (head) = NULL; \
[all …]
/systemd-251/src/test/ !
Dtest-list.c11 LIST_HEAD(list_item, head); in main()
15 LIST_HEAD_INIT(head); in main()
17 assert_se(head == NULL); in main()
23 LIST_PREPEND(item, head, &items[i]); in main()
47 assert_se(!LIST_JUST_US(item, head)); in main()
66 LIST_REMOVE(item, head, &items[1]); in main()
77 LIST_INSERT_AFTER(item, head, &items[3], &items[1]); in main()
88 LIST_REMOVE(item, head, &items[1]); in main()
99 LIST_INSERT_BEFORE(item, head, &items[2], &items[1]); in main()
110 LIST_REMOVE(item, head, &items[0]); in main()
[all …]
/systemd-251/coccinelle/ !
Dmacros.h63 #define LIST_HEAD_INIT(head) \ argument
65 (head) = NULL; \
73 #define LIST_PREPEND(name,head,item) \ argument
75 typeof(*(head)) **_head = &(head), *_item = (item); \
82 #define LIST_APPEND(name,head,item) \ argument
84 typeof(*(head)) **_hhead = &(head), *_tail; \
88 #define LIST_REMOVE(name,head,item) \ argument
90 typeof(*(head)) **_head = &(head), *_item = (item); \
102 #define LIST_FIND_HEAD(name,item,head) \ argument
106 (head) = NULL; \
[all …]
/systemd-251/src/shutdown/ !
Dumount.c45 static void mount_point_free(MountPoint **head, MountPoint *m) { in mount_point_free() argument
46 assert(head); in mount_point_free()
49 LIST_REMOVE(mount_point, *head, m); in mount_point_free()
56 void mount_points_list_free(MountPoint **head) { in mount_points_list_free() argument
57 assert(head); in mount_points_list_free()
59 while (*head) in mount_points_list_free()
60 mount_point_free(head, *head); in mount_points_list_free()
63 int mount_points_list_get(const char *mountinfo, MountPoint **head) { in mount_points_list_get() argument
68 assert(head); in mount_points_list_get()
171 LIST_PREPEND(mount_point, *head, TAKE_PTR(m)); in mount_points_list_get()
[all …]
Dumount.h30 int mount_points_list_get(const char *mountinfo, MountPoint **head);
31 void mount_points_list_free(MountPoint **head);
32 int swap_list_get(const char *swaps, MountPoint **head);
/systemd-251/src/libsystemd/sd-hwdb/ !
Dsd-hwdb.c70 base += le64toh(hwdb->head->node_size); in trie_node_child()
71 base += idx * le64toh(hwdb->head->child_entry_size); in trie_node_child()
78 base += le64toh(hwdb->head->node_size); in trie_node_value()
79 base += node->children_count * le64toh(hwdb->head->child_entry_size); in trie_node_value()
80 base += idx * le64toh(hwdb->head->value_entry_size); in trie_node_value()
104 …child = bsearch(&search, (const char *)node + le64toh(hwdb->head->node_size), node->children_count, in node_lookup_f()
105 le64toh(hwdb->head->child_entry_size), trie_children_cmp_f); in node_lookup_f()
128 if (le64toh(hwdb->head->value_entry_size) >= sizeof(struct trie_value_entry2_f)) { in hwdb_add_property()
222 node = trie_node_from_off(hwdb, hwdb->head->nodes_root_off); in trie_search_f()
324 if (memcmp(hwdb->map, sig, sizeof(hwdb->head->signature)) != 0 || in sd_hwdb_new()
[all …]
Dhwdb-internal.h18 struct trie_header_f *head; member
/systemd-251/test/units/ !
Dtestsuite-04.sh84 journalctl -q -b-1 -b0 | head -1 >/expected
85 journalctl -q -b-1 -b | head -1 >/output
88 { journalctl -ball -b0 -m 2>&1 || :; } | head -1 >/expected
89 { journalctl -ball -b -m 2>&1 || :; } | head -1 >/output
142 journalctl --follow --file=/var/log/journal/*/* | head -n1 || [[ $? -eq 1 ]]
Dtestsuite-50.sh198 ROOT_UUID="$(systemd-id128 -u show "$(head -c 32 "${image}.roothash")" -u | tail -n 1 | cut -b 6-)"
/systemd-251/src/core/ !
Dbpf-socket-bind.c28 CGroupSocketBindItem *head) { in update_rules_map() argument
34 LIST_FOREACH(socket_bind_items, item, head) { in update_rules_map()
Dtransaction.c556 Job *head; in transaction_minimize_impact() local
564 HASHMAP_FOREACH(head, tr->jobs) { in transaction_minimize_impact()
565 LIST_FOREACH(transaction, j, head) { in transaction_minimize_impact()
Dcgroup.h236 void cgroup_context_remove_socket_bind(CGroupSocketBindItem **head);
Dcgroup.c233 void cgroup_context_remove_socket_bind(CGroupSocketBindItem **head) { in cgroup_context_remove_socket_bind() argument
234 assert(head); in cgroup_context_remove_socket_bind()
236 while (*head) { in cgroup_context_remove_socket_bind()
237 CGroupSocketBindItem *h = *head; in cgroup_context_remove_socket_bind()
238 LIST_REMOVE(socket_bind_items, *head, h); in cgroup_context_remove_socket_bind()
Dload-fragment.c5918 CGroupSocketBindItem **head = data; in config_parse_cgroup_socket_bind() local
5923 cgroup_context_remove_socket_bind(head); in config_parse_cgroup_socket_bind()
5946 LIST_PREPEND(socket_bind_items, *head, TAKE_PTR(item)); in config_parse_cgroup_socket_bind()
/systemd-251/src/shared/ !
Dcondition.c92 Condition* condition_free_list_type(Condition *head, ConditionType type) { in condition_free_list_type() argument
93 LIST_FOREACH(conditions, c, head) in condition_free_list_type()
95 LIST_REMOVE(conditions, head, c); in condition_free_list_type()
99 assert(type >= 0 || !head); in condition_free_list_type()
100 return head; in condition_free_list_type()
/systemd-251/src/journal/ !
Djournalctl.c1336 BootId *head = NULL, *tail = NULL; in get_boots() local
1407 boot_id_free_all(head); in get_boots()
1427 LIST_FOREACH(boot_list, id, head) { in get_boots()
1434 LIST_INSERT_AFTER(boot_list, head, tail, current); in get_boots()
1442 *boots = head; in get_boots()
/systemd-251/src/udev/ !
Dudev-rules.c2425 UdevRuleToken *head; in udev_rule_apply_parent_token_to_event() local
2433 head = ASSERT_PTR(rules->current_file->current_line->current_token); in udev_rule_apply_parent_token_to_event()
2437 LIST_FOREACH(tokens, token, head) { in udev_rule_apply_parent_token_to_event()
/systemd-251/test/ !
Dtest-functions151 head
728 local fixfiles_tools=(bash uname cat sort uniq awk grep egrep head expr find rm secon setfiles)
/systemd-251/docs/ !
DJOURNAL_FILE_FORMAT.md453 field name. It is the head of a singly linked list using DATA's
521 offsets to the head and tail of the singly linked list of the DATA and FIELD
DHACKING.md110 And after that, head over to your repo on GitHub and click "Compare & pull request"
/systemd-251/hwdb.d/ !
Dma-small.txt3665 00-1B-C5 (hex) head
3666 07C000-07CFFF (base 16) head
D20-OUI.hwdb21621 ID_OUI_FROM_DATABASE=head