zephyr::raw

Function k_pipe_read_avail

source
pub unsafe extern "C" fn k_pipe_read_avail(pipe: *mut k_pipe) -> usize
Expand description

@brief Query the number of bytes that may be read from @a pipe.

@param pipe Address of the pipe.

@retval a number n such that 0 <= n <= @ref k_pipe.size; the result is zero for unbuffered pipes.