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

Function runq_clrbit

freebsd/kern/kern_switch.c:279–290  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

277 * indicating that it is empty.
278 */
279static __inline void
280runq_clrbit(struct runq *rq, int pri)
281{
282 struct rqbits *rqb;
283
284 rqb = &rq->rq_status;
285 CTR4(KTR_RUNQ, "runq_clrbit: bits=%#x %#x bit=%#x word=%d",
286 rqb->rqb_bits[RQB_WORD(pri)],
287 rqb->rqb_bits[RQB_WORD(pri)] & ~RQB_BIT(pri),
288 RQB_BIT(pri), RQB_WORD(pri));
289 rqb->rqb_bits[RQB_WORD(pri)] &= ~RQB_BIT(pri);
290}
291
292/*
293 * Find the index of the first non-empty run queue. This is done by

Callers 1

runq_remove_idxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected