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

#include <ttm_object.h>

Data Fields

struct drm_hash_item hash
 
enum ttm_object_type object_type
 
bool shareable
 
struct ttm_object_filetfile
 
struct kref refcount
 
void(* refcount_release )(struct ttm_base_object **base)
 
void(* ref_obj_release )(struct ttm_base_object *base, enum ttm_ref_type ref_type)
 

Detailed Description

struct ttm_base_object

: hash entry for the per-device object hash. : derived type this object is base class for. : Other ttm_object_files can access this object.

: Pointer to ttm_object_file of the creator. NULL if the object was not created by a user request. (kernel object).

: Number of references to this object, not including the hash entry. A reference to a base object can only be held by a ref object.

: A function to be called when there are no more references to this object. This function should destroy the object (or make sure destruction eventually happens), and when it is called, the object has already been taken out of the per-device hash. The parameter "base" should be set to NULL by the function.

: A function to be called when a reference object with another ttm_ref_type than TTM_REF_USAGE is deleted. This function may, for example, release a lock held by a user-space process.

This struct is intended to be used as a base struct for objects that are visible to user-space. It provides a global name, race-safe access and refcounting, minimal access contol and hooks for unref actions.

Definition at line 122 of file ttm_object.h.

Field Documentation

Definition at line 123 of file ttm_object.h.

Definition at line 124 of file ttm_object.h.

void(* ref_obj_release)(struct ttm_base_object *base, enum ttm_ref_type ref_type)

Definition at line 129 of file ttm_object.h.

struct kref refcount

Definition at line 127 of file ttm_object.h.

void(* refcount_release)(struct ttm_base_object **base)

Definition at line 128 of file ttm_object.h.

bool shareable

Definition at line 125 of file ttm_object.h.

Definition at line 126 of file ttm_object.h.


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