Allocates and deallocates a channel for an Ethernet device handler.
#include <sys/device.h>
int entmpx (devno, chanp, channame) dev_t devno; int *chanp; char *channame;
The entmpx entry point allocates and deallocates a channel for an Ethernet device handler. This entry point is not called directly by a user. The kernel calls the entmpx entry point in response to an open or close request.
Note: If the Ethernet device has been successfully opened, any subsequent Diagnostic mode open requests is unsuccessful. If the device has been successfully opened in Diagnostic mode, all subsequent open requests is unsuccessful.
An entmpx entry point can be called from the process environment only.
In general, communication device handlers use the common return codes defined for an entry point. However, device handlers for specific communication devices may return device-specific codes. The common return codes for the entmpx entry point are the following:
EBUSY | Indicates the maximum number of opens was exceeded. |
ENOMSG | No message of desired type. |
ENODEV | Indicates the specified device does not exist. |
ENXIO | Indicates the device is not configured. |
The entmpx entry point functions with an Ethernet High-Performance LAN adapter that has been correctly configured for use on a qualified network. Consult the adapter specifications for more information on configuring the adapter and network qualifications.
The entopen entry point.