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

Function sleepq_alloc

freebsd/kern/subr_sleepqueue.c:241–246  ·  view source on GitHub ↗

* Get a sleep queue for a new thread. */

Source from the content-addressed store, hash-verified

239 * Get a sleep queue for a new thread.
240 */
241struct sleepqueue *
242sleepq_alloc(void)
243{
244
245 return (uma_zalloc(sleepq_zone, M_WAITOK));
246}
247
248/*
249 * Free a sleep queue when a thread is destroyed.

Callers 2

init_sleepqueuesFunction · 0.85
thread_initFunction · 0.85

Calls 1

uma_zallocFunction · 0.50

Tested by

no test coverage detected