Searched defs:tag (Results 1 - 15 of 15) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-lease-internal.h41 uint8_t tag; member in struct:sd_dhcp_raw_option
95 int dhcp_lease_insert_private_option(sd_dhcp_lease *lease, uint8_t tag, const void *data, uint8_t len);
H A Dsd-dhcp-lease.c682 int dhcp_lease_insert_private_option(sd_dhcp_lease *lease, uint8_t tag, const void *data, uint8_t len) { argument
688 if (tag < cur->tag)
690 if (tag == cur->tag) {
691 log_debug("Ignoring duplicate option, tagged %i.", tag);
700 option->tag = tag;
853 xsprintf(key, "OPTION_%" PRIu8, option->tag);
/systemd/src/libudev/
H A Dlibudev-enumerate.c284 * @tag: filter for a tag of the device to include in the list
286 * Match only devices with a certain tag.
290 _public_ int udev_enumerate_add_match_tag(struct udev_enumerate *udev_enumerate, const char *tag) { argument
293 if (!tag)
296 return sd_device_enumerator_add_match_tag(udev_enumerate->enumerator, tag);
H A Dlibudev-device-private.c371 int udev_device_add_tag(struct udev_device *udev_device, const char *tag) { argument
376 r = device_add_tag(udev_device->device, tag);
383 void udev_device_remove_tag(struct udev_device *udev_device, const char *tag) { argument
386 device_remove_tag(udev_device->device, tag);
H A Dlibudev-device.c919 * which returns #NULL if no more entries exist. The tag string
922 * Returns: the first entry of the tag list
930 const char *tag; local
934 FOREACH_DEVICE_TAG(udev_device->device, tag)
935 udev_list_entry_add(&udev_device->tags, tag, NULL);
947 * @tag: tag name
949 * Check if a given device has a certain tag associated.
951 * Returns: 1 if the tag is found. 0 otherwise.
953 _public_ int udev_device_has_tag(struct udev_device *udev_device, const char *tag) argument
[all...]
H A Dlibudev-monitor.c313 /* count tag matches, to calculate end of tag match block */
326 /* clear bits (tag bits & bloom bits) */
328 /* jump to next tag if it does not match */
333 /* clear bits (tag bits & bloom bits) */
335 /* jump behind end of tag match block if tag matches */
530 goto tag;
542 goto tag;
547 goto tag;
555 const char *tag = udev_list_entry_get_name(list_entry); local
820 udev_monitor_filter_add_match_tag(struct udev_monitor *udev_monitor, const char *tag) argument
[all...]
/systemd/src/login/
H A Dlogind-acl.c46 acl_tag_t tag; local
48 if (acl_get_tag_type(i, &tag) < 0)
51 if (tag != ACL_USER)
205 /* We can only match by one tag in libudev. We choose
207 * could add the seat name as second match tag, but this would
209 * second tag manually in our loop is a good solution. */
/systemd/src/udev/
H A Dudevadm-monitor.c70 " -t --tag-match=TAG Filter events by tag\n"
95 { "tag-match", required_argument, NULL, 't' },
181 const char *tag = udev_list_entry_get_name(entry); local
183 if (udev_monitor_filter_add_match_tag(udev_monitor, tag) < 0)
184 fprintf(stderr, "error: unable to apply tag filter '%s'\n", tag);
H A Dudev-builtin-path_id.c719 char tag[UTIL_NAME_SIZE]; local
723 /* compose valid udev tag name */
729 tag[i++] = *p;
738 if (tag[i-1] == '_')
741 tag[i++] = '_';
744 while (i > 0 && tag[i-1] == '_')
746 tag[i] = '\0';
749 udev_builtin_add_property(dev, test, "ID_PATH_TAG", tag);
H A Dudev-rules.c2393 char tag[UTIL_PATH_SIZE]; local
2396 udev_event_apply_format(event, rules_str(rules, cur->key.value_off), tag, sizeof(tag));
2399 for (p = tag; *p != '\0'; p++) {
2405 log_error("ignoring invalid tag name '%s'", tag);
2409 udev_device_remove_tag(event->dev, tag);
2411 udev_device_add_tag(event->dev, tag);
2590 /* skip rules without a static_node tag */
/systemd/src/shared/
H A Dacl-util.c41 acl_tag_t tag; local
45 if (acl_get_tag_type(i, &tag) < 0)
48 if (tag != ACL_USER)
79 acl_tag_t tag; local
81 if (acl_get_tag_type(i, &tag) < 0)
84 if (tag == ACL_MASK)
87 if (IN_SET(tag, ACL_USER, ACL_GROUP))
111 acl_tag_t tag; local
113 if (acl_get_tag_type(i, &tag) < 0)
116 if (tag
139 acl_tag_t tag; local
179 acl_tag_t tag; local
[all...]
/systemd/src/journal/
H A Djournal-def.h137 uint8_t tag[TAG_LENGTH]; /* SHA-256 HMAC */ member in struct:TagObject
147 TagObject tag; member in union:Object
/systemd/src/libsystemd/sd-device/
H A Ddevice-enumerator.c227 _public_ int sd_device_enumerator_add_match_tag(sd_device_enumerator *enumerator, const char *tag) { argument
231 assert_return(tag, -EINVAL);
237 r = set_put_strdup(enumerator->match_tag, tag);
419 const char *tag; local
425 SET_FOREACH(tag, enumerator->match_tag, i)
426 if (!sd_device_has_tag(device, tag))
619 static int enumerator_scan_devices_tag(sd_device_enumerator *enumerator, const char *tag) { argument
626 assert(tag);
628 path = strjoina("/run/udev/tags/", tag);
697 const char *tag; local
[all...]
H A Ddevice-private.c444 char tag[l + 1]; local
446 (void)strncpy(tag, word, l);
447 tag[l] = '\0';
449 r = device_add_tag(device, tag);
451 return log_debug_errno(r, "sd-device: could not add tag '%s': %m", tag);
905 void device_remove_tag(sd_device *device, const char *tag) { argument
907 assert(tag);
909 free(set_remove(device->tags, tag));
914 static int device_tag(sd_device *device, const char *tag, boo argument
942 const char *tag; local
1047 const char *property, *value, *tag; local
[all...]
H A Dsd-device.c1046 static bool is_valid_tag(const char *tag) { argument
1047 assert(tag);
1049 return !strchr(tag, ':') && !strchr(tag, ' ');
1052 int device_add_tag(sd_device *device, const char *tag) { argument
1056 assert(tag);
1058 if (!is_valid_tag(tag))
1065 r = set_put_strdup(device->tags, tag);
1479 const char *tag; local
1481 tag
1625 sd_device_has_tag(sd_device *device, const char *tag) argument
[all...]

Completed in 88 milliseconds