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 <pauloroberto.santos@edge.ufal.br>
This commit is contained in:
parent
644f6b6e97
commit
1db7caae56
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user