Index Index for
Section 9
Index Alphabetical
listing for U
Bottom of page Bottom of
page

unconfigure_driver(9r)

NAME

unconfigure_driver - General: Unconfigures a device driver that was dynamically configured

SYNOPSIS

int unconfigure_driver( char *bus_name, int bus_num, struct driver *driver_struct, char *target_name, int target_num );

ARGUMENTS

bus_name Specifies the name of the bus to search for in the system configuration tree. You specified this name in a previous call to the configure_driver interface. You can specify the bus name or the wildcard constant DRIVER_WILDNAME. bus_num Specifies the bus number to search for in the hardware topology tree. You specified this number in a previous call to the configure_driver interface. driver_struct Specifies the address of the driver structure associated with the controlling device driver. The driver structure name is typically based on the device driver name. For example, the driver structure for the /dev/none driver is nonedriver. You set the members of the driver structure (usually in the driver's declaration section) to appropriate values and then pass the address of the filled in structure to unconfigure_driver. target_name Specifies the controller name to search for in the hardware topology tree. You specified this name in a previous call to the configure_driver interface. target_num Specifies the controller number to search for in the hardware topology tree. You specified this number in a previous call to the configure_driver interface.

DESCRIPTION

The unconfigure_driver interface unconfigures a device driver that was dynamically configured into the kernel from the system (hardware) configuration tree. The unconfiguration tasks consist of marking the bus, controller, and device structures associated with the specific device driver as unused and available. The unconfigure_driver interface does not remove these structures from the hardware topology tree.

RETURN VALUES

The unconfigure_driver interface can return one of the following constants defined in /usr/sys/include/sys/errno.h: ESUCCESS The unconfigure_driver interface successfully unconfigured the specified device driver. ENODEV The unconfigure_driver interface cannot unconfigure the specified device driver because there is no such device.

SEE ALSO

Data Structures: driver(9s) Kernel Interfaces: configure_driver(9r)

Index Index for
Section 9
Index Alphabetical
listing for U
Top of page Top of
page