Logo Search packages:      
Sourcecode: udev-extras version File versions

_GUdevClientPrivate Struct Reference

List of all members.


Detailed Description

SECTION:gudevclient : Query devices and listen to uevents

GUdevClient is used to query information about devices on a Linux system from the Linux kernel and the udev device manager.

Device information is retrieved from the kernel (through the <literal>sysfs</literal> filesystem) and the udev daemon (through a <literal>tmpfs</literal> filesystem) and presented through GUdevDevice objects. This means that no blocking IO ever happens (in both cases, we are essentially just reading data from kernel memory) and as such there are no asynchronous versions of the provided methods.

To get information about a device, use g_udev_client_query_by_subsystem(), g_udev_client_query_by_device_number(), g_udev_client_query_by_device_file(), g_udev_client_query_by_sysfs_path() or g_udev_client_query_by_subsystem_and_name().

To listen to uevents, connect to the GUdevClient::uevent signal.

Definition at line 60 of file gudevclient.c.


Public Attributes

struct udev_monitor * monitor
gchar ** subsystems
struct udev * udev
guint watch_id

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index