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

Function kmapent_free

freebsd/vm/vm_map.c:222–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222static void
223kmapent_free(void *item, vm_size_t size, uint8_t pflag)
224{
225 vm_offset_t addr;
226 int error;
227
228 if ((pflag & UMA_SLAB_PRIV) == 0)
229 /* XXX leaked */
230 return;
231
232 addr = (vm_offset_t)item;
233 kmem_unback(kernel_object, addr, size);
234 error = vm_map_remove(kernel_map, addr, addr + size);
235 KASSERT(error == KERN_SUCCESS,
236 ("%s: vm_map_remove failed: %d", __func__, error));
237}
238
239/*
240 * The worst-case upper bound on the number of kernel map entries that may be

Callers

nothing calls this directly

Calls 2

kmem_unbackFunction · 0.85
vm_map_removeFunction · 0.85

Tested by

no test coverage detected