poll: k_poll: Document -EINTR return
In case K_POLL_STATE_NOT_READY is set the return will be set to -EINTR indicating that the poll was interrupted. Fixes #5026 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
8786244ebc
commit
8beb5862c5
1 changed files with 1 additions and 0 deletions
|
@ -3944,6 +3944,7 @@ extern void k_poll_event_init(struct k_poll_event *event, u32_t type,
|
|||
*
|
||||
* @retval 0 One or more events are ready.
|
||||
* @retval -EAGAIN Waiting period timed out.
|
||||
* @retval -EINTR Poller thread has been interrupted.
|
||||
*/
|
||||
|
||||
extern int k_poll(struct k_poll_event *events, int num_events,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue