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

Function runq_init

freebsd/kern/kern_switch.c:265–273  ·  view source on GitHub ↗

* SYSTEM RUN QUEUE manipulations and tests * ************************************************************************/ * Initialize a run structure. */

Source from the content-addressed store, hash-verified

263 * Initialize a run structure.
264 */
265void
266runq_init(struct runq *rq)
267{
268 int i;
269
270 bzero(rq, sizeof *rq);
271 for (i = 0; i < RQ_NQS; i++)
272 TAILQ_INIT(&rq->rq_queues[i]);
273}
274
275/*
276 * Clear the status bit of the queue corresponding to priority level pri,

Callers 2

setup_runqsFunction · 0.85
tdq_setupFunction · 0.85

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected