Device Error Codes
Device functions use a unified set of error codes defined in
The LayGO error code on the basis of which a device
error code is given can be retrieved by calling
- lgo_Attach() returned an error.
- The device database could not be found or could not be opened for reading.
- At least one layer in the device failed to connect or an attempt to accept a
connect request failed.
- lgo_Detach() returned an error.
- lgo_Push() returned an error in dev_Open().
- All of the layers below the top layer are in data transfer state.
- The function called assumes that the device has been connected, but it has not or
the device is still in listening state;
- The function called assumes that the device has been disconnected, but it has not.
- The named device was not found in the device database.
- The function called assumes that the device is listening, but it is not.
- The function called assumes that the device has been opened, but it has not been.
- At least one layer in the device failed to disconnect.
- An internal error has occurred in the library. This
indicates an unexpected condition was encountered.
- A CID in the device is invalid. This indicates an internal error.
- The device id given is
NULL or the device definition given in the device database is invalid.
- A parameter to dev_New() is
- lgo_Listen() failed on at least one layer.
- The device is multiplexed and does not contain a read/write CID or
cannot be closed because minor devices remain open.
- No layer with the given protocol id exists in the device.
- A request for memory was denied. The ability to recover
from this condition is questionable.
- lgo_Reopen() returned an error.
- lgo_Open() returned an error in dev_Open().
- The device cannot be unblocked at this time.
- The device could not be unblocked.