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

Function pmap_change_attr

freebsd/arm64/arm64/pmap.c:6083–6092  ·  view source on GitHub ↗

* Changes the specified virtual address range's memory type to that given by * the parameter "mode". The specified virtual address range must be * completely contained within either the direct map or the kernel map. If * the virtual address range is contained within the kernel map, then the * memory type for each of the corresponding ranges of the direct map is also * changed. (The corresp

Source from the content-addressed store, hash-verified

6081 * virtual address range or the direct map.
6082 */
6083int
6084pmap_change_attr(vm_offset_t va, vm_size_t size, int mode)
6085{
6086 int error;
6087
6088 PMAP_LOCK(kernel_pmap);
6089 error = pmap_change_attr_locked(va, size, mode);
6090 PMAP_UNLOCK(kernel_pmap);
6091 return (error);
6092}
6093
6094static int
6095pmap_change_attr_locked(vm_offset_t va, vm_size_t size, int mode)

Callers 1

pmap_page_set_memattrFunction · 0.70

Calls 1

pmap_change_attr_lockedFunction · 0.85

Tested by

no test coverage detected