Lines Matching defs:property
385 struct udev_list_entry *property;
387 property = udev_device_add_property_internal(udev_device, key, value);
391 udev_list_entry_set_num(property, true);
396 static struct udev_list_entry *udev_device_add_property_from_string(struct udev_device *udev_device, const char *property)
401 strscpy(name, sizeof(name), property);
478 * parse property string, and if needed, update internal values accordingly
486 static void udev_device_add_property_from_string_parse(struct udev_device *udev_device, const char *property)
488 if (startswith(property, "DEVPATH=")) {
491 strscpyl(path, sizeof(path), "/sys", &property[8], NULL);
493 } else if (startswith(property, "SUBSYSTEM=")) {
494 udev_device_set_subsystem(udev_device, &property[10]);
495 } else if (startswith(property, "DEVTYPE=")) {
496 udev_device_set_devtype(udev_device, &property[8]);
497 } else if (startswith(property, "DEVNAME=")) {
498 udev_device_set_devnode(udev_device, &property[8]);
499 } else if (startswith(property, "DEVLINKS=")) {
504 strscpy(devlinks, sizeof(devlinks), &property[9]);
515 } else if (startswith(property, "TAGS=")) {
519 strscpy(tags, sizeof(tags), &property[5]);
535 } else if (startswith(property, "USEC_INITIALIZED=")) {
536 udev_device_set_usec_initialized(udev_device, strtoull(&property[19], NULL, 10));
537 } else if (startswith(property, "DRIVER=")) {
538 udev_device_set_driver(udev_device, &property[7]);
539 } else if (startswith(property, "ACTION=")) {
540 udev_device_set_action(udev_device, &property[7]);
541 } else if (startswith(property, "MAJOR=")) {
542 udev_device->maj = strtoull(&property[6], NULL, 10);
543 } else if (startswith(property, "MINOR=")) {
544 udev_device->min = strtoull(&property[6], NULL, 10);
545 } else if (startswith(property, "DEVPATH_OLD=")) {
546 udev_device_set_devpath_old(udev_device, &property[12]);
547 } else if (startswith(property, "SEQNUM=")) {
548 udev_device_set_seqnum(udev_device, strtoull(&property[7], NULL, 10));
549 } else if (startswith(property, "IFINDEX=")) {
550 udev_device_set_ifindex(udev_device, strtoull(&property[8], NULL, 10));
551 } else if (startswith(property, "DEVMODE=")) {
552 udev_device_set_devnode_mode(udev_device, strtoul(&property[8], NULL, 8));
553 } else if (startswith(property, "DEVUID=")) {
554 udev_device_set_devnode_uid(udev_device, strtoul(&property[7], NULL, 10));
555 } else if (startswith(property, "DEVGID=")) {
556 udev_device_set_devnode_gid(udev_device, strtoul(&property[7], NULL, 10));
558 udev_device_add_property_from_string(udev_device, property);
577 * @key: property name
579 * Get the value of a given property.
581 * Returns: the property string, or #NULL if there is no such property.
1351 * which returns #NULL if no more entries exist. The property name
1353 * the property value by udev_list_entry_get_value().
1355 * Returns: the first entry of the property list
1668 * Returns: the first entry of the property list
1854 /* monitor buffer of property strings */
1883 /* add property string to monitor buffer */