summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2013-11-22 10:23:55 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2013-11-22 10:23:55 +0100
commit63cf9b795eb2367f0b5f3279993d97df19dc17a9 (patch)
treefb5b53273c42bd7c903a937af6d0e53e0f5984ae
parentfc9df7d5a2fcbabcb386f144921be364300d5ed0 (diff)
DRVMGR: added return error descriptions
-rw-r--r--cpukit/libdrvmgr/drvmgr.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libdrvmgr/drvmgr.h b/cpukit/libdrvmgr/drvmgr.h
index 09d46ea4b2..4bb0fabe05 100644
--- a/cpukit/libdrvmgr/drvmgr.h
+++ b/cpukit/libdrvmgr/drvmgr.h
@@ -313,15 +313,15 @@ struct drvmgr_drv_reg_func {
/* Return Codes */
enum {
- DRVMGR_OK = 0,
- DRVMGR_NOMEM = 1,
- DRVMGR_EIO = 2,
- DRVMGR_EINVAL = 3,
+ DRVMGR_OK = 0, /* Sucess */
+ DRVMGR_NOMEM = 1, /* Memory allocation error */
+ DRVMGR_EIO = 2, /* I/O error */
+ DRVMGR_EINVAL = 3, /* Invalid parameter */
DRVMGR_ENOSYS = 4,
- DRVMGR_TIMEDOUT = 5,
+ DRVMGR_TIMEDOUT = 5, /* Operation timeout error */
DRVMGR_EBUSY = 6,
DRVMGR_ENORES = 7, /* Not enough resources */
- DRVMGR_FAIL = -1
+ DRVMGR_FAIL = -1 /* Unspecified failure */
};
/*! Initialize data structures of the driver management system.