Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 87) sorted by relevance

1234

/systemd-251/src/libsystemd/sd-bus/
Dbus-match.c60 static void bus_match_node_free(struct bus_match_node *node) { in bus_match_node_free() argument
61 assert(node); in bus_match_node_free()
62 assert(node->parent); in bus_match_node_free()
63 assert(!node->child); in bus_match_node_free()
64 assert(node->type != BUS_MATCH_ROOT); in bus_match_node_free()
65 assert(node->type < _BUS_MATCH_NODE_TYPE_MAX); in bus_match_node_free()
67 if (node->parent->child) { in bus_match_node_free()
70 if (node->prev) { in bus_match_node_free()
71 assert(node->prev->next == node); in bus_match_node_free()
72 node->prev->next = node->next; in bus_match_node_free()
[all …]
Dbus-slot.c84 if (slot->node_callback.node) { in bus_slot_disconnect()
85 … LIST_REMOVE(callbacks, slot->node_callback.node->callbacks, &slot->node_callback); in bus_slot_disconnect()
88 bus_node_gc(slot->bus, slot->node_callback.node); in bus_slot_disconnect()
95 if (slot->node_enumerator.node) { in bus_slot_disconnect()
96 … LIST_REMOVE(enumerators, slot->node_enumerator.node->enumerators, &slot->node_enumerator); in bus_slot_disconnect()
99 bus_node_gc(slot->bus, slot->node_enumerator.node); in bus_slot_disconnect()
106 if (slot->node_object_manager.node) { in bus_slot_disconnect()
107 …LIST_REMOVE(object_managers, slot->node_object_manager.node->object_managers, &slot->node_object_m… in bus_slot_disconnect()
110 bus_node_gc(slot->bus, slot->node_object_manager.node); in bus_slot_disconnect()
117 … if (slot->node_vtable.node && slot->node_vtable.interface && slot->node_vtable.vtable) { in bus_slot_disconnect()
[all …]
Dbus-internal.h56 struct node { struct
58 struct node *parent; argument
59 LIST_HEAD(struct node, child);
60 LIST_FIELDS(struct node, siblings);
69 struct node *node; member
80 struct node *node; member
90 struct node *node; member
96 struct node *node; member
Dbus-objects.c170 struct node *n, in add_subtree_to_set()
218 struct node *n, in get_child_nodes()
880 struct node *n, in bus_node_exists()
922 struct node *n, in introspect_path()
1005 struct node *n, in process_introspect()
1051 struct node *n; in object_manager_serialize_path()
1217 struct node *n, in process_get_managed_objects()
1280 struct node *n; in object_find_and_run()
1474 static struct node* bus_node_allocate(sd_bus *bus, const char *path) { in bus_node_allocate()
1475 struct node *n, *parent; in bus_node_allocate()
[all …]
/systemd-251/hwdb.d/
D80-ieee1394-unit-function.hwdb5 # Each node on IEEE 1394 bus has configuration ROM with information for identification. Although the
7 # quirks. This database includes supplemental information to unit in the node.
11 # One entry has two keys. One is customized key to match a node. Another is for kernel alias to
12 # match an unit included in the node.
14 # The customized key has two formats according to whether the node has model attribute:
18 # Even when the node has multiple units, the entry should match to one of the units. In the case,
24 # uses lower-case value for attributes of sysfs node, and systemd-hwdb parses the custom key by
29 # corresponding to node including the unit. At present, below variables are supported:
48 ieee1394:node:ven*mo*units*0x00a02d:0x010001*
58 ieee1394:node:ven*mo*units*0x00a02d:0x014000*
[all …]
/systemd-251/src/shared/
Dhwdb-util.c78 static int node_add_child(struct trie *trie, struct trie_node *node, struct trie_node *node_child, … in node_add_child() argument
82 … child = reallocarray(node->children, node->children_count + 1, sizeof(struct trie_child_entry)); in node_add_child()
86 node->children = child; in node_add_child()
88 node->children[node->children_count].c = c; in node_add_child()
89 node->children[node->children_count].child = node_child; in node_add_child()
90 node->children_count++; in node_add_child()
91 typesafe_qsort(node->children, node->children_count, trie_children_cmp); in node_add_child()
97 static struct trie_node *node_lookup(const struct trie_node *node, uint8_t c) { in node_lookup() argument
102 child = typesafe_bsearch(&search, node->children, node->children_count, trie_children_cmp); in node_lookup()
108 static void trie_node_cleanup(struct trie_node *node) { in trie_node_cleanup() argument
[all …]
Dfind-esp.c36 _cleanup_free_ char *node = NULL; in verify_esp_blkid() local
40 r = device_path_make_major_minor(S_IFBLK, devid, &node); in verify_esp_blkid()
45 b = blkid_new_probe_from_filename(node); in verify_esp_blkid()
47 …n log_error_errno(errno ?: SYNTHETIC_ERRNO(ENOMEM), "Failed to open file system \"%s\": %m", node); in verify_esp_blkid()
57 … return log_error_errno(SYNTHETIC_ERRNO(ENODEV), "File system \"%s\" is ambiguous.", node); in verify_esp_blkid()
59 …urn log_error_errno(SYNTHETIC_ERRNO(ENODEV), "File system \"%s\" does not contain a label.", node); in verify_esp_blkid()
61 …urn log_error_errno(errno ?: SYNTHETIC_ERRNO(EIO), "Failed to probe file system \"%s\": %m", node); in verify_esp_blkid()
67 "No filesystem found on \"%s\": %m", node); in verify_esp_blkid()
71 "File system \"%s\" is not FAT.", node); in verify_esp_blkid()
77 … "File system \"%s\" is not located on a partitioned block device.", node); in verify_esp_blkid()
[all …]
Dgenerator.c245 _cleanup_free_ char *node = NULL, *unit = NULL, *timeout = NULL; in generator_write_timeouts() local
265 node = fstab_node_to_udev_node(what); in generator_write_timeouts()
266 if (!node) in generator_write_timeouts()
268 if (!is_device_path(node)) { in generator_write_timeouts()
273 r = unit_name_from_path(node, ".device", &unit); in generator_write_timeouts()
298 _cleanup_free_ char *node = NULL, *unit = NULL; in generator_write_device_deps() local
307 node = fstab_node_to_udev_node(what); in generator_write_device_deps()
308 if (!node) in generator_write_device_deps()
312 if (!is_device_path(node)) in generator_write_device_deps()
315 r = unit_name_from_path(node, ".device", &unit); in generator_write_device_deps()
[all …]
Dmkfs-util.c90 const char *node, in make_filesystem() argument
100 assert(node); in make_filesystem()
164 node, NULL); in make_filesystem()
175 node, NULL); in make_filesystem()
182 node, in make_filesystem()
194 node, in make_filesystem()
207 node, in make_filesystem()
217 node, NULL); in make_filesystem()
226 node, NULL); in make_filesystem()
230 (void) execlp(mkfs, mkfs, node, NULL); in make_filesystem()
[all …]
Dnuma-util.c36 unsigned node, bits = 0, ulong_bits; in numa_policy_to_mempolicy() local
59 for (node = 0; node < bits; node++) in numa_policy_to_mempolicy()
60 if (CPU_ISSET_S(node, policy->nodes.allocated, policy->nodes.set)) in numa_policy_to_mempolicy()
61 out[node / ulong_bits] |= 1ul << (node % ulong_bits); in numa_policy_to_mempolicy()
138 int node; in numa_max_node() local
148 r = safe_atoi(n, &node); in numa_max_node()
152 if (node > max_node) in numa_max_node()
153 max_node = node; in numa_max_node()
Ddissect-image.c76 int probe_filesystem(const char *node, char **ret_fstype) { in probe_filesystem() argument
87 b = blkid_new_probe_from_filename(node); in probe_filesystem()
100 "Results ambiguous for partition %s", node); in probe_filesystem()
102 … return log_debug_errno(errno_or_else(EIO), "Failed to probe partition %s: %m", node); in probe_filesystem()
109 log_debug("Probed fstype '%s' on partition %s.", fstype, node); in probe_filesystem()
120 log_debug("No type detected on partition %s", node); in probe_filesystem()
130 const char *node, in check_partition_flags() argument
134 assert(node); in check_partition_flags()
148 log_debug("Unexpected partition flag %llu set on %s!", bit, node); in check_partition_flags()
157 free(p->node); in dissected_partition_done()
[all …]
Ddevnode-acl.c171 const char *node, *sn; in devnode_acl_all() local
184 if (sd_device_get_devname(d, &node) < 0) in devnode_acl_all()
187 log_device_debug(d, "Found udev node %s for seat %s", node, seat); in devnode_acl_all()
188 r = set_put_strdup(&nodes, node); in devnode_acl_all()
/systemd-251/src/basic/
Dstrbuf.c50 static struct strbuf_node* strbuf_node_cleanup(struct strbuf_node *node) { in strbuf_node_cleanup() argument
53 for (i = 0; i < node->children_count; i++) in strbuf_node_cleanup()
54 strbuf_node_cleanup(node->children[i].child); in strbuf_node_cleanup()
55 free(node->children); in strbuf_node_cleanup()
56 return mfree(node); in strbuf_node_cleanup()
82 static void bubbleinsert(struct strbuf_node *node, in bubbleinsert() argument
90 int left = 0, right = node->children_count; in bubbleinsert()
94 if (strbuf_children_cmp(&node->children[middle], &new) <= 0) in bubbleinsert()
100 memmove(node->children + left + 1, node->children + left, in bubbleinsert()
101 sizeof(struct strbuf_child_entry) * (node->children_count - left)); in bubbleinsert()
[all …]
/systemd-251/src/libsystemd/sd-hwdb/
Dsd-hwdb.c67 …ct trie_child_entry_f *trie_node_child(sd_hwdb *hwdb, const struct trie_node_f *node, size_t idx) { in trie_node_child() argument
68 const char *base = (const char *)node; in trie_node_child()
75 …ct trie_value_entry_f *trie_node_value(sd_hwdb *hwdb, const struct trie_node_f *node, size_t idx) { in trie_node_value() argument
76 const char *base = (const char *)node; in trie_node_value()
79 base += node->children_count * le64toh(hwdb->head->child_entry_size); in trie_node_value()
99 static const struct trie_node_f *node_lookup_f(sd_hwdb *hwdb, const struct trie_node_f *node, uint8… in node_lookup_f() argument
104 …child = bsearch(&search, (const char *)node + le64toh(hwdb->head->node_size), node->children_count, in node_lookup_f()
182 static int trie_fnmatch_f(sd_hwdb *hwdb, const struct trie_node_f *node, size_t p, in trie_fnmatch_f() argument
189 prefix = trie_string(hwdb, node->prefix_off); in trie_fnmatch_f()
193 for (i = 0; i < node->children_count; i++) { in trie_fnmatch_f()
[all …]
/systemd-251/src/test/
Dtest-loop-block.c56 log_notice("Acquired loop device %s, will mount on %s", loop->node, mounted); in thread_func()
63 log_error_errno(r, "Failed dissect loopback device %s: %m", loop->node); in thread_func()
66 log_info("Dissected loop device %s", loop->node); in thread_func()
73 dissected->partitions[d].node, in thread_func()
79 assert_se(dissected->partitions[PARTITION_ESP].node); in thread_func()
81 assert_se(dissected->partitions[PARTITION_XBOOTLDR].node); in thread_func()
83 assert_se(dissected->partitions[PARTITION_ROOT].node); in thread_func()
85 assert_se(dissected->partitions[PARTITION_HOME].node); in thread_func()
88 log_notice_errno(r, "Mounted %s → %s: %m", loop->node, mounted); in thread_func()
102 log_notice("Detaching loop device %s", loop->node); in thread_func()
[all …]
/systemd-251/src/cryptenroll/
Dcryptenroll-password.c18 const char *node; in enroll_password() local
21 assert_se(node = crypt_get_device_name(cd)); in enroll_password()
31 assert_se(node = crypt_get_device_name(cd)); in enroll_password()
35 disk_path = cescape(node); in enroll_password()
49 question = strjoin("Please enter new passphrase for disk ", node, ":"); in enroll_password()
60 … question = strjoin("Please enter new passphrase for disk ", node, " (repeat):"); in enroll_password()
94 return log_error_errno(keyslot, "Failed to add new password to %s: %m", node); in enroll_password()
Dcryptenroll-fido2.c24 const char *node, *un; in enroll_fido2() local
32 assert_se(node = crypt_get_device_name(cd)); in enroll_fido2()
42 /* user_display_name= */ node, in enroll_fido2()
72 return log_error_errno(keyslot, "Failed to add new FIDO2 key to %s: %m", node); in enroll_fido2()
/systemd-251/src/boot/efi/
Dxbootldr.c15 static EFI_DEVICE_PATH *path_chop(EFI_DEVICE_PATH *path, EFI_DEVICE_PATH *node) { in path_chop() argument
17 assert(node); in path_chop()
19 UINTN len = (UINT8 *) node - (UINT8 *) path; in path_chop()
163 …for (EFI_DEVICE_PATH *node = partition_path; !IsDevicePathEnd(node); node = NextDevicePathNode(nod… in find_device() local
164 if (DevicePathType(node) != MEDIA_DEVICE_PATH) in find_device()
167 if (DevicePathSubType(node) != MEDIA_HARDDRIVE_DP) in find_device()
170 part_node = node; in find_device()
/systemd-251/.lgtm/cpp-queries/
DUninitializedVariableWithCleanup.ql42 override predicate isSource(ControlFlowNode node, StackVariable v) { node = declWithNoInit(v) }
56 override predicate isSink(ControlFlowNode node, StackVariable v) { useOfVar(v, node) }
58 override predicate isBarrier(ControlFlowNode node, StackVariable v) {
60 useOfVar(v, node) or
77 definitionBarrier(v, node) and
81 rs.getLocation().isBefore(node.getLocation())
/systemd-251/src/login/
Dlogind-session-device.c121 assert(sd->node); in session_device_open()
124 fd = open(sd->node, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK); in session_device_open()
262 const char *sp, *node; in session_device_verify() local
273 sd_device_get_devname(dev, &node) < 0) in session_device_verify()
313 sd->node = strdup(node); in session_device_verify()
314 if (!sd->node) in session_device_verify()
373 free(sd->node); in session_device_new()
401 free(sd->node); in session_device_free()
/systemd-251/src/core/
Dbpf-devices.c377 const char *node, in bpf_devices_allow_list_device() argument
388 log_trace("%s: %s %s", __func__, node, acc); in bpf_devices_allow_list_device()
393 r = device_path_parse_major_minor(node, &mode, &rdev); in bpf_devices_allow_list_device()
396 … return log_warning_errno(r, "Couldn't parse major/minor from device path '%s': %m", node); in bpf_devices_allow_list_device()
399 if (stat(node, &st) < 0) in bpf_devices_allow_list_device()
400 return log_warning_errno(errno, "Couldn't stat device %s: %m", node); in bpf_devices_allow_list_device()
403 … return log_warning_errno(SYNTHETIC_ERRNO(ENODEV), "%s is not a device.", node); in bpf_devices_allow_list_device()
518 const char *node, *acc; in bpf_devices_allow_list_static() local
519 NULSTR_FOREACH_PAIR(node, acc, auto_devices) { in bpf_devices_allow_list_static()
520 k = bpf_devices_allow_list_device(prog, path, node, acc); in bpf_devices_allow_list_static()
/systemd-251/src/gpt-auto-generator/
Dgpt-auto-generator.c47 const char *name, *devtype, *node; in open_parent_block_device() local
87 r = sd_device_get_devname(parent, &node); in open_parent_block_device()
93 log_device_debug(d, "Root device %s.", node); in open_parent_block_device()
101 fd = open(node, O_RDONLY|O_CLOEXEC|O_NOCTTY); in open_parent_block_device()
103 return log_error_errno(errno, "Failed to open %s: %m", node); in open_parent_block_device()
333 p->node, in add_partition_mount()
350 assert(p->node); in add_swap()
362 r = add_cryptsetup("swap", p->node, true, true, &crypto_what); in add_swap()
367 what = p->node; in add_swap()
507 p->node, in add_xbootldr()
[all …]
/systemd-251/src/home/
Dhomework-mount.c44 const char *node, in home_mount_node() argument
54 assert(node); in home_mount_node()
71 …r = mount_nofollow_verbose(LOG_ERR, node, HOME_RUNTIME_WORK_DIR, fstype, flags|MS_RELATIME, joined… in home_mount_node()
96 const char *node, in home_unshare_and_mount() argument
104 assert(node); in home_unshare_and_mount()
111 r = home_mount_node(node, fstype, discard, flags, extra_mount_options); in home_unshare_and_mount()
/systemd-251/src/partition/
Drepart.c1554 const char *node, in context_load_partition_table() argument
1569 assert(node); in context_load_partition_table()
1584 r = fdisk_assign_device(c, node, arg_dry_run); in context_load_partition_table()
1594 r = stat(node, &st); in context_load_partition_table()
1598 return log_error_errno(errno, "Failed to stat block device '%s': %m", node); in context_load_partition_table()
1610 return log_error_errno(r, "Failed to open device '%s': %m", node); in context_load_partition_table()
1645 …tice_errno(SYNTHETIC_ERRNO(EHWPOISON), "Disk %s has no GPT disk label, not repartitioning.", node); in context_load_partition_table()
1653 … return log_error_errno(r, "Failed to determine whether disk %s has a disk label: %m", node); in context_load_partition_table()
1655 … log_notice_errno(SYNTHETIC_ERRNO(EHWPOISON), "Disk %s already has a disk label, refusing.", node); in context_load_partition_table()
1664 … return log_error_errno(r, "Failed to determine whether disk %s has a disk label: %m", node); in context_load_partition_table()
[all …]
/systemd-251/src/libsystemd/sd-resolve/
Dresolve-private.h8 const char *node, const char *service, const struct addrinfo *hints,
17 #define resolve_getaddrinfo(resolve, ret_query, node, service, hints, callback, destroy_callback, u… argument
23 node, service, hints, \

1234