MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bioq_takefirst

Function bioq_takefirst

freebsd/kern/subr_disk.c:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218struct bio *
219bioq_takefirst(struct bio_queue_head *head)
220{
221 struct bio *bp;
222
223 bp = TAILQ_FIRST(&head->queue);
224 if (bp != NULL)
225 bioq_remove(head, bp);
226 return (bp);
227}
228
229/*
230 * Compute the sorting key. The cast to unsigned is

Callers 2

zvol_geom_workerFunction · 0.85
bioq_flushFunction · 0.85

Calls 1

bioq_removeFunction · 0.85

Tested by

no test coverage detected