Lines Matching refs:value

42 static struct udev_list_entry *udev_device_add_property_internal(struct udev_device *udev_device, const char *key, const char *value);
367 static struct udev_list_entry *udev_device_add_property_internal(struct udev_device *udev_device, const char *key, const char *value)
370 if (value == NULL) {
379 return udev_list_entry_add(&udev_device->properties_list, key, value);
383 int udev_device_add_property(struct udev_device *udev_device, const char *key, const char *value)
387 property = udev_device_add_property_internal(udev_device, key, value);
481 * called after adding properties, and its return value checked
579 * Get the value of a given property.
1121 * value, and fill in information from the sys device and the udev
1239 * Retrieve the kernel devpath value of the udev device. The path
1349 * Retrieve the list of key/value device properties of the udev
1353 * the property value by udev_list_entry_get_value().
1410 * Returns: the kernel action value, or #NULL if there is no action value available.
1457 * The retrieved value is cached in the device. Repeated calls will return the same
1458 * value and not open the attribute again.
1460 * Returns: the content of a sys attribute file, or #NULL if there is no sys attribute value.
1466 char value[4096];
1498 udev_device->syspath, value, sizeof(value)) < 0)
1500 list_entry = udev_list_entry_add(&udev_device->sysattr_value_list, sysattr, value);
1516 /* read attribute value */
1520 size = read(fd, value, sizeof(value));
1524 if (size == sizeof(value))
1527 /* got a valid value, store it in cache and return it */
1528 value[size] = '\0';
1529 util_remove_trailing_chars(value, '\n');
1530 list_entry = udev_list_entry_add(&udev_device->sysattr_value_list, sysattr, value);
1540 * @value: new value to be set
1542 * Update the contents of the sys attribute and the cached value of the device.
1546 _public_ int udev_device_set_sysattr_value(struct udev_device *udev_device, const char *sysattr, char *value)
1560 if (value == NULL)
1563 value_len = strlen(value);
1594 util_remove_trailing_chars(value, '\n');
1596 /* write attribute value */
1602 size = write(fd, value, value_len);
1613 /* wrote a valid value, store it in cache and return it */
1614 udev_list_entry_add(&dev->sysattr_value_list, sysattr, value);
1664 * Retrieve the list of available sysattrs, with value being empty;
2094 const char *key, *value;
2097 value = udev_list_entry_get_value(entry);
2099 udev_device_add_property(dst, key, value);