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

Function bit_alloc

freebsd/sys/bitstring.h:120–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118/* Allocate a bit string initialized with no bits set. */
119#ifdef _KERNEL
120static inline bitstr_t *
121bit_alloc(int _nbits, struct malloc_type *type, int flags)
122{
123 return ((bitstr_t *)malloc(bitstr_size(_nbits), type, flags | M_ZERO));
124}
125#else
126static inline bitstr_t *
127bit_alloc(int _nbits)

Callers 3

smmu_init_asidsFunction · 0.85
threadinitFunction · 0.85
iflib_queues_allocFunction · 0.85

Calls 2

mallocFunction · 0.85
callocFunction · 0.85

Tested by

no test coverage detected