[][src]Function nrfxlib_sys::nrf_poll

pub unsafe extern "C" fn nrf_poll(
    p_fds: *mut nrf_pollfd,
    nfds: u32,
    timeout: c_int
) -> c_int

@brief Method to poll for events on one or more sockets.

@param[inout] An array of sockets, and respective for each socket that the caller polls for. The occurred events per socket is returned in the requested field of @ref struct nrf_pollfd structure. Shall not be NULL. @param[in] Positive number of sockets being polled for events. Shall not be more than @ref BSD_MAX_SOCKET_COUNT.

@param[in] Timeout in milliseconds. The methods waits for this time period for the events to occur on the sockets.

@retval A positive number less than or equal to nfds indicating sockets on which events occurred. 0 indicates the timed out occurred and no file descriptors were ready. -1 on error, and errno indicates the reason for failure. @{