| Top |
This object is used to add/remove Linux specific objects of type UDisksLinuxBlockObject, UDisksLinuxDriveObject and UDisksLinuxMDRaidObject.
UDisksLinuxProvider *
udisks_linux_provider_new (UDisksDaemon *daemon);
Create a new provider object for Linux-specific objects / functionality.
GUdevClient *
udisks_linux_provider_get_udev_client (UDisksLinuxProvider *provider);
Gets the GUdevClient used by provider
.
gboolean
udisks_linux_provider_get_coldplug (UDisksLinuxProvider *provider);
Gets whether provider
is in the coldplug phase.
void udisks_linux_provider_trigger_nvme_subsystem_uevent (UDisksLinuxProvider *provider,const gchar *subsys_nqn,UDisksUeventAction action,UDisksLinuxDevice *device);
Triggers uevent on a NVMe subsystem, updating all block and drive objects currently present. This is a thread-safe synchronous operation.
provider |
||
subsys_nqn |
A NVMe subsystem NQN. |
|
action |
uevent action |
|
device |
A UDisksLinuxDevice that triggered the action or |
typedef struct _UDisksLinuxProvider UDisksLinuxProvider;
The UDisksLinuxProvider structure contains only private data and should only be accessed using the provided API.
“uevent-probed” signalvoid user_function (UDisksLinuxProvider *provider, char *action, UDisksLinuxDevice *device, gpointer user_data)
Emitted after the device
is probed.
This signal is emitted in the thread-default main loop of the thread that provider
was created in.
provider |
||
action |
The action for the uevent e.g. "add", "remove", "change", "move", "online" or "offline". |
|
device |
The UDisksLinuxDevice that was probed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last