NAME
Udev::FFI::Device
SYNOPSIS
use Udev::FFI;
my $udev = Udev::FFI->new() or
die("Can't create Udev::FFI object: $@");
my $device = $udev->new_device_from_subsystem_sysname('block', 'sda1');
if (defined($device)) {
print("SYSPATH: ".$device->get_syspath()."\n");
if (my $fs = $device->get_property_value('ID_FS_TYPE')) {
print("FS: $fs\n");
}
if (my $uuid = $device->get_property_value('ID_FS_UUID')) {
print("UUID: $uuid\n");
}
}
METHODS
get_devpath()
get_subsystem()
get_devtype()
get_syspath()
get_sysname()
get_sysnum()
get_devnode()
get_is_initialized()
get_property_value( KEY )
get_driver()
get_devnum()
get_action()
get_seqnum()
get_usec_since_initialized()
get_sysattr_value( SYSATTR )
set_sysattr_value( SYSATTR, VALUE )
has_tag( TAG )
get_parent()
get_parent_with_subsystem_devtype( SUBSYSTEM [, DEVTYPE] )
get_devlinks_list_entries()
get_properties_list_entries()
get_tags_list_entries()
get_sysattr_list_entries()
get_udev()
SEE ALSO
Udev::FFI main Udev::FFI documentation