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

Data Fields

struct drm_hash_item hash
 
struct list_head head
 
struct kref kref
 
enum ttm_ref_type ref_type
 
struct ttm_base_objectobj
 
struct ttm_object_filetfile
 

Detailed Description

struct ttm_ref_object

: Hash entry for the per-file object reference hash.

: List entry for the per-file list of ref-objects.

: Ref count.

: Base object this ref object is referencing.

: Type of ref object.

This is similar to an idr object, but it also has a hash table entry that allows lookup with a pointer to the referenced object as a key. In that way, one can easily detect whether a base object is referenced by a particular ttm_object_file. It also carries a ref count to avoid creating multiple ref objects if a ttm_object_file references the same base object more than once.

Definition at line 110 of file ttm_object.c.

Field Documentation

Definition at line 111 of file ttm_object.c.

Definition at line 112 of file ttm_object.c.

Definition at line 113 of file ttm_object.c.

Definition at line 115 of file ttm_object.c.

enum ttm_ref_type ref_type

Definition at line 114 of file ttm_object.c.

Definition at line 116 of file ttm_object.c.


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