summaryrefslogtreecommitdiffstats
path: root/src/include/sys
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2012-06-14 15:23:25 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-07-09 13:41:04 -0500
commit434253f2763c99351a8c790f43704cca816ba442 (patch)
tree699483556d5c47a7cb21f87a721ce88ce3d1312b /src/include/sys
parente4a23b3b4b8a7906852a39f7fef202f04f374ce6 (diff)
downloadtalos-hostboot-434253f2763c99351a8c790f43704cca816ba442.tar.gz
talos-hostboot-434253f2763c99351a8c790f43704cca816ba442.zip
Mailbox additional error handling for Hardware errors and Invalid messages
RTC: 37990 Change-Id: I8378845ed412490a3bd214ac5198ea1fc9f19664 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1221 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys')
-rw-r--r--src/include/sys/msg.h54
-rw-r--r--src/include/sys/vfs.h46
2 files changed, 56 insertions, 44 deletions
diff --git a/src/include/sys/msg.h b/src/include/sys/msg.h
index 4bbf0b265..129d0c36b 100644
--- a/src/include/sys/msg.h
+++ b/src/include/sys/msg.h
@@ -1,25 +1,26 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/include/sys/msg.h $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2010 - 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG
+ * This is an automatically generated prolog.
+ *
+ * $Source: src/include/sys/msg.h $
+ *
+ * IBM CONFIDENTIAL
+ *
+ * COPYRIGHT International Business Machines Corp. 2010-2012
+ *
+ * p1
+ *
+ * Object Code Only (OCO) source materials
+ * Licensed Internal Code Source Materials
+ * IBM HostBoot Licensed Internal Code
+ *
+ * The source code for this program is not published or other-
+ * wise divested of its trade secrets, irrespective of what has
+ * been deposited with the U.S. Copyright Office.
+ *
+ * Origin: 30
+ *
+ * IBM_PROLOG_END_TAG
+ */
#ifndef __SYS_MSG_H
#define __SYS_MSG_H
@@ -144,6 +145,15 @@ void msg_q_destroy( msg_q_t q );
*/
int msg_q_register(msg_q_t q, const char* name);
+/** @fn msg_q_remove
+ * @brief Remove a message queue from the registry
+ *
+ * @param[in] name - name of the message queue
+ *
+ * @return 0 on success or -ENXIO if queue not found.
+ */
+int msg_q_remove(const char * name);
+
/** @fn msg_q_resolve
* @brief Given the name of a message queue, return the handle to it.
diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h
index 3094a1707..254a10350 100644
--- a/src/include/sys/vfs.h
+++ b/src/include/sys/vfs.h
@@ -1,25 +1,26 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/include/sys/vfs.h $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2010 - 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG
+ * This is an automatically generated prolog.
+ *
+ * $Source: src/include/sys/vfs.h $
+ *
+ * IBM CONFIDENTIAL
+ *
+ * COPYRIGHT International Business Machines Corp. 2010-2012
+ *
+ * p1
+ *
+ * Object Code Only (OCO) source materials
+ * Licensed Internal Code Source Materials
+ * IBM HostBoot Licensed Internal Code
+ *
+ * The source code for this program is not published or other-
+ * wise divested of its trade secrets, irrespective of what has
+ * been deposited with the U.S. Copyright Office.
+ *
+ * Origin: 30
+ *
+ * IBM_PROLOG_END_TAG
+ */
#ifndef __SYS_VFS_H
#define __SYS_VFS_H
@@ -67,6 +68,7 @@ extern const char* VFS_ROOT_MSG_VFS;
enum VfsMessages
{
VFS_MSG_REGISTER_MSGQ, //!< Message to VFS_ROOT to register a message queue
+ VFS_MSG_REMOVE_MSGQ, //!< Message to VFS_ROOT to remove a message queue
VFS_MSG_RESOLVE_MSGQ, //!< Message to VFS_ROOT to find a message queue
VFS_MSG_EXEC, //!< Message to VFS_ROOT execute a module
VFS_MSG_LOAD, //!< Message to vfsrp to load a module
OpenPOWER on IntegriCloud