FreeBSD/sys/geom/sched/gs_rr.c
/* print the status of a queue */
print the status of a queue
print the status of a queue
static void
gs_rr_dump_q(struct g_rr_queue *qp, int index)
{
	int l = 0;
	struct bio *bp;
	TAILQ_FOREACH(bp, &(qp->q_bioq.queue), bio_queue) {
		l++;
	}
	printf("--- rr queue %d %p status %d len %d ---\n",
	    index, qp, qp->q_status, l);
}
static void gs_rr_dump_q ( struct g_rr_queue * qp , int index ) { int l = 0 ; struct bio * bp ; TAILQ_FOREACH ( bp , & ( qp -> q_bioq . queue ) , bio_queue ) { l ++ ; } printf ( " \n " , index , qp , qp -> q_status , l ) ; }
print the status of a queue
print the status of a queue