summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPeter Mitsis <peter.mitsis@windriver.com>2016-10-13 11:37:40 -0400
committerBenjamin Walsh <benjamin.walsh@windriver.com>2016-10-19 14:54:45 +0000
commitd7a3750b3c511c4f4e7cf2ce56a72a81c4aa2d10 (patch)
tree468d0b81837d99b38c2f0f450c090ca0bae9d9a7 /kernel
parent1da807e7a8bb61a8eea1052075037b402335674d (diff)
unified: Update msgq doxygen styled function headers
Change-Id: I4648ebcda9e6c3abea05b420584e2bcb112f3ed4 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/unified/msg_q.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/kernel/unified/msg_q.c b/kernel/unified/msg_q.c
index a6776d599..ff6914f2d 100644
--- a/kernel/unified/msg_q.c
+++ b/kernel/unified/msg_q.c
@@ -29,16 +29,6 @@
#include <wait_q.h>
#include <misc/dlist.h>
-/**
- * @brief Initialize a message queue.
- *
- * @param q Pointer to the message queue object.
- * @param buffer Pointer to memory area that holds queued messages.
- * @param msg_size Message size, in bytes.
- * @param max_msgs Maximum number of messages that can be queued.
- *
- * @return N/A
- */
void k_msgq_init(struct k_msgq *q, char *buffer,
uint32_t msg_size, uint32_t max_msgs)
{
@@ -53,18 +43,6 @@ void k_msgq_init(struct k_msgq *q, char *buffer,
SYS_TRACING_OBJ_INIT(msgq, q);
}
-/**
- * @brief Adds a message to a message queue.
- *
- * @param q Pointer to the message queue object.
- * @param data Pointer to message data area.
- * @param timeout Maximum time (nanoseconds) to wait for operation to complete.
- * Use K_NO_WAIT to return immediately, or K_FOREVER to wait as long as
- * necessary.
- *
- * @return 0 if successful, -ENOMSG if failed immediately or after queue purge,
- * -EAGAIN if timed out
- */
int k_msgq_put(struct k_msgq *q, void *data, int32_t timeout)
{
unsigned int key = irq_lock();
@@ -110,17 +88,6 @@ int k_msgq_put(struct k_msgq *q, void *data, int32_t timeout)
return result;
}
-/**
- * @brief Removes a message from a message queue.
- *
- * @param q Pointer to the message queue object.
- * @param data Pointer to message data area.
- * @param timeout Maximum time (nanoseconds) to wait for operation to complete.
- * Use K_NO_WAIT to return immediately, or K_FOREVER to wait as long as
- * necessary.
- *
- * @return 0 if successful, -ENOMSG if failed immediately, -EAGAIN if timed out
- */
int k_msgq_get(struct k_msgq *q, void *data, int32_t timeout)
{
unsigned int key = irq_lock();
@@ -173,16 +140,6 @@ int k_msgq_get(struct k_msgq *q, void *data, int32_t timeout)
return result;
}
-/**
- * @brief Purge contents of a message queue.
- *
- * Discards all messages currently in the message queue, and cancels
- * any "add message" operations initiated by waiting threads.
- *
- * @param q Pointer to the message queue object.
- *
- * @return N/A
- */
void k_msgq_purge(struct k_msgq *q)
{
unsigned int key = irq_lock();