drm_mm_replace_node(9)

drm_mm_replace_node9

Move an allocation from old to new

Usage

void drm_mm_replace_node(struct drm_mm_node * old, struct drm_mm_node * new);

Arguments

old

drm_mm_node to remove from the allocator

new

drm_mm_node which should inherit old's allocation

Overview

This is useful for when drivers embed the drm_mm_node structure and hence can't move allocations by reassigning pointers. It's a combination of remove and insert with the guarantee that the allocation start will match.

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.