Modules | |
Block class | |
Block class. | |
I2C adapter class | |
I2C adapter class. | |
Input class | |
Input class. | |
Networking class | |
Networking class. | |
SCSI class | |
SCSI class. | |
V4L adapter class | |
V4L class. | |
Utility functions | |
Utility functions. | |
I2C | |
I2C. | |
IDE | |
IDE. | |
IEEE1394 | |
IEEE1394. | |
PCI | |
PCI. | |
USB | |
USB. | |
Defines | |
#define | HOTPLUG_INPUT_MAX 128 |
Maximum length of string parameter in hotplug input events. | |
Functions | |
void | visit_class_device (const char *path, dbus_bool_t visit_children) |
Visitor function for any class device. | |
void | visit_class (const char *class_name, dbus_bool_t visit_children) |
Visit all devices of a given class. | |
void | visit_device (const char *path, dbus_bool_t visit_children) |
Visitor function for any device. | |
void | osspec_init (DBusConnection *dbus_connection) |
Initialize the OS specific parts of the daemon. | |
void | osspec_probe () |
Probe all hardware present in the system and synchronize with the device list. | |
DBusHandlerResult | handle_hotplug (DBusConnection *connection, DBusMessage *message) |
Handle a org.freedesktop.Hal.HotplugEvent message. | |
void | handle_udev_node_created_found_device (HalDevice *d, void *data1, void *data2) |
Callback when the block device is found or if there is none.. | |
DBusHandlerResult | handle_udev_node_created (DBusConnection *connection, DBusMessage *message) |
Handle a org.freedesktop.Hal.HotplugEvent message. | |
DBusHandlerResult | osspec_filter_function (DBusConnection *connection, DBusMessage *message, void *user_data) |
Message handler for method invocations. | |
Variables | |
char | sysfs_mount_path [SYSFS_PATH_MAX] |
Mount path for sysfs. | |
dbus_bool_t | is_probing |
This is set to #TRUE if we are probing and #FALSE otherwise. |
|
Handle a org.freedesktop.Hal.HotplugEvent message. This message origins from the hal.hotplug program, tools/linux/hal_hotplug.c, and is basically just a D-BUS-ification of the hotplug event.
Definition at line 371 of file linux_osspec.c. References ds_device_destroy(), ds_device_find_by_key_value_string(), ds_property_exists(), ds_property_get_bool(), ds_property_remove(), ds_property_set_bool(), HalDevice, HOTPLUG_INPUT_MAX, linux_class_block_removed(), linux_class_input_handle_hotplug_add(), parse_dec(), parse_hex(), sysfs_mount_path, HalDevice_s::udi, visit_class_device(), and visit_device(). Referenced by osspec_filter_function(). |
|
Handle a org.freedesktop.Hal.HotplugEvent message. This message origins from the hal.hotplug program, tools/linux/hal_hotplug.c, and is basically just a D-BUS-ification of the hotplug event.
Definition at line 567 of file linux_osspec.c. References ds_device_async_find_by_key_value_string(), HAL_LINUX_HOTPLUG_TIMEOUT, handle_udev_node_created_found_device(), and sysfs_mount_path. Referenced by osspec_filter_function(). |
|
Callback when the block device is found or if there is none..
Definition at line 608 of file linux_osspec.c. References ds_property_set_string(), HalDevice, linux_class_block_check_if_ready_to_add(), and HalDevice_s::udi. Referenced by handle_udev_node_created(). |
|
Message handler for method invocations. All invocations on any object or interface is routed through this function.
Definition at line 635 of file linux_osspec.c. References handle_hotplug(), and handle_udev_node_created(). Referenced by filter_function(). |
|
Initialize the OS specific parts of the daemon.
Definition at line 257 of file linux_osspec.c. References DIE, linux_class_block_init(), linux_class_net_init(), linux_class_scsi_init(), linux_class_v4l_init(), linux_ide_init(), linux_pci_init(), linux_usb_init(), and sysfs_mount_path. Referenced by main(). |
|
Visit all devices of a given class.
Definition at line 139 of file linux_osspec.c. References visit_class_device(). Referenced by osspec_probe(). |
|
Visitor function for any class device. This function determines the class of the device and call the appropriate visit_class_device_<classtype> function if matched.
Definition at line 85 of file linux_osspec.c. References DIE, visit_class_device_block(), visit_class_device_i2c_adapter(), visit_class_device_net(), visit_class_device_scsi_device(), visit_class_device_scsi_host(), and visit_class_device_v4l(). Referenced by handle_hotplug(), and visit_class(). |
|
Visitor function for any device. This function determines the bus-type of the device and call the appropriate visit_device_<bustype> function if matched.
Definition at line 175 of file linux_osspec.c. References DIE, visit_class_device_i2c_adapter(), visit_device_i2c(), visit_device_ide(), visit_device_ide_host(), visit_device_pci(), and visit_device_usb(). Referenced by handle_hotplug(), and osspec_probe(). |