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

Function runq_setbit

freebsd/kern/kern_switch.c:351–362  ·  view source on GitHub ↗

* Set the status bit of the queue corresponding to priority level pri, * indicating that it is non-empty. */

Source from the content-addressed store, hash-verified

349 * indicating that it is non-empty.
350 */
351static __inline void
352runq_setbit(struct runq *rq, int pri)
353{
354 struct rqbits *rqb;
355
356 rqb = &rq->rq_status;
357 CTR4(KTR_RUNQ, "runq_setbit: bits=%#x %#x bit=%#x word=%d",
358 rqb->rqb_bits[RQB_WORD(pri)],
359 rqb->rqb_bits[RQB_WORD(pri)] | RQB_BIT(pri),
360 RQB_BIT(pri), RQB_WORD(pri));
361 rqb->rqb_bits[RQB_WORD(pri)] |= RQB_BIT(pri);
362}
363
364/*
365 * Add the thread to the queue specified by its priority, and set the

Callers 2

runq_addFunction · 0.85
runq_add_priFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected