zephyr/include/misc
Robert Lubos ee0b61fff8 net: sockets: Rework poll to support ioctl helper commands
This commit reworks socket poll implementation to support multiple
socket implementations.

To achieve that, two ioctl poll helper requests were added:
ZFD_IOCTL_POLL_PREPARE and ZFD_IOCTL_POLL_UPDATE. The poll
implementation calls ioctl with these requests for each socket
requested in the fds table.

The first request is responsible for preparing k_poll_event objects
for specific socket. It can request to skip waiting in k_poll by
returning EALREADY through errno.

The latter request is responsible for processing outcome of k_poll for
each socket. It can request to retry the k_poll by returning EAGAIN
through errno.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2018-12-10 11:38:13 +02:00
..
__assert.h include: __assert: Fix output formatting of __ASSERT_NO_MSG() 2018-12-05 11:21:51 +01:00
byteorder.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
dlist.h misra: Fixes for MISRA-C rule 8.2 2018-12-07 09:06:34 -05:00
errno_private.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
fdtable.h net: sockets: Rework poll to support ioctl helper commands 2018-12-10 11:38:13 +02:00
libc-hooks.h libc: newlib: libc-hooks: Consistently use const void* as arg to write 2018-10-22 15:01:12 +01:00
list_gen.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
mempool_base.h misc: mempool: Using distinct macro identifiers 2018-10-31 19:43:47 -04:00
mempool.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
printk.h misra: Fixes for MISRA-C rule 8.2 2018-12-07 09:06:34 -05:00
rb.h misc: rb: Make an evaluation a boolean expression 2018-11-30 08:05:11 -08:00
reboot.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ring_buffer.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
sflist.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
slist.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
stack.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
util.h include: misc: Do not mix comment characters 2018-11-06 16:20:15 -05:00