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

Function alloc_unr64

freebsd/kern/subr_unit.c:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101#ifdef UNR64_LOCKED
102uint64_t
103alloc_unr64(struct unrhdr64 *unr64)
104{
105 uint64_t item;
106
107 mtx_lock(&unitmtx);
108 item = unr64->counter++;
109 mtx_unlock(&unitmtx);
110 return (item);
111}
112#endif
113
114#else /* ...USERLAND */

Callers 2

pipe_createFunction · 0.70
shm_allocFunction · 0.70

Calls 2

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected