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

Function pmap_zero_page_area

freebsd/amd64/amd64/pmap.c:7783–7792  ·  view source on GitHub ↗

* Zero an an area within a single hardware page. off and size must not * cover an area beyond a single hardware page. */

Source from the content-addressed store, hash-verified

7781 * cover an area beyond a single hardware page.
7782 */
7783void
7784pmap_zero_page_area(vm_page_t m, int off, int size)
7785{
7786 vm_offset_t va = PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m));
7787
7788 if (off == 0 && size == PAGE_SIZE)
7789 pagezero((void *)va);
7790 else
7791 bzero((char *)va + off, size);
7792}
7793
7794/*
7795 * Copy 1 specified hardware page to another.

Callers

nothing calls this directly

Calls 2

bzeroFunction · 0.85
pagezeroFunction · 0.50

Tested by

no test coverage detected