Man page - udev_device_get_syspath(3)
Packages contains this manual
- udev_enumerate_get_udev(3)
- udev_enumerate_add_match_is_initialized(3)
- udev_monitor_receive_device(3)
- udev_list_entry_get_by_name(3)
- udev_enumerate_add_syspath(3)
- udev_enumerate_add_match_sysname(3)
- udev_device_get_udev(3)
- udev_device_new_from_environment(3)
- udev_device_get_action(3)
- udev_device_get_sysattr_value(3)
- udev_device_get_sysname(3)
- udev_monitor_filter_add_match_subsystem_devtype(3)
- udev_list_entry_get_next(3)
- udev_device_get_parent(3)
- udev_enumerate_add_match_parent(3)
- udev_list_entry_get_value(3)
- udev_enumerate_ref(3)
- udev_device_get_syspath(3)
- udev_enumerate_add_nomatch_subsystem(3)
- udev_list_entry(3)
- udev_device_set_sysattr_value(3)
- udev_device_new_from_device_id(3)
- udev_unref(3)
- udev_device_get_is_initialized(3)
- udev_monitor_filter_update(3)
- udev_monitor_filter_remove(3)
- udev_device_new_from_syspath(3)
- udev_device_get_tags_list_entry(3)
- udev_device_get_parent_with_subsystem_devtype(3)
- libudev(3)
- udev_monitor_get_udev(3)
- udev_device_has_tag(3)
- udev_device_get_driver(3)
- udev_ref(3)
- udev_enumerate_get_list_entry(3)
- udev_device_get_current_tags_list_entry(3)
- udev_enumerate_unref(3)
- udev_monitor_get_fd(3)
- udev_new(3)
- udev_device_get_devpath(3)
- udev_monitor_enable_receiving(3)
- udev_device_get_devtype(3)
- udev_monitor_unref(3)
- udev_device_get_sysnum(3)
- udev_device_has_current_tag(3)
- udev_device_get_devlinks_list_entry(3)
- udev_device_get_properties_list_entry(3)
- udev_device_get_sysattr_list_entry(3)
- udev_device_get_devnum(3)
- udev_enumerate_add_match_property(3)
- udev_enumerate_add_match_subsystem(3)
- udev_enumerate_scan_devices(3)
- udev_device_get_subsystem(3)
- udev_enumerate_add_nomatch_sysattr(3)
- udev_device_get_property_value(3)
- udev_device_new_from_subsystem_sysname(3)
- udev_device_ref(3)
- udev_monitor_new_from_netlink(3)
- udev_enumerate_new(3)
- udev_device_unref(3)
- udev_monitor_filter_add_match_tag(3)
- udev_device_get_devnode(3)
- udev_device_new_from_devnum(3)
- udev_monitor_ref(3)
- udev_monitor_set_receive_buffer_size(3)
- udev_list_entry_get_name(3)
- udev_enumerate_add_match_tag(3)
- udev_enumerate_scan_subsystems(3)
- udev_enumerate_add_match_sysattr(3)
apt-get install libudev-dev
Manual
UDEV_DEVICE_GET_SYSPATH
NAMESYNOPSIS
RETURN VALUE
HISTORY
SEE ALSO
NAME
udev_device_get_syspath, udev_device_get_sysname, udev_device_get_sysnum, udev_device_get_devpath, udev_device_get_devnode, udev_device_get_devnum, udev_device_get_devtype, udev_device_get_subsystem, udev_device_get_driver, udev_device_get_udev, udev_device_get_parent, udev_device_get_parent_with_subsystem_devtype, udev_device_get_is_initialized, udev_device_get_action - Query device properties
SYNOPSIS
#include <libudev.h>
|
const char *udev_device_get_syspath(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_sysname(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_sysnum(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_devpath(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_devnode(struct udev_device * udev_device ); |
|
|
dev_t udev_device_get_devnum(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_devtype(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_subsystem(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_driver(struct udev_device * udev_device ); |
|
|
struct udev *udev_device_get_udev(struct udev_device * udev_device ); |
|
|
struct udev_device *udev_device_get_parent(struct udev_device * udev_device ); |
|
|
struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct udev_device * udev_device , const char * subsystem , const char * devtype ); |
|
|
int udev_device_get_is_initialized(struct udev_device * udev_device ); |
|
|
const char *udev_device_get_action(struct udev_device * udev_device ); |
RETURN VALUE
On success, udev_device_get_syspath() , udev_device_get_sysname() , udev_device_get_sysnum() , udev_device_get_devpath() , udev_device_get_devnode() , udev_device_get_devtype() , udev_device_get_subsystem() , udev_device_get_driver() and udev_device_get_action() return a pointer to a constant string that describes the requested property. The lifetime of this string is bound to the device it was requested on. On failure, each function may return NULL .
On success, udev_device_get_devnum() returns the device type of the passed device. On failure, a device type with minor and major number set to 0 is returned.
udev_device_get_udev() always returns a valid pointer to the udev context that this device belongs to.
On success, udev_device_get_parent() and udev_device_get_parent_with_subsystem_devtype() return a pointer to the parent device. No additional reference to this device is acquired, but the child device owns a reference to such a parent device. On failure, NULL is returned.
On success, udev_device_get_is_initialized() returns either 1 or 0 , depending on whether the passed device has already been initialized by udev or not. On failure, a negative error code is returned. Note that devices for which no udev rules are defined are never reported initialized.
HISTORY
udev_device_get_syspath() , udev_device_get_sysname() , udev_device_get_sysnum() , udev_device_get_devpath() , udev_device_get_devnode() , udev_device_get_devnum() , udev_device_get_devtype() , udev_device_get_subsystem() , udev_device_get_driver() , udev_device_get_udev() , udev_device_get_parent() , udev_device_get_parent_with_subsystem_devtype() , udev_device_get_is_initialized() , and udev_device_get_action() were added in version 221.
SEE ALSO
udev_new (3), udev_device_new_from_syspath (3), udev_device_has_tag (3), udev_enumerate_new (3), udev_monitor_new_from_netlink (3), udev_list_entry (3), systemd (1)