%entities; ]> udev_device_new_from_syspath systemd Developer David Herrmann dh.herrmann@gmail.com udev_device_new_from_syspath 3 udev_device_new_from_syspath udev_device_new_from_devnum udev_device_new_from_subsystem_sysname udev_device_new_from_device_id udev_device_new_from_environment udev_device_ref udev_device_unref Create, acquire and release a udev device object #include <libudev.h> struct udev_device *udev_device_new_from_syspath struct udev *udev const char *syspath struct udev_device *udev_device_new_from_devnum struct udev *udev char type dev_t devnum struct udev_device *udev_device_new_from_subsystem_sysname struct udev *udev const char *subsystem const char *sysname struct udev_device *udev_device_new_from_device_id struct udev *udev const char *id struct udev_device *udev_device_new_from_environment struct udev *udev struct udev_device *udev_device_ref struct udev_device *udev_device struct udev_device *udev_device_unref struct udev_device *udev_device Return Value On success, udev_device_new_from_syspath(), udev_device_new_from_devnum(), udev_device_new_from_subsystem_sysname(), udev_device_new_from_device_id() and udev_device_new_from_environment() return a pointer to the allocated udev device. On failure, NULL is returned. udev_device_ref() returns the argument that it was passed, unmodified. udev_device_unref() always returns NULL. See Also udev_new3, udev_device_get_syspath3, udev_device_has_tag3, udev_enumerate_new3, udev_monitor_new_from_netlink3, udev_list_entry3, systemd1,