'\" t .\" Title: drm_mm_insert_node_in_range .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: DRM Core .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DRM_MM_INSERT_NODE_I" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "DRM Core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" drm_mm_insert_node_in_range \- ranged search for space and insert \fInode\fR .SH "SYNOPSIS" .HP \w'int\ drm_mm_insert_node_in_range('u .BI "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" ");" .SH "ARGUMENTS" .PP \fImm\fR .RS 4 drm_mm to allocate from .RE .PP \fInode\fR .RS 4 preallocate node to insert .RE .PP \fIsize\fR .RS 4 size of the allocation .RE .PP \fIalignment\fR .RS 4 alignment of the allocation .RE .PP \fIstart\fR .RS 4 start of the allowed range for this node .RE .PP \fIend\fR .RS 4 end of the allowed range for this node .RE .PP \fIflags\fR .RS 4 flags to fine\-tune the allocation .RE .SH "DESCRIPTION" .PP This is a simplified version of \fBdrm_mm_insert_node_in_range_generic\fR with \fIcolor\fR set to 0\&. .PP The preallocated node must be cleared to 0\&. .SH "RETURNS" .PP 0 on success, \-ENOSPC if there\*(Aqs no suitable hole\&. .SH "AUTHORS" .PP \fBJesse Barnes\fR <\&jesse.barnes@intel.com\&> .br Intel Corporation, .RS 4 Initial version .RE .PP \fBLaurent Pinchart\fR <\&laurent.pinchart@ideasonboard.com\&> .br Ideas on board SPRL, .RS 4 Driver internals .RE .PP \fBDaniel Vetter\fR <\&daniel.vetter@ffwll.ch\&> .br Intel Corporation, .RS 4 Contributions all over the place .RE .SH "COPYRIGHT" .br