Top |
Types and functions used to record information obtained from the udev database as well as by probing the device.
UDisksLinuxDevice *
udisks_linux_device_new_sync (GUdevDevice *udev_device
);
Creates a new UDisksLinuxDevice from udev_device
which includes
probing the device for more information, if applicable.
The calling thread may be blocked for a non-trivial amount of time while the probing is underway.
gboolean udisks_linux_device_reprobe_sync (UDisksLinuxDevice *device
,GCancellable *cancellable
,GError **error
);
Forcibly reprobe information on device
. The calling thread may be
blocked for a non-trivial amount of time while the probing is
underway.
device |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
gchar * udisks_linux_device_read_sysfs_attr (UDisksLinuxDevice *device
,const gchar *attr
,GError **error
);
Read a sysfs attribute within the device sysfs hierarchy.
The attr
can be a path relative to the device
base sysfs path.
gint udisks_linux_device_read_sysfs_attr_as_int (UDisksLinuxDevice *device
,const gchar *attr
,GError **error
);
Read a sysfs attribute within the device sysfs hierarchy.
The attr
can be a path relative to the device
base sysfs path.
guint64 udisks_linux_device_read_sysfs_attr_as_uint64 (UDisksLinuxDevice *device
,const gchar *attr
,GError **error
);
Read a sysfs attribute within the device sysfs hierarchy.
The attr
can be a path relative to the device
base sysfs path.
gboolean
udisks_linux_device_subsystem_is_nvme (UDisksLinuxDevice *device
);
Walks up the device hierarchy and checks if device
is part of a NVMe topology.
gboolean
udisks_linux_device_nvme_is_fabrics (UDisksLinuxDevice *device
);
Determines whether device
is a NVMe over Fabrics device.
typedef struct { GUdevDevice *udev_device; guchar *ata_identify_device_data; guchar *ata_identify_packet_device_data; BDNVMEControllerInfo *nvme_ctrl_info; BDNVMENamespaceInfo *nvme_ns_info; } UDisksLinuxDevice;
Object containing information about a device on Linux. This is essentially an instance of GUdevDevice plus additional data - such as ATA IDENTIFY data - obtained via probing the device at discovery and uevent "change" time.
GUdevDevice * |
A GUdevDevice. |
|
guchar * |
512-byte array containing the result of the IDENTIFY DEVICE command or |
|
guchar * |
512-byte array containing the result of the IDENTIFY PACKET DEVICE command or |
|
BDNVMEControllerInfo * |
A BDNVMEControllerInfo data in case of a NVMe Controller. |
|
BDNVMENamespaceInfo * |
A BDNVMENamespaceInfo data in case of a NVMe Namespace. |