From 1db7caae56a26b88d01eac82ac405544d50737be Mon Sep 17 00:00:00 2001 From: Paulo Santos Date: Tue, 23 Apr 2024 16:21:57 -0300 Subject: [PATCH] kernel: update k_work_schedule_for_queue() docstring This commit updates the missing retval from the underlying call of `submit_to_queue_locked()` when the work was running and has been queued to the queue that was running it. Signed-off-by: Paulo Santos --- include/zephyr/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/zephyr/kernel.h b/include/zephyr/kernel.h index 8b25d4036d2..7be3ea83d46 100644 --- a/include/zephyr/kernel.h +++ b/include/zephyr/kernel.h @@ -3632,6 +3632,8 @@ static inline k_ticks_t k_work_delayable_remaining_get( * * @retval 0 if work was already scheduled or submitted. * @retval 1 if work has been scheduled. + * @retval 2 if @p delay is @c K_NO_WAIT and work + * was running and has been queued to the queue that was running it. * @retval -EBUSY if @p delay is @c K_NO_WAIT and * k_work_submit_to_queue() fails with this code. * @retval -EINVAL if @p delay is @c K_NO_WAIT and