struct vm_map * map; vaddr_t start, end; vm_prot_t protection;
vm_map_t       map; vaddr_t    start, end; vm_prot_t      protection;
uvm_map_checkprot(map, start, end, protection)	struct vm_map * map;	vaddr_t start, end;	vm_prot_t protection;{	struct vm_map_entry *entry;	struct vm_map_entry *tmp_entry;	if (!uvm_map_lookup_entry(map, start, &tmp_entry)) {		return(FALSE);	}	entry = tmp_entry;	while (start < end) {		if (entry == &map->header) {			return(FALSE);		}		/*		 * no holes allowed		 */		if (start < entry->start) {			return(FALSE);		}		/*		 * check protection associated with entry		 */		if ((entry->protection & protection) != protection) {			return(FALSE);		}		start = entry->end;		entry = entry->next;	}	return(TRUE);}