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

Function copyout_unmap

freebsd/kern/subr_uio.c:446–462  ·  view source on GitHub ↗

* Unmap memory in user space. */

Source from the content-addressed store, hash-verified

444 * Unmap memory in user space.
445 */
446int
447copyout_unmap(struct thread *td, vm_offset_t addr, size_t sz)
448{
449 vm_map_t map;
450 vm_size_t size;
451
452 if (sz == 0)
453 return (0);
454
455 map = &td->td_proc->p_vmspace->vm_map;
456 size = (vm_size_t)round_page(sz);
457
458 if (vm_map_remove(map, addr, addr + size) != KERN_SUCCESS)
459 return (EINVAL);
460
461 return (0);
462}
463
464int32_t
465fuword32(volatile const void *addr)

Callers

nothing calls this directly

Calls 1

vm_map_removeFunction · 0.85

Tested by

no test coverage detected