Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

HAL hotplug helper for Linux
[Misc tools for HAL]

A short program for translating linux-hotplug events into D-BUS messages. The messages are sent to the HAL daemon. More...

Functions

int get_sysfs_mnt_path ()
 Get the mount path for sysfs.

int wait_for_sysfs_info (char *devpath, char *hotplug_type)
int main (int argc, char *argv[], char *envp[])
 Entry point.


Variables

char * sysfs_mnt_path [255]
char * file_list_usb []
char * file_list_usbif []
char * file_list_scsi_device [] = { NULL }
char * file_list_scsi_host [] = { NULL }
char * file_list_block []
char * file_list_pci []

Detailed Description

A short program for translating linux-hotplug events into D-BUS messages. The messages are sent to the HAL daemon.


Function Documentation

int get_sysfs_mnt_path  )  [static]
 

Get the mount path for sysfs.

A side-effect is that sysfs_mnt_path is set on success.

Returns:
0 on success, negative on error

Definition at line 65 of file hal_hotplug.c.

Referenced by main().

int main int  argc,
char *  argv[],
char *  envp[]
 

Entry point.

Parameters:
argc Number of arguments
argv Array of arguments
envp Environment
Returns:
Exit code

Todo:
handle error

Definition at line 248 of file hal_hotplug.c.

References get_sysfs_mnt_path().


Variable Documentation

char* file_list_block[] [static]
 

Initial value:

 { "dev",
    "size",
    NULL
}

Definition at line 123 of file hal_hotplug.c.

char* file_list_pci[] [static]
 

Initial value:

 { "device",
    "vendor",
    "subsystem_device",
    "subsystem_vendor",
    "class",
    NULL
}

Definition at line 128 of file hal_hotplug.c.

char* file_list_usb[] [static]
 

Initial value:

 { "idProduct",
    "idVendor",
    "bcdDevice",
    "bMaxPower",
    
    "bmAttributes",
    "manufacturer",
    "product",
    "bDeviceClass",
    "bDeviceSubClass",
    "bDeviceProtocol",
    "bNumConfigurations",
    "bConfigurationValue",
    "bNumInterfaces",
    NULL
}

Definition at line 95 of file hal_hotplug.c.

char* file_list_usbif[] [static]
 

Initial value:

 { "bInterfaceClass",
    "bInterfaceSubClass",
    "bInterfaceProtocol",
    "bInterfaceNumber",
    NULL
}

Definition at line 112 of file hal_hotplug.c.


Generated on Thu Mar 11 21:32:28 2004 for HAL by doxygen 1.3.6-20040222