Searched refs:item (Results 1 - 25 of 26) sorted by relevance

12

/systemd/src/test/
H A Dtest-list.c26 LIST_FIELDS(struct list_item, item);
36 LIST_INIT(item, &items[i]);
37 assert_se(LIST_JUST_US(item, &items[i]));
38 LIST_PREPEND(item, head, &items[i]);
42 LIST_FOREACH_OTHERS(item, cursor, &items[2]) {
49 LIST_FOREACH_OTHERS(item, cursor, &items[0]) {
56 LIST_FOREACH_OTHERS(item, cursor, &items[3]) {
62 assert_se(!LIST_JUST_US(item, head));
74 LIST_FIND_HEAD(item, &items[0], cursor);
77 LIST_FIND_TAIL(item,
[all...]
/systemd/src/login/
H A Dsysfs-show.c37 struct udev_list_entry **item,
44 assert(item);
47 while (*item) {
54 sysfs = udev_list_entry_get_name(*item);
60 *item = udev_list_entry_get_next(*item);
70 *item = udev_list_entry_get_next(*item);
83 lookahead = next = udev_list_entry_get_next(*item);
129 *item
34 show_sysfs_one( struct udev *udev, const char *seat, struct udev_list_entry **item, const char *sub, const char *prefix, unsigned n_columns) argument
[all...]
H A Dlogind-acl.c184 struct udev_list_entry *item = NULL, *first = NULL; local
223 udev_list_entry_foreach(item, first) {
227 d = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
H A Dlogind-core.c457 struct udev_list_entry *item = NULL, *first = NULL; local
474 udev_list_entry_foreach(item, first) {
480 d = udev_device_new_from_syspath(m->udev, udev_list_entry_get_name(item));
499 * the sysfs name, as the second dash seperated item
H A Dlogind.c189 struct udev_list_entry *item = NULL, *first = NULL; local
215 udev_list_entry_foreach(item, first) {
219 d = udev_device_new_from_syspath(m->udev, udev_list_entry_get_name(item));
233 struct udev_list_entry *item = NULL, *first = NULL; local
268 udev_list_entry_foreach(item, first) {
272 d = udev_device_new_from_syspath(m->udev, udev_list_entry_get_name(item));
/systemd/src/resolve/
H A Dresolved-etc-hosts.c47 EtcHostsItem *item; local
50 while ((item = set_steal_first(m->etc_hosts_by_address))) {
51 strv_free(item->names);
52 free(item);
68 const EtcHostsItem *item = p; local
70 siphash24_compress(&item->family, sizeof(item->family), state);
72 if (item->family == AF_INET)
73 siphash24_compress(&item->address.in, sizeof(item
104 EtcHostsItem *item; local
350 EtcHostsItem *item; local
[all...]
/systemd/src/basic/
H A Dlist.h27 /* The pointers in the linked list's items. Use this in the item structure */
37 /* Initialize a list item */
38 #define LIST_INIT(name,item) \
40 typeof(*(item)) *_item = (item); \
45 /* Prepend an item to the list */
46 #define LIST_PREPEND(name,head,item) \
48 typeof(*(head)) **_head = &(head), *_item = (item); \
56 /* Append an item to the list */
57 #define LIST_APPEND(name,head,item) \
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-control.c262 struct kdbus_item *item; local
279 KDBUS_ITEM_FOREACH(item, name, items) {
280 if (item->type == KDBUS_ITEM_OWNED_NAME) {
281 if (service_name_is_valid(item->name.name)) {
282 r = strv_extend(x, item->name.name);
403 struct kdbus_item *item; local
411 KDBUS_ITEM_FOREACH(item, info, items) {
413 switch (item->type) {
417 if (mask & SD_BUS_CREDS_PID && item->pids.pid > 0) {
418 c->pid = (pid_t) item
1054 struct kdbus_item *item; local
1226 struct kdbus_item *item; local
[all...]
H A Dbus-kernel.h26 #define KDBUS_ITEM_NEXT(item) \
27 (typeof(item))(((uint8_t *)item) + ALIGN8((item)->size))
H A Dbus-kernel.c812 * and the sender had none no item for it will be
887 struct kdbus_item *items, *item; local
963 item = hello->items;
965 item->size = offsetof(struct kdbus_item, str) + m + 1;
966 item->type = KDBUS_ITEM_CONN_DESCRIPTION;
967 memcpy(item->str, name, m + 1);
968 item = KDBUS_ITEM_NEXT(item);
971 item->size = offsetof(struct kdbus_item, creds) + sizeof(struct kdbus_creds);
972 item
1797 struct kdbus_item *item; local
[all...]
/systemd/src/core/
H A Dbus-policy.c50 int bus_kernel_translate_policy(const BusNamePolicy *policy, struct kdbus_item *item) { argument
54 assert(item);
66 item->policy_access.type = KDBUS_POLICY_ACCESS_USER;
67 item->policy_access.id = uid;
79 item->policy_access.type = KDBUS_POLICY_ACCESS_GROUP;
80 item->policy_access.id = gid;
88 item->policy_access.access = bus_kernel_translate_access(policy->access);
H A Dbus-policy.h53 int bus_kernel_translate_policy(const BusNamePolicy *policy, struct kdbus_item *item);
H A Dumount.c202 struct udev_list_entry *item = NULL, *first = NULL; local
233 udev_list_entry_foreach(item, first) {
239 d = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
266 struct udev_list_entry *item = NULL, *first = NULL; local
293 udev_list_entry_foreach(item, first) {
300 d = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
H A Ddevice.c380 struct udev_list_entry *item = NULL, *first = NULL; local
401 udev_list_entry_foreach(item, first) {
406 p = udev_list_entry_get_name(item);
611 struct udev_list_entry *item = NULL, *first = NULL; local
674 udev_list_entry_foreach(item, first) {
678 sysfs = udev_list_entry_get_name(item);
H A Dswap.c433 struct udev_list_entry *item = NULL, *first = NULL; local
460 udev_list_entry_foreach(item, first) {
464 p = udev_list_entry_get_name(item);
1321 struct udev_list_entry *item = NULL, *first = NULL; local
1343 udev_list_entry_foreach(item, first) {
1347 q = unit_name_from_path(udev_list_entry_get_name(item), ".swap", &n);
H A Ddbus-manager.c1447 UnitFileList *item; local
1477 HASHMAP_FOREACH(item, h, i) {
1479 r = sd_bus_message_append(reply, "(ss)", item->path, unit_file_state_to_string(item->state));
/systemd/src/tmpfiles/
H A Dtmpfiles.c222 Item *item = j->items + n; local
224 if (fnmatch(item->path, match, FNM_PATHNAME|FNM_PERIOD) == 0)
225 return item;
428 /* Is there an item configured for this path? */
732 static int parse_acls_from_arg(Item *item) { argument
736 assert(item);
741 r = parse_acl(item->argument, &item->acl_access, &item->acl_default, !item
797 path_set_acls(Item *item, const char *path) argument
854 parse_attribute_from_arg(Item *item) argument
940 path_set_attribute(Item *item, const char *path) argument
[all...]
/systemd/src/backlight/
H A Dbacklight.c106 struct udev_list_entry *item = NULL, *first = NULL; local
157 udev_list_entry_foreach(item, first) {
162 other = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
/systemd/src/journal/
H A Dsd-journal.c964 char *item; local
970 item = strndup(word, l);
971 if (!item)
978 k = sd_id128_from_string(item+2, &seqnum_id);
983 if (sscanf(item+2, "%llx", &seqnum) != 1)
989 k = sd_id128_from_string(item+2, &boot_id);
994 if (sscanf(item+2, "%llx", &monotonic) != 1)
1000 if (sscanf(item+2, "%llx", &realtime) != 1)
1006 if (sscanf(item+2, "%llx", &xor_hash) != 1)
1011 free(item);
1067 _cleanup_free_ char *item = NULL; local
[all...]
H A Dcatalog.c188 /* Already have such an item, combine them */
198 /* A new item */
737 char **item; local
740 STRV_FOREACH(item, items) {
745 k = sd_id128_from_string(*item, &id);
747 log_error_errno(k, "Failed to parse id128 '%s': %m", *item);
756 "Failed to retrieve catalog entry for '%s': %m", *item);
/systemd/src/firstboot/
H A Dfirstboot.c516 struct spwd item = { local
587 item.sp_pwdp = crypt(arg_root_password, salt);
588 if (!item.sp_pwdp) {
595 item.sp_lstchg = (long) (now(CLOCK_REALTIME) / USEC_PER_DAY);
597 r = write_root_shadow(etc_shadow, &item);
/systemd/src/bus-proxyd/
H A Ddriver.c466 struct kdbus_item *item; local
469 KDBUS_ITEM_FOREACH(item, name, items) {
470 if (item->type == KDBUS_ITEM_OWNED_NAME) {
471 if (!streq_ptr(item->name.name, arg0))
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c562 struct udev_list_entry *first, *item; local
683 udev_list_entry_foreach(item, first) {
692 q = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
/systemd/src/udev/
H A Dudevd.c1031 struct udev_list_entry *item; local
1067 udev_list_entry_foreach(item, udev_enumerate_get_list_entry(e)) {
1070 d = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
1097 udev_list_entry_foreach(item, udev_enumerate_get_list_entry(e)) {
1100 d = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));
/systemd/src/nspawn/
H A Dnspawn.c1784 struct udev_list_entry *first, *item; local
1885 udev_list_entry_foreach(item, first)
1935 udev_list_entry_foreach(item, first) {
1944 q = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item));

Completed in 100 milliseconds

12