---
name: "drm_mm_init_scan_with_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_init_scan_with_range"
---

# drm\_mm\_init\_scan\_with\_range(9)

initialize range-restricted lru scanning

## NAME

drm\_mm\_init\_scan\_with\_range - initialize range-restricted lru scanning

## SYNOPSIS

**void drm\_mm\_init\_scan\_with\_range(struct drm\_mm \*** *mm***, unsigned long** *size***, unsigned** *alignment***, unsigned long** *color***, unsigned long** *start***, unsigned long** *end***);**

## ARGUMENTS

*mm*

drm\_mm to scan

*size*

size of the allocation

*alignment*

alignment of the allocation

*color*

opaque tag value to use for the allocation

*start*

start of the allowed range for the allocation

*end*

end of the allowed range for the allocation

## DESCRIPTION

This simply sets up the scanning routines with the parameters for the desired hole. Note that there's no need to specify allocation flags, since they only change the place a node is allocated from within a suitable hole.

## WARNING

As long as the scan list is non-empty, no other operations than adding/removing nodes to/from the scan list are allowed.

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