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

Function turnstile_alloc

freebsd/kern/subr_turnstile.c:540–545  ·  view source on GitHub ↗

* Get a turnstile for a new thread. */

Source from the content-addressed store, hash-verified

538 * Get a turnstile for a new thread.
539 */
540struct turnstile *
541turnstile_alloc(void)
542{
543
544 return (uma_zalloc(turnstile_zone, M_WAITOK));
545}
546
547/*
548 * Free a turnstile when a thread is destroyed.

Callers 2

init_turnstile0Function · 0.85
thread_initFunction · 0.85

Calls 1

uma_zallocFunction · 0.50

Tested by

no test coverage detected