FreeBSD/sys/dev/drm2/ttm/ttm_page_alloc.c
/* set memory back to wb and free the pages. */
set memory back to wb and free the pages.
set memory back to wb and free the pages .
static void ttm_pages_put(vm_page_t *pages, unsigned npages)
{
	unsigned i;
	if (set_pages_array_wb(pages, npages))
		printf("[TTM] Failed to set %d pages to wb!\n", npages);
	for (i = 0; i < npages; ++i)
		ttm_vm_page_free(pages[i]);
}
static void ttm_pages_put ( vm_page_t * pages , unsigned npages ) { unsigned i ; if ( set_pages_array_wb ( pages , npages ) ) printf ( " \n " , npages ) ; for ( i = 0 ; i < npages ; ++ i ) ttm_vm_page_free ( pages [ i ] ) ; }
set memory back to wb and free the pages.
set memory back to wb and free the pages .
/* Our VM handles vm memattr automatically on the page free. */