---
name: "drm_mm_insert_node_in_range"
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_insert_node_in_range"
---

# drm\_mm\_insert\_node\_in\_range(9)

ranged search for space and insert node

## NAME

drm\_mm\_insert\_node\_in\_range - ranged search for space and insert *node*

## SYNOPSIS

**int drm\_mm\_insert\_node\_in\_range(struct drm\_mm \*** *mm***, struct drm\_mm\_node \*** *node***, unsigned long** *size***, unsigned** *alignment***, unsigned long** *start***, unsigned long** *end***, enum drm\_mm\_search\_flags** *flags***);**

## ARGUMENTS

*mm*

drm\_mm to allocate from

*node*

preallocate node to insert

*size*

size of the allocation

*alignment*

alignment of the allocation

*start*

start of the allowed range for this node

*end*

end of the allowed range for this node

*flags*

flags to fine-tune the allocation

## DESCRIPTION

This is a simplified version of **drm\_mm\_insert\_node\_in\_range\_generic** with *color* set to 0.

The preallocated node must be cleared to 0.

## RETURNS

0 on success, -ENOSPC if there's no suitable hole.

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