drm_dev_ref(9)

drm_dev_ref9

Take reference of a drm device

Usage

void drm_dev_ref(struct drm_device * dev);

Arguments

dev

device to take reference of or NULL

Overview

This increases the ref-count of dev by one. You *must* already own a reference when calling this. Use drm_dev_unref to drop this reference again.

This function never fails. However, this function does not provide *any* guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.