FreeBSD/sys/netpfil/ipfw/dn_sched_rr.c
/* Remove the head queue from circular list. */
Remove the head queue from circular list.
Remove the head queue from circular list .
static inline void
rr_remove_head(struct rr_si *si)
{
	if (si->head == NULL)
		return; 
	si->head->status = 0;
	if (si->head == si->tail) {
		si->head = si->tail = NULL;
		return;
	}
	si->head = si->head->qnext;
	si->tail->qnext = si->head;
}
static inline void rr_remove_head ( struct rr_si * si ) { if ( si -> head == NULL ) return ; si -> head -> status = 0 ; if ( si -> head == si -> tail ) { si -> head = si -> tail = NULL ; return ; } si -> head = si -> head -> qnext ; si -> tail -> qnext = si -> head ; }
Remove the head queue from circular list.
Remove the head queue from circular list .
/* empty queue */