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

Function umtx_pi_alloc

freebsd/kern/kern_umtx.c:1379–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377}
1378
1379static inline struct umtx_pi *
1380umtx_pi_alloc(int flags)
1381{
1382 struct umtx_pi *pi;
1383
1384 pi = uma_zalloc(umtx_pi_zone, M_ZERO | flags);
1385 TAILQ_INIT(&pi->pi_blocked);
1386 atomic_add_int(&umtx_pi_allocated, 1);
1387 return (pi);
1388}
1389
1390static inline void
1391umtx_pi_free(struct umtx_pi *pi)

Callers 1

do_lock_piFunction · 0.85

Calls 1

uma_zallocFunction · 0.50

Tested by

no test coverage detected