zephyr::raw

Function k_pipe_buffer_flush

source
pub unsafe extern "C" fn k_pipe_buffer_flush(pipe: *mut k_pipe)
Expand description

@brief Flush the pipe’s internal buffer

This routine flushes the pipe’s internal buffer. This is equivalent to reading up to N bytes from the pipe (where N is the size of the pipe’s buffer) into a temporary buffer and then discarding that buffer. If there were writers previously pending, then some may unpend as they try to fill up the pipe’s emptied buffer.

@param pipe Address of the pipe.