Lines Matching refs:udev

60         struct udev *udev;
109 * @udev_device: udev device
152 * @udev_device: udev device
203 * @udev_device: udev device
217 if (util_get_sys_core_link_value(udev_device->udev, "driver", udev_device->syspath, driver, sizeof(driver)) > 0)
236 * @udev_device: udev device
238 * Retrieve the devtype string of the udev device.
240 * Returns: the devtype name of the udev device, or #NULL if it can not be determined
277 * @udev_device: udev device
279 * Retrieve the subsystem string of the udev device. The string does not
282 * Returns: the subsystem name of the udev device, or #NULL if it can not be determined
293 if (util_get_sys_core_link_value(udev_device->udev, "subsystem", udev_device->syspath, subsystem, sizeof(subsystem)) > 0) {
576 * @udev_device: udev device
613 strscpyl(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/data/", id, NULL);
719 static struct udev_device *udev_device_new(struct udev *udev)
723 if (udev == NULL) {
734 udev_device->udev = udev;
735 udev_list_init(udev, &udev_device->devlinks_list, true);
736 udev_list_init(udev, &udev_device->properties_list, true);
737 udev_list_init(udev, &udev_device->sysattr_value_list, true);
738 udev_list_init(udev, &udev_device->sysattr_list, false);
739 udev_list_init(udev, &udev_device->tags_list, true);
747 * @udev: udev library context
750 * Create new udev device, and fill in information from the sys
751 * device and the udev database entry. The syspath is the absolute
755 * release the resources of the udev device.
757 * Returns: a new udev device, or #NULL, if it does not exist
759 _public_ struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath)
767 if (udev == NULL) {
794 util_resolve_sys_link(udev, path, sizeof(path));
814 udev_device = udev_device_new(udev);
826 * @udev: udev library context
830 * Create new udev device, and fill in information from the sys
831 * device and the udev database entry. The device is looked-up
836 * release the resources of the udev device.
838 * Returns: a new udev device, or #NULL, if it does not exist
840 _public_ struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, dev_t devnum)
857 return udev_device_new_from_syspath(udev, path);
862 * @udev: udev library context
865 * Create new udev device, and fill in information from the sys
866 * device and the udev database entry. The device is looked-up
874 * release the resources of the udev device.
876 * Returns: a new udev device, or #NULL, if it does not exist
878 _public_ struct udev_device *udev_device_new_from_device_id(struct udev *udev, const char *id)
890 return udev_device_new_from_devnum(udev, type, makedev(maj, min));
914 dev = udev_device_new_from_subsystem_sysname(udev, "net", ifr.ifr_name);
934 return udev_device_new_from_subsystem_sysname(udev, subsys, sysname);
943 * @udev: udev library context
947 * Create new udev device, and fill in information from the sys device
948 * and the udev database entry. The device is looked up by the subsystem
952 * release the resources of the udev device.
954 * Returns: a new udev device, or #NULL, if it does not exist
956 _public_ struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname)
1020 return udev_device_new_from_syspath(udev, path);
1025 * @udev: udev library context
1027 * Create new udev device, and fill in information from the
1029 * the process is called from a udev rule. It is usually used
1033 * release the resources of the udev device.
1035 * Returns: a new udev device, or #NULL, if it does not exist
1037 _public_ struct udev_device *udev_device_new_from_environment(struct udev *udev)
1042 udev_device = udev_device_new(udev);
1074 udev_device_parent = udev_device_new_from_syspath(udev_device->udev, path);
1088 * device and the udev database entry.
1099 * Returns: a new udev device, or #NULL, if it no parent exist.
1116 * @udev_device: udev device to start searching from
1121 * value, and fill in information from the sys device and the udev
1133 * Returns: a new udev device, or #NULL if no matching parent exists.
1168 * @udev_device: udev device
1170 * Retrieve the udev library context the device was created with.
1172 * Returns: the udev library context
1174 _public_ struct udev *udev_device_get_udev(struct udev_device *udev_device)
1178 return udev_device->udev;
1183 * @udev_device: udev device
1185 * Take a reference of a udev device.
1187 * Returns: the passed udev device
1199 * @udev_device: udev device
1201 * Drop a reference of a udev device. If the refcount reaches zero,
1237 * @udev_device: udev device
1239 * Retrieve the kernel devpath value of the udev device. The path
1242 * Returns: the devpath of the udev device
1253 * @udev_device: udev device
1255 * Retrieve the sys path of the udev device. The path is an
1258 * Returns: the sys path of the udev device
1269 * @udev_device: udev device
1284 * @udev_device: udev device
1299 * @udev_device: udev device
1301 * Retrieve the device node file name belonging to the udev device.
1304 * Returns: the device node file name of the udev device, or #NULL if no device node exists
1319 * @udev_device: udev device
1322 * the udev device. The next list entry can be retrieved with
1347 * @udev_device: udev device
1349 * Retrieve the list of key/value device properties of the udev
1404 * @udev_device: udev device
1421 * @udev_device: udev device
1423 * Return the number of microseconds passed since udev set up the
1427 * in the udev database. All other devices return 0 here.
1454 * @udev_device: udev device
1497 if (util_get_sys_core_link_value(udev_device->udev, sysattr,
1538 * @udev_device: udev device
1662 * @udev_device: udev device
1744 * @udev_device: udev device
1746 * Check if udev has already handled the device and has set up
1804 * @udev_device: udev device
1806 * Retrieve the list of tags attached to the udev device. The next
1824 * @udev_device: udev device
1987 device = udev_device_new(old_device->udev);
2015 struct udev_device *udev_device_new_from_nulstr(struct udev *udev, char *nulstr, ssize_t buflen) {
2025 device = udev_device_new(udev);
2060 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action) {
2069 ret = udev_device_new_from_syspath(udev, syspath);