pg = uvm_pagealloc(NULL, 0, NULL, 0);
pg = uvm_pagealloc(NULL, 0, NULL, UVM_PGA_USERESERVE);
uvm_km_alloc_poolpage1(map, obj, waitok)	vm_map_t map;	struct uvm_object *obj;	boolean_t waitok;{#if defined(PMAP_MAP_POOLPAGE)	struct vm_page *pg;	vaddr_t va; again:	pg = uvm_pagealloc(NULL, 0, NULL, 0);	if (pg == NULL) {		if (waitok) {			uvm_wait("plpg");			goto again;		} else			return (0);	}	va = PMAP_MAP_POOLPAGE(VM_PAGE_TO_PHYS(pg));	if (va == 0)		uvm_pagefree(pg);	return (va);#else	vaddr_t va;	int s;	/*	 * NOTE: We may be called with a map that doens't require splimp	 * protection (e.g. kernel_map).  However, it does not hurt to	 * go to splimp in this case (since unprocted maps will never be	 * accessed in interrupt context).	 *	 * XXX We may want to consider changing the interface to this	 * XXX function.	 */	s = splimp();	va = uvm_km_kmemalloc(map, obj, PAGE_SIZE, waitok ? 0 : UVM_KMF_NOWAIT);	splx(s);	return (va);#endif /* PMAP_MAP_POOLPAGE */}