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

Function pmap_unmap_io_transient

freebsd/amd64/amd64/pmap.c:10029–10046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10027}
10028
10029void
10030pmap_unmap_io_transient(vm_page_t page[], vm_offset_t vaddr[], int count,
10031 boolean_t can_fault)
10032{
10033 vm_paddr_t paddr;
10034 int i;
10035
10036 if (!can_fault)
10037 sched_unpin();
10038 for (i = 0; i < count; i++) {
10039 paddr = VM_PAGE_TO_PHYS(page[i]);
10040 if (paddr >= dmaplimit) {
10041 if (can_fault)
10042 pmap_qremove(vaddr[i], 1);
10043 vmem_free(kernel_arena, vaddr[i], PAGE_SIZE);
10044 }
10045 }
10046}
10047
10048vm_offset_t
10049pmap_quick_enter_page(vm_page_t m)

Callers 2

pmap_copy_pagesFunction · 0.70
uiomove_fromphysFunction · 0.70

Calls 3

sched_unpinFunction · 0.85
vmem_freeFunction · 0.85
pmap_qremoveFunction · 0.70

Tested by

no test coverage detected