FreeBSD/sys/i386/i386/pmap.c
/*
 *	pmap_is_prefaultable:
 *
 *	Return whether or not the specified virtual address is elgible
 *	for prefault.
 */
Return whether or not the specified virtual address is elgible
for prefault.
Return whether or not the specified virtual address is elgible for prefault .
boolean_t
pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr)
{
	pd_entry_t *pde;
	pt_entry_t *pte;
	boolean_t rv;
	rv = FALSE;
	PMAP_LOCK(pmap);
	pde = pmap_pde(pmap, addr);
	if (*pde != 0 && (*pde & PG_PS) == 0) {
		pte = vtopte(addr);
		rv = *pte == 0;
	}
	PMAP_UNLOCK(pmap);
	return (rv);
}
boolean_t pmap_is_prefaultable ( pmap_t pmap , vm_offset_t addr ) { pd_entry_t * pde ; pt_entry_t * pte ; boolean_t rv ; rv = FALSE ; PMAP_LOCK ( pmap ) ; pde = pmap_pde ( pmap , addr ) ; if ( * pde != 0 && ( * pde & PG_PS ) == 0 ) { pte = vtopte ( addr ) ; rv = * pte == 0 ; } PMAP_UNLOCK ( pmap ) ; return ( rv ) ; }
pmap_is_prefaultable:
      Return whether or not the specified virtual address is elgible
      for prefault.
pmap_is_prefaultable : Return whether or not the specified virtual address is elgible for prefault .