From 32801d3047174ef30cea759d0ec0dcd31a077bca Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Sat, 31 Aug 2024 18:15:24 +0800 Subject: [PATCH] fs/mq_open: revising comments This contains minor revision on comments of `file_mq_open()`. Signed-off-by: Yanfeng Liu --- fs/mqueue/mq_open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/mqueue/mq_open.c b/fs/mqueue/mq_open.c index 7b30440de5d..799c9359b49 100644 --- a/fs/mqueue/mq_open.c +++ b/fs/mqueue/mq_open.c @@ -393,6 +393,7 @@ static mqd_t nxmq_vopen(FAR const char *mq_name, int oflags, va_list ap) * behavior of this function * * Input Parameters: + * mq - address of to-be-initialized struct file instance. * mq_name - Name of the queue to open * oflags - open flags * 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) * Returned Value: * This is an internal OS interface and should not be used by applications. * It follows the NuttX internal error return policy: Zero (OK) is - * returned on success, mqdes point to the new message queue descriptor. + * returned on success, instance pointed by mq is also initialized. * A negated errno value is returned on failure. * ****************************************************************************/