carta
drm_vma_node_allow(9)

drm_vma_node_allow9

Add open-file to list of allowed users

Arguments

node

Node to modify

filp

Open file to add

Overview

Add filp to the list of allowed open-files for this node. If filp is already on this list, the ref-count is incremented.

The list of allowed-users is preserved across drm_vma_offset_add and drm_vma_offset_remove calls. You may even call it if the node is currently not added to any offset-manager.

You must remove all open-files the same number of times as you added them before destroying the node. Otherwise, you will leak memory.

This is locked against concurrent access internally.

Returns

0 on success, negative error code on internal failure (out-of-mem)

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.