zephyr::raw

Function k_pipe_reset

Source
pub unsafe extern "C" fn k_pipe_reset(pipe: *mut k_pipe)
Expand description

@brief Reset a pipe This routine resets the pipe, discarding any unread data and unblocking any threads waiting to write or read, causing the waiting threads to return with -ECANCELED. Calling k_pipe_read(..) or k_pipe_write(..) when the pipe is resetting but not yet reset will return -ECANCELED. The pipe is left open after a reset and can be used as normal.

@param pipe Address of the pipe.