Skip to content

Commit 32801d3

Browse files
yf13Alan Carvalho de Assis
authored andcommitted
fs/mq_open: revising comments
This contains minor revision on comments of `file_mq_open()`. Signed-off-by: Yanfeng Liu <[email protected]>
1 parent 4c01594 commit 32801d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/mqueue/mq_open.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ static mqd_t nxmq_vopen(FAR const char *mq_name, int oflags, va_list ap)
393393
* behavior of this function
394394
*
395395
* Input Parameters:
396+
* mq - address of to-be-initialized struct file instance.
396397
* mq_name - Name of the queue to open
397398
* oflags - open flags
398399
* Optional parameters. When the O_CREAT flag is specified, two optional
@@ -407,7 +408,7 @@ static mqd_t nxmq_vopen(FAR const char *mq_name, int oflags, va_list ap)
407408
* Returned Value:
408409
* This is an internal OS interface and should not be used by applications.
409410
* It follows the NuttX internal error return policy: Zero (OK) is
410-
* returned on success, mqdes point to the new message queue descriptor.
411+
* returned on success, instance pointed by mq is also initialized.
411412
* A negated errno value is returned on failure.
412413
*
413414
****************************************************************************/

0 commit comments

Comments
 (0)