Configures the generic data link control (GDLC) device manager.
The dlcconfig entry point is called during the kernel startup procedures to initialize the GDLC device manager with its device information. The operating system also calls this routine when the GDLC is being terminated or queried for vital product data.
Each GDLC supports the dlcconfig entry point as its switch table entry for the sysconfig subroutine. The file system calls this entry point from the process environment only.
Item | Description |
---|---|
devno | Indicates major and minor device numbers. This is a dev_t device number that specifies both the major and minor device numbers of the GDLC device manager. One dev_t device number exists for each type of GDLC, such as Ethernet, Token-Ring, or SDLC. |
op | Specifies the operation code that indicates the function
to be performed:
|
uiop | Points to the uio structure specifying the location and length of the caller's data area for the CFG_INIT and CFG_QVPD operation codes. No data areas are specifically defined for GDLC, but DLCs can define the data areas for a particular network. |
The following return values are defined in the /usr/include/sys/errno.h file:
Item | Description |
---|---|
0 | Indicates a successful operation. |
EINVAL | Indicates an invalid value. |
ENODEV | Indicates that no such device handler is present. |
EFAULT | Indicates that a kernel service, such as the uiomove or devswadd kernel service, has failed. |