---
name: "drm_mm_replace_node"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_mm_replace_node"
---

# drm\_mm\_replace\_node(9)

move an allocation from old to new

## NAME

drm\_mm\_replace\_node - move an allocation from *old* to *new*

## SYNOPSIS

**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

## DESCRIPTION

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** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
