carta
drm_vma_node_offset_addr(9)

drm_vma_node_offset_addr9

Return sanitized offset for user-space mmaps

Usage

__u64 drm_vma_node_offset_addr(struct drm_vma_offset_node * node);

Arguments

node

Linked offset node

Overview

Same as drm_vma_node_start but returns the address as a valid offset that can be used for user-space mappings during mmap. This must not be called on unlinked nodes.

Returns

Offset of node for byte-based addressing. 0 if the node does not have an object allocated.

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.