canque_fifo_test_outslot

Name

canque_fifo_test_outslot --  test and get ready slot from the FIFO

Synopsis

int canque_fifo_test_outslot (struct canque_fifo_t * fifo, struct canque_slot_t ** slotp);

Arguments

fifo

pointer to the FIFO structure

slotp

pointer to location to store pointer to the oldest slot from the FIFO.

Return Value

The negative value indicates, that queue is empty. The positive or zero value represents command stored into slot by the call to the function canque_fifo_get_inslot. The successfully acquired FIFO output slot has to be released by the call canque_fifo_free_outslot or canque_fifo_again_outslot.