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

create_bus_struct(9r)

NAME

create_bus_struct - General: Creates a bus structure for the system (hardware) configuration tree

SYNOPSIS

int create_bus_struct( struct bus_config *bus_cnfg );

ARGUMENTS

bus_cnfg Specifies a pointer to the bus_config structure associated with a specific bus. You set the members of the bus_config structure to appropriate values and then pass the address of the filled-in structure to the create_bus_struct routine.

DESCRIPTION

The create_bus_struct routine creates a bus structure for each instance of a bus that the device driver supports. The routine integrates the bus structure for a specific bus into the list of bus structures that reside in the system configuration tree.

NOTES

Typically, you supply the information needed by the create_bus_struct routine by passing to it the address of the filled-in bus_config structure. However, if any of this information needs to be configurable (that is, you want to give a system manager the ability to dynamically change this information), you must: · Define attributes for the information contained in the bus_config structure in the sysconfigtab file fragment · Define these attributes in the driver's cfg_subsys_attr_t data structure · Check these attribute definitions in the device driver's configure routine and appropriately modify the call to the create_bus_structroutine

RETURN VALUES

Upon successful completion, create_bus_struct returns ESUCCESS. On failure, it returns EINVAL.

SEE ALSO

Routines: create_controller_struct(9r) and create_device_struct(9r) Data Structures: bus_config(9s)

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