summaryrefslogtreecommitdiff
path: root/nuttx/sched/mq_receive.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-14 19:30:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-14 19:30:31 +0000
commite135573acc348649e767ca67a1ec189fe4e0fcda (patch)
treeb34f7d2914cba8aeb9311c5bae3771af40054640 /nuttx/sched/mq_receive.c
parentd76fa866ad009d65396acf1aa08fcffd3b4b041e (diff)
downloadpx4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.gz
px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.bz2
px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.zip
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4940 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/mq_receive.c')
-rw-r--r--nuttx/sched/mq_receive.c34
1 files changed, 15 insertions, 19 deletions
diff --git a/nuttx/sched/mq_receive.c b/nuttx/sched/mq_receive.c
index aff9e3be8..760433446 100644
--- a/nuttx/sched/mq_receive.c
+++ b/nuttx/sched/mq_receive.c
@@ -2,7 +2,7 @@
* sched/mq_receive.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -73,25 +73,22 @@
************************************************************************/
/************************************************************************
- * Function: mq_receive
+ * Name: mq_receive
*
* Description:
- * This function receives the oldest of the highest
- * priority messages from the message queue specified by
- * "mqdes." If the size of the buffer in bytes (msglen) is
- * less than the "mq_msgsize" attribute of the message
- * queue, mq_receive will return an error. Otherwise, the
- * selected message is removed from the queue and copied to
- * "msg."
+ * This function receives the oldest of the highest priority messages
+ * from the message queue specified by "mqdes." If the size of the
+ * buffer in bytes (msglen) is less than the "mq_msgsize" attribute of
+ * the message queue, mq_receive will return an error. Otherwise, the
+ * selected message is removed from the queue and copied to "msg."
*
- * If the message queue is empty and O_NONBLOCK was not
- * set, mq_receive() will block until a message is added
- * to the message queue. If more than one task is waiting
- * to receive a message, only the task with the highest
- * priority that has waited the longest will be unblocked.
+ * If the message queue is empty and O_NONBLOCK was not set,
+ * mq_receive() will block until a message is added to the message
+ * queue. If more than one task is waiting to receive a message, only
+ * the task with the highest priority that has waited the longest will
+ * be unblocked.
*
- * If the queue is empty and O_NONBLOCK is set, ERROR will
- * be returned.
+ * If the queue is empty and O_NONBLOCK is set, ERROR will be returned.
*
* Parameters:
* mqdes - Message Queue Descriptor
@@ -100,9 +97,8 @@
* prio - If not NULL, the location to store message priority.
*
* Return Value:
- * One success, the length of the selected message in bytes.is
- * returned. On failure, -1 (ERROR) is returned and the errno
- * is set appropriately:
+ * One success, the length of the selected message in bytes is returned.
+ * On failure, -1 (ERROR) is returned and the errno is set appropriately:
*
* EAGAIN The queue was empty, and the O_NONBLOCK flag was set
* for the message queue description referred to by 'mqdes'.