Skip to content

Commit 38c9a74

Browse files
Marcel Krügerfabiobaltieri
authored andcommitted
kernel.h: Fix k_msgq_get retval doxygen
Added a hint about -ENOMSG being returned when the queue is purged. Signed-off-by: Marcel Krüger <[email protected]>
1 parent b6aed5c commit 38c9a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4684,7 +4684,7 @@ __syscall int k_msgq_put(struct k_msgq *msgq, const void *data, k_timeout_t time
46844684
* K_FOREVER.
46854685
*
46864686
* @retval 0 Message received.
4687-
* @retval -ENOMSG Returned without waiting.
4687+
* @retval -ENOMSG Returned without waiting or queue purged.
46884688
* @retval -EAGAIN Waiting period timed out.
46894689
*/
46904690
__syscall int k_msgq_get(struct k_msgq *msgq, void *data, k_timeout_t timeout);

0 commit comments

Comments
 (0)