pmap_enter vs pmap_qenter

Venkatesh Srinivas me at endeavour.zapto.org
Tue Jan 11 08:35:39 PST 2011


Hi,

If I have a vm_page_t array, 'mp' for this exercise, should:

    pmap_qenter(addr, mp, npages);

be equivalent to

    for (i = 0; i < npages; i += PAGE_SIZE)
        pmap_enter(&kernel_pmap, addr + i, mp[i / PAGE_SIZE], VM_PROT_ALL, 1);

if all of the pages in the array have had m->valid set to
VM_PAGE_BITS_ALL and vm_page_wire() called on them?

Thanks,
-- vs





More information about the Kernel mailing list