drm_mm_insert_node9
Search for space and insert node
Usage
int drm_mm_insert_node(struct drm_mm * mm, struct drm_mm_node * node, unsigned long size, unsigned alignment, 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
flags
flags to fine-tune the allocation
Overview
This is a simplified version of drm_mm_insert_node_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.