Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ttm_mem_type_manager Struct Reference

#include <ttm_bo_driver.h>

Data Fields

struct ttm_bo_devicebdev
 
bool has_type
 
bool use_type
 
uint32_t flags
 
unsigned long gpu_offset
 
uint64_t size
 
uint32_t available_caching
 
uint32_t default_caching
 
struct ttm_mem_type_manager_funcfunc
 
voidpriv
 
struct mutex io_reserve_mutex
 
bool use_io_reserve_lru
 
bool io_reserve_fastpath
 
struct list_head io_reserve_lru
 
struct list_head lru
 

Detailed Description

struct ttm_mem_type_manager

: The memory type has been initialized. : The memory type is enabled. : TTM_MEMTYPE_XX flags identifying the traits of the memory managed by this memory type. : If used, the GPU offset of the first managed page of fixed memory or the first managed location in an aperture. : Size of the managed region. : A mask of available caching types, TTM_PL_FLAG_XX, as defined in ttm_placement_common.h : The default caching policy used for a buffer object placed in this memory type if the user doesn't provide one. : structure pointer implementing the range manager. See above : Driver private closure for . : Mutex optionally protecting shared io_reserve structures : Use an lru list to try to unreserve io_mem_regions reserved by the TTM vm system. : Optional lru list for unreserving io mem regions. : Only use bdev::driver::io_mem_reserve to obtain static information. bdev::driver::io_mem_free is never used. : The lru list for this memory type.

This structure is used to identify and manage memory types for a device. It's set up by the ttm_bo_driver::init_mem_type method.

Definition at line 264 of file ttm_bo_driver.h.

Field Documentation

uint32_t available_caching

Definition at line 276 of file ttm_bo_driver.h.

Definition at line 265 of file ttm_bo_driver.h.

uint32_t default_caching

Definition at line 277 of file ttm_bo_driver.h.

uint32_t flags

Definition at line 273 of file ttm_bo_driver.h.

Definition at line 278 of file ttm_bo_driver.h.

unsigned long gpu_offset

Definition at line 274 of file ttm_bo_driver.h.

bool has_type

Definition at line 271 of file ttm_bo_driver.h.

bool io_reserve_fastpath

Definition at line 282 of file ttm_bo_driver.h.

struct list_head io_reserve_lru

Definition at line 288 of file ttm_bo_driver.h.

struct mutex io_reserve_mutex

Definition at line 280 of file ttm_bo_driver.h.

Definition at line 294 of file ttm_bo_driver.h.

Definition at line 279 of file ttm_bo_driver.h.

uint64_t size

Definition at line 275 of file ttm_bo_driver.h.

bool use_io_reserve_lru

Definition at line 281 of file ttm_bo_driver.h.

bool use_type

Definition at line 272 of file ttm_bo_driver.h.


The documentation for this struct was generated from the following file: