FreeBSD/sys/i386/i386/pmap.c
/*
 * After removing a page table entry, this routine is used to
 * conditionally free the page, and manage the hold/wire counts.
 */
After removing a page table entry, this routine is used to
conditionally free the page, and manage the hold/wire counts.
After removing a page table entry this routine is used to conditionally free the page and manage the hold / wire counts .
static int
pmap_unuse_pt(pmap_t pmap, vm_offset_t va, struct spglist *free)
{
	pd_entry_t ptepde;
	vm_page_t mpte;
	if (va >= VM_MAXUSER_ADDRESS)
		return (0);
	ptepde = *pmap_pde(pmap, va);
	mpte = PHYS_TO_VM_PAGE(ptepde & PG_FRAME);
	return (pmap_unwire_ptp(pmap, mpte, free));
}
static int pmap_unuse_pt ( pmap_t pmap , vm_offset_t va , struct spglist * free ) { pd_entry_t ptepde ; vm_page_t mpte ; if ( va >= VM_MAXUSER_ADDRESS ) return ( 0 ) ; ptepde = * pmap_pde ( pmap , va ) ; mpte = PHYS_TO_VM_PAGE ( ptepde & PG_FRAME ) ; return ( pmap_unwire_ptp ( pmap , mpte , free ) ) ; }
After removing a page table entry, this routine is used to
 conditionally free the page, and manage the hold/wire counts.
After removing a page table entry this routine is used to conditionally free the page and manage the hold / wire counts .