'\" t .\" Title: drm_mm_for_each_hole .\" 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_FOR_EACH_HOLE" "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_for_each_hole \- iterator to walk over all holes .SH "SYNOPSIS" .HP \w'drm_mm_for_each_hole('u .BI "drm_mm_for_each_hole(" "entry" ", " "mm" ", " "hole_start" ", " "hole_end" ");" .SH "ARGUMENTS" .PP \fIentry\fR .RS 4 drm_mm_node used internally to track progress .RE .PP \fImm\fR .RS 4 drm_mm allocator to walk .RE .PP \fIhole_start\fR .RS 4 ulong variable to assign the hole start to on each iteration .RE .PP \fIhole_end\fR .RS 4 ulong variable to assign the hole end to on each iteration .RE .SH "DESCRIPTION" .PP This iterator walks over all holes in the range allocator\&. It is implemented with list_for_each, so not save against removal of elements\&. \fIentry\fR is used internally and will not reflect a real drm_mm_node for the very first hole\&. Hence users of this iterator may not access it\&. .SH "IMPLEMENTATION NOTE" .PP We need to inline list_for_each_entry in order to be able to set hole_start and hole_end on each iteration while keeping the macro sane\&. .PP The __drm_mm_for_each_hole version is similar, but with added support for going backwards\&. .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