diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-09-12 14:58:16 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-09-13 12:44:49 -0500 |
commit | f00cbc2321649c74c078784a1fc47da3b10e1a54 (patch) | |
tree | e4bf96f22176dda426bc678602aef25bc95a3564 /src/include/sys | |
parent | 89dc4c2dc72a77bc278b388d66681e943fb6d539 (diff) | |
download | talos-hostboot-f00cbc2321649c74c078784a1fc47da3b10e1a54.tar.gz talos-hostboot-f00cbc2321649c74c078784a1fc47da3b10e1a54.zip |
Return code cleanups.
Change-Id: I375c2f895f28b73948aa384dda781b31f027719b
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/334
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys')
-rw-r--r-- | src/include/sys/msg.h | 9 | ||||
-rw-r--r-- | src/include/sys/vfs.h | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/include/sys/msg.h b/src/include/sys/msg.h index 215da312e..be7ba397a 100644 --- a/src/include/sys/msg.h +++ b/src/include/sys/msg.h @@ -171,7 +171,11 @@ ALWAYS_INLINE * * @param[in] q - message queue * @param[in] msg - message - * @return Always returns zero. + * + * @return Status of message send. + * @retval 0 - Success + * @retval -EINVAL - Invalid pointer passed to kernel. + * @retval -EINVAL - Message type is in kernel range. */ int msg_send(msg_q_t q, msg_t* msg); @@ -197,7 +201,10 @@ int msg_sendrecv(msg_q_t q, msg_t* msg); * * @param[in] q - message queue * @param[in] msg - response message + * * @return Zero on success, else negative. + * @retval -EBADF - Message was not sent synchronously. + * */ int msg_respond(msg_q_t q, msg_t* msg); diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h index 52629499b..f16e91b23 100644 --- a/src/include/sys/vfs.h +++ b/src/include/sys/vfs.h @@ -62,7 +62,7 @@ extern const char* VFS_ROOT; extern const char* VFS_ROOT_BIN; extern const char* VFS_ROOT_DATA; extern const char* VFS_ROOT_MSG; -extern const char* VFS_MSG; +extern const char* VFS_ROOT_MSG_VFS; enum VfsMessages { @@ -105,7 +105,9 @@ VfsSystemModule * vfs_find_module(VfsSystemModule * i_table, const char * i_name * Call the module start routine * @param[in] i_module VfsSystemModule data for the module * @param[in] i_param parameter to pass to task_create() for this module - * @return tid_t of started task | -1 if i_module is NULL | -2 if there is no start() + * @return tid_t of started task or negative value on error. + * @retval -ENOENT if i_module is NULL + * @retval -ENOEXEC if there is no start() */ tid_t vfs_exec(VfsSystemModule * i_module, void* i_param); #endif |