Pavel Pisa commented on a discussion on cpukit/dev/can/can-queue.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108458 > + * > + * @param fifo Pointer to the FIFO structure. > + * > + * @return The nonzero value indicates that queue has not been > + * empty before the function call. > + * > + */ > +int canque_fifo_flush_slots( struct canque_fifo_t *fifo ) > +{ > + struct canque_slot_t *slot; > + int ret = 0; > + > + rtems_mutex_lock( &fifo->fifo_lock ); > + slot = fifo->head; > + if ( slot ) { > + *fifo->tail = fifo->flist; flist is documented as This member holds the pointer to list of the free slots associated with queue The name can be more descriptive (free_list or head_of_free_list) but it is internal to low level FIFO implementation and should not be used directly by code outside of this low level. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108458 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs