Specifications
D
evice Driver Programming
17-14
Overview of the Device Configuration Program 17
User-level device drivers written by Concurrent Computer Corporation personnel must
include a device configuration program for the device controlled by the driver. The
primary purpose of this program is to perform system-wide initialization procedures that
are required for use of the device. Following completion of the initialization procedures,
users should be able to open and use the device. Major capabilities of the device
configuration program are as follows:
• Create the shared memory regions to be attached on a call to the driver’s
open routine.
• Initialize the device and reset it.
• Create a user-level interrupt process, if appropriate.
• Provide debug and status information.
• Restore the device to its initial state.
Procedures for developing the device configuration program are explained in detail in
“Developing the Device Configuration Program” on page 17-38.
EUD_INVAL invalid argument or parameter
EUD_IENB interrupts have been enabled
EUD_INTRFAILED unable to create interrupt routine
EUD_ICONNECT unable to connect/disconnect interrupt routine
EUD_IENBFAILED failed to enable interrupts
EUD_MEMLOCK unable to lock driver text pages
EUD_NOINTR no interrupt routine available
EUD_IOREQ too many I/O requests
EUD_SHMLOCK unable to lock driver shared memory regions
EUD_RESOURCE resource unavailable
EUD_WOULDBLOCK process would block
EUD_INPROGRESS data transfer in progress
EUD_ALREADY request already completed
Table 16-1. User-Level Device Driver Error Codes and Messages (Cont.)
Symbolic Name Message