canque_fifo_flush_slots

Name

canque_fifo_flush_slots --  free all ready slots from the FIFO

Synopsis

int canque_fifo_flush_slots (struct canque_fifo_t * fifo);

Arguments

fifo

pointer to the FIFO structure

Description

The caller should be prepared to handle situations, when some slots are held by input or output side slots processing. These slots cannot be flushed or their processing interrupted.

Return Value

The nonzero value indicates, that queue has not been empty before the function call.