Searched refs:node (Results 1 - 25 of 35) sorted by relevance

12

/systemd/src/basic/
H A Dstrbuf.c69 static void strbuf_node_cleanup(struct strbuf_node *node) { argument
72 for (i = 0; i < node->children_count; i++)
73 strbuf_node_cleanup(node->children[i].child);
74 free(node->children);
75 free(node);
102 static void bubbleinsert(struct strbuf_node *node, argument
110 int left = 0, right = node->children_count;
114 if (strbuf_children_cmp(&node->children[middle], &new) <= 0)
120 memmove(node->children + left + 1, node
130 struct strbuf_node *node; local
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-objects.h25 void bus_node_gc(sd_bus *b, struct node *n);
H A Dbus-match.c77 static void bus_match_node_free(struct bus_match_node *node) { argument
78 assert(node);
79 assert(node->parent);
80 assert(!node->child);
81 assert(node->type != BUS_MATCH_ROOT);
82 assert(node->type < _BUS_MATCH_NODE_TYPE_MAX);
84 if (node->parent->child) {
87 if (node->prev) {
88 assert(node->prev->next == node);
119 bus_match_node_maybe_free(struct bus_match_node *node) argument
135 value_node_test( struct bus_match_node *node, enum bus_match_node_type parent_type, uint8_t value_u8, const char *value_str, char **value_strv, sd_bus_message *m) argument
223 value_node_same( struct bus_match_node *node, enum bus_match_node_type parent_type, uint8_t value_u8, const char *value_str) argument
258 bus_match_run( sd_bus *bus, struct bus_match_node *node, sd_bus_message *m) argument
1007 struct bus_match_node *node, *pp; local
1073 bus_match_free(struct bus_match_node *node) argument
1149 bus_match_dump(struct bus_match_node *node, unsigned level) argument
[all...]
H A Dbus-slot.c107 if (slot->node_callback.node) {
108 LIST_REMOVE(callbacks, slot->node_callback.node->callbacks, &slot->node_callback);
111 bus_node_gc(slot->bus, slot->node_callback.node);
118 if (slot->node_enumerator.node) {
119 LIST_REMOVE(enumerators, slot->node_enumerator.node->enumerators, &slot->node_enumerator);
122 bus_node_gc(slot->bus, slot->node_enumerator.node);
129 if (slot->node_object_manager.node) {
130 LIST_REMOVE(object_managers, slot->node_object_manager.node->object_managers, &slot->node_object_manager);
133 bus_node_gc(slot->bus, slot->node_object_manager.node);
140 if (slot->node_vtable.node
[all...]
H A Dbus-internal.h64 struct node { struct
66 struct node *parent;
67 LIST_HEAD(struct node, child);
68 LIST_FIELDS(struct node, siblings);
77 struct node *node; member in struct:node_callback
88 struct node *node; member in struct:node_enumerator
98 struct node *node; member in struct:node_object_manager
104 struct node *node; member in struct:node_vtable
[all...]
H A Dbus-match.h89 void bus_match_free(struct bus_match_node *node);
91 void bus_match_dump(struct bus_match_node *node, unsigned level);
H A Dbus-introspect.c40 "<node>\n", i->f);
59 char *node; local
64 while ((node = set_steal_first(s))) {
67 e = object_path_startswith(node, prefix);
69 fprintf(i->f, " <node name=\"%s\"/>\n", e);
71 free(node);
185 fputs("</node>\n", i->f);
H A Dbus-objects.c182 struct node *n,
187 struct node *i;
231 struct node *n,
612 * should the node tree have changed and we got called
646 * because the node tree changed. */
856 struct node *n,
868 /* Tests if there's anything attached directly to this node
900 struct node *n,
1017 struct node *n;
1161 struct node *
[all...]
/systemd/src/hwdb/
H A Dhwdb.c64 /* prefix, common part for all children of this node */
95 static int node_add_child(struct trie *trie, struct trie_node *node, struct trie_node *node_child, uint8_t c) { argument
99 child = realloc(node->children, (node->children_count + 1) * sizeof(struct trie_child_entry));
103 node->children = child;
105 node->children[node->children_count].c = c;
106 node->children[node->children_count].child = node_child;
107 node
114 node_lookup(const struct trie_node *node, uint8_t c) argument
125 trie_node_cleanup(struct trie_node *node) argument
157 trie_node_add_value(struct trie *trie, struct trie_node *node, const char *key, const char *value) argument
196 trie_insert(struct trie *trie, struct trie_node *node, const char *search, const char *key, const char *value) argument
294 trie_store_nodes_size(struct trie_f *trie, struct trie_node *node) argument
307 trie_store_nodes(struct trie_f *trie, struct trie_node *node) argument
[all...]
/systemd/src/udev/
H A Dudevadm-hwdb.c58 /* prefix, common part for all children of this node */
89 static int node_add_child(struct trie *trie, struct trie_node *node, struct trie_node *node_child, uint8_t c) { argument
93 child = realloc(node->children, (node->children_count + 1) * sizeof(struct trie_child_entry));
97 node->children = child;
99 node->children[node->children_count].c = c;
100 node->children[node->children_count].child = node_child;
101 node
108 node_lookup(const struct trie_node *node, uint8_t c) argument
119 trie_node_cleanup(struct trie_node *node) argument
138 trie_node_add_value(struct trie *trie, struct trie_node *node, const char *key, const char *value) argument
177 trie_insert(struct trie *trie, struct trie_node *node, const char *search, const char *key, const char *value) argument
275 trie_store_nodes_size(struct trie_f *trie, struct trie_node *node) argument
288 trie_store_nodes(struct trie_f *trie, struct trie_node *node) argument
[all...]
H A Dudev-builtin-keyboard.c102 log_error_errno(errno, "Error calling EVIOCSKEYCODE on device node '%s' (scan code 0x%x, key code %d): %m", devnode, map.scan, map.key);
200 const char *node; local
202 node = udev_device_get_devnode(dev);
203 if (!node) {
204 log_error("No device node for \"%s\"", udev_device_get_syspath(dev));
239 fd = open_device(node);
244 map_keycode(fd, node, scancode, keycode);
256 fd = open_device(node);
261 override_abs(fd, node, evcode, udev_list_entry_get_value(entry));
H A Dudev-node.c36 static int node_symlink(struct udev_device *dev, const char *node, const char *slink) { argument
48 while (node[i] && (node[i] == slink[i])) {
49 if (node[i] == '/')
60 l = strscpy(s, l, &node[tail]);
66 /* preserve link with correct target, do not replace node of other device */
69 log_error("conflicting device node '%s' found, link to '%s' will not be created", slink, node);
128 /* find device node of device with highest priority */
267 err = log_debug_errno(errno, "can not stat() node '
[all...]
/systemd/src/libsystemd/sd-hwdb/
H A Dsd-hwdb.c100 static const struct trie_child_entry_f *trie_node_children(sd_hwdb *hwdb, const struct trie_node_f *node) { argument
101 return (const struct trie_child_entry_f *)((const char *)node + le64toh(hwdb->head->node_size));
104 static const struct trie_value_entry_f *trie_node_values(sd_hwdb *hwdb, const struct trie_node_f *node) { argument
105 const char *base = (const char *)node;
108 base += node->children_count * le64toh(hwdb->head->child_entry_size);
127 static const struct trie_node_f *node_lookup_f(sd_hwdb *hwdb, const struct trie_node_f *node, uint8_t c) { argument
132 child = bsearch(&search, trie_node_children(hwdb, node), node->children_count,
168 static int trie_fnmatch_f(sd_hwdb *hwdb, const struct trie_node_f *node, size_t p, argument
175 prefix = trie_string(hwdb, node
203 const struct trie_node_f *node; local
[all...]
/systemd/src/core/
H A Ddevice.h47 int device_found_node(Manager *m, const char *node, bool add, DeviceFound found, bool now);
H A Dumount.c297 char *node; local
309 node = strdup(dn);
310 if (!node)
315 free(node);
319 m->path = node;
/systemd/src/libudev/
H A Dlibudev-list.c42 struct udev_list_node node; member in struct:udev_list_entry
88 /* return list entry which embeds this node */
89 static inline struct udev_list_entry *list_node_to_entry(struct udev_list_node *node) argument
91 return container_of(node, struct udev_list_entry, node);
99 udev_list_node_init(&list->node);
105 /* inserting before the list head make the node the last node in the list */
106 udev_list_node_insert_between(&new->node, list->node
[all...]
H A Dlibudev-private.h91 struct udev_list_node node; member in struct:udev_list
101 #define udev_list_node_foreach(node, list) \
102 for (node = (list)->next; \
103 node != list; \
104 node = (node)->next)
105 #define udev_list_node_foreach_safe(node, tmp, list) \
106 for (node = (list)->next, tmp = (node)->next; \
107 node !
[all...]
/systemd/src/login/
H A Dlogind-session-device.h39 char *node; member in struct:SessionDevice
H A Dlogind-session-device.c149 fd = open(sd->node, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
273 const char *sp, *node; local
281 node = udev_device_get_devnode(dev);
282 if (!node) {
293 /* for evdev devices we need the parent node as device */
303 * subsystem "input" must be opened via the evdev node as
332 sd->node = strdup(node);
333 if (!sd->node) {
397 free(sd->node);
[all...]
H A Dlogind-acl.c225 const char *node, *sn; local
238 node = udev_device_get_devnode(d);
240 if (!node)
243 n = strdup(node);
247 log_debug("Found udev node %s for seat %s", n, seat);
267 log_debug("Found static node %s for seat %s", n, seat);
/systemd/src/shared/
H A Dgenerator.c166 _cleanup_free_ char *node = NULL, *unit = NULL, *timeout = NULL; local
181 node = fstab_node_to_udev_node(what);
182 if (!node)
185 r = unit_name_from_path(node, ".device", &unit);
/systemd/src/udev/collect/
H A Dcollect.c43 struct udev_list_node node; member in struct:_mate
54 static inline struct _mate *node_to_mate(struct udev_list_node *node) argument
56 return container_of(node, struct _mate, node);
180 udev_list_node_append(&him->node, &bunch);
267 udev_list_node_remove(&him->node);
458 udev_list_node_append(&him->node, &bunch);
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c564 const char *name, *node, *pttype, *devtype; local
607 /* Does it have a device node? */
608 node = udev_device_get_devnode(parent);
609 if (!node) {
610 log_debug("%s: parent device does not have device node, ignoring.", name);
614 log_debug("%s: root device %s.", name, node);
621 b = blkid_new_probe_from_filename(node);
626 return log_error_errno(errno, "%s: failed to allocate prober: %m", node);
637 log_warning("%s: probe gave ambiguous results, ignoring.", node);
640 return log_error_errno(errno ?: EIO, "%s: failed to probe: %m", node);
[all...]
/systemd/src/udev/ata_id/
H A Data_id.c419 const char *node = NULL; local
456 node = argv[optind];
457 if (node == NULL) {
458 log_error("no node specified");
462 fd = open(node, O_RDONLY|O_NONBLOCK|O_CLOEXEC);
464 log_error("unable to open '%s'", node);
499 log_debug_errno(errno, "HDIO_GET_IDENTITY failed for '%s': %m", node);
/systemd/src/systemd/
H A Dsd-resolve.h91 int sd_resolve_getaddrinfo(sd_resolve *resolve, sd_resolve_query **q, const char *node, const char *service, const struct addrinfo *hints, sd_resolve_getaddrinfo_handler_t callback, void *userdata);

Completed in 1448 milliseconds

12