[−][src]Function mmal_sys::mmal_port_flush
pub unsafe extern "C" fn mmal_port_flush(port: *mut MMAL_PORT_T) -> Type
Ask a port to release all the buffer headers it currently has.
Flushing a port will ask the port to send all the buffer headers it currently has to the client. Flushing is an asynchronous request and the flush call will return before all the buffer headers are returned to the client. It is up to the client to keep a count on the buffer headers to know when the flush operation has completed. It is also important to note that flushing will also reset the state of the port and any processing which was buffered by the port will be lost.
\attention Flushing a connected port behaviour TBD.
@param port The port to flush. @return MMAL_SUCCESS on success