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

Function vmem_add

freebsd/kern/subr_vmem.c:1525–1539  ·  view source on GitHub ↗

* vmem_add: * */

Source from the content-addressed store, hash-verified

1523 *
1524 */
1525int
1526vmem_add(vmem_t *vm, vmem_addr_t addr, vmem_size_t size, int flags)
1527{
1528 int error;
1529
1530 flags &= VMEM_FLAGS;
1531
1532 VMEM_LOCK(vm);
1533 error = bt_fill(vm, flags);
1534 if (error == 0)
1535 vmem_add1(vm, addr, size, BT_TYPE_SPAN_STATIC);
1536 VMEM_UNLOCK(vm);
1537
1538 return (error);
1539}
1540
1541/*
1542 * vmem_size: information about arenas size

Callers 3

s10_get_memoryFunction · 0.85
vmem_initFunction · 0.85
kmem_bootstrap_freeFunction · 0.85

Calls 2

bt_fillFunction · 0.85
vmem_add1Function · 0.85

Tested by

no test coverage detected