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

Function mtp_get_subzone

freebsd/kern/kern_malloc.c:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341static inline u_int
342mtp_get_subzone(struct malloc_type *mtp)
343{
344 struct malloc_type_internal *mtip;
345
346 mtip = &mtp->ks_mti;
347
348 KASSERT(mtip->mti_zone < numzones,
349 ("mti_zone %u out of range %d",
350 mtip->mti_zone, numzones));
351 return (mtip->mti_zone);
352}
353#elif MALLOC_DEBUG_MAXZONES == 0
354#error "MALLOC_DEBUG_MAXZONES must be positive."
355#else

Callers 2

(malloc)Function · 0.85
malloc_domainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected