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

Function vmem_create

freebsd/kern/subr_vmem.c:1288–1302  ·  view source on GitHub ↗

* vmem_create: create an arena. */

Source from the content-addressed store, hash-verified

1286 * vmem_create: create an arena.
1287 */
1288vmem_t *
1289vmem_create(const char *name, vmem_addr_t base, vmem_size_t size,
1290 vmem_size_t quantum, vmem_size_t qcache_max, int flags)
1291{
1292
1293 vmem_t *vm;
1294
1295 vm = uma_zalloc(vmem_zone, flags & (M_WAITOK|M_NOWAIT));
1296 if (vm == NULL)
1297 return (NULL);
1298 if (vmem_init(vm, name, base, size, quantum, qcache_max,
1299 flags) == NULL)
1300 return (NULL);
1301 return (vm);
1302}
1303
1304void
1305vmem_destroy(vmem_t *vm)

Callers 8

pmap_init_trmFunction · 0.85
pmap_initFunction · 0.85
sgx_get_epc_areaFunction · 0.85
gicv3_its_attachFunction · 0.85
s10_get_memoryFunction · 0.85
al_msix_attachFunction · 0.85
dmar_init_irtFunction · 0.85
kmem_initFunction · 0.85

Calls 2

vmem_initFunction · 0.85
uma_zallocFunction · 0.50

Tested by

no test coverage detected