diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2013-11-22 10:23:55 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2013-11-22 10:23:55 +0100 |
commit | 63cf9b795eb2367f0b5f3279993d97df19dc17a9 (patch) | |
tree | fb5b53273c42bd7c903a937af6d0e53e0f5984ae | |
parent | fc9df7d5a2fcbabcb386f144921be364300d5ed0 (diff) |
DRVMGR: added return error descriptions
-rw-r--r-- | cpukit/libdrvmgr/drvmgr.h | 12 |
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. |