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...

Defines

#define strcat_len(dst, src)

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 [PATH_MAX]
const char * file_list_usb []
const char * file_list_usbif []
const char * file_list_scsi_device [] = { NULL }
const char * file_list_scsi_generic [] = { NULL }
const char * file_list_scsi_host [] = { NULL }
const char * file_list_block []
const 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.


Define Documentation

#define strcat_len dst,
src   ) 
 

Value:

do { \
    dst[sizeof (dst) - 1] = '\0'; \
    strncat (dst, src, sizeof (dst) - strlen (dst) - 1); \
} while(0)

Definition at line 144 of file hal_hotplug.c.


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 66 of file hal_hotplug.c.

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 262 of file hal_hotplug.c.

References get_sysfs_mnt_path().


Variable Documentation

const char* file_list_block[] [static]
 

Initial value:

 {
    "dev",
    "size",
    NULL
}

Definition at line 128 of file hal_hotplug.c.

const char* file_list_pci[] [static]
 

Initial value:

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

Definition at line 134 of file hal_hotplug.c.

const char* file_list_usb[] [static]
 

Initial value:

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

Definition at line 96 of file hal_hotplug.c.

const char* file_list_usbif[] [static]
 

Initial value:

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

Definition at line 114 of file hal_hotplug.c.


Generated on Sat Apr 24 19:57:52 2004 for HAL by doxygen 1.3.6-20040222