 |
Index for Section 9 |
|
 |
Alphabetical listing for D |
|
 |
Bottom of page |
|
devsw_get(9r)
NAME
devsw_get - General: Returns the entry points and major number for a device
driver
SYNOPSIS
#include <sys/conf.h>
int devsw_get(
char *driver_name,
int driver_reg_instance,
int major_number,
struct dsent *dsent_ptr );
ARGUMENTS
driver_name
Specifies a null-terminated string that represents the name of the
device driver.
driver_reg_instance
Specifies an integer that represents a specific reservation instance
for this driver. This argument allows a driver to uniquely identify
multiple major numbers for the driver.
major_number
Specifies the major number for the driver.
dsent_ptr
Specifies a pointer to the device switch structure that contains
pointers to the device driver's entry points for the system service's
I/O requests and other information.
DESCRIPTION
The devsw_get interface returns a device driver's I/O services interfaces
and major number. Tru64 UNIX reserves this major number across boots.
RETURN VALUES
Upon successful completion, the devsw_get interface returns the reserved
major number. Otherwise, on an error, the devsw_get interface returns the
value -1. The following list describes possible error conditions:
· The devsw_get interface is not available to be called at this point in
the driver.
· The name you passed to the driver_name argument is not a valid name.
· The pointer passed to the dsent_ptr argument is not valid.
SEE ALSO
Kernel Interfaces: devsw_del(9r), devsw_add(9r)
Data Structures: dsent(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for D |
|
 |
Top of page |
|