Name

alloc_pt_range — Allocate a multiple page tables

Synopsis

int alloc_pt_range (struct i915_page_directory_entry * pd,
 uint16_t pde,
 size_t count,
 struct drm_device * dev);
 

Arguments

pd

The page directory which will have at least count entries available to point to the allocated page tables.

pde

First page directory entry for which we are allocating.

count

Number of pages to allocate.

dev

DRM device.

Description

Allocates multiple page table pages and sets the appropriate entries in the page table structure within the page directory. Function cleans up after itself on any failures.

Return

0 if allocation succeeded.