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

lan_create_controller(9r)

NAME

lan_create_controller - Network: Creates and initializes a controller data structure for a network device driver

SYNOPSIS

int lan_create_controller( struct lan_config_data *driver_data );

ARGUMENTS

driver_data Specifies a pointer to a lan_config_data structure, which is declared by the network driver. It contains information such as the driver data structure for the network device.

DESCRIPTION

The lan_create_controller() routine allocates and initializes a controller data structure for a network device. It uses data passed in via the driver_data argument to properly set up the controller structure.

NOTES

Make sure that a network device driver calls this routine from its probe interface so that a new spare controller data structure is available for Driver Framework to use.

RETURN VALUES

ESUCCESS The controller structure was successfully created. EINVAL Invalid input condition to the function detected. Ensure that the driver_data argument is initialized completely before calling lan_create_controller(). ENOMEM Unable to allocate memory required.

SEE ALSO

Data Structures: controller(9s), driver(9s), lan_config_data(9s) Writing Device Drivers

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