Name

drm_mm_scan_remove_block — remove a node from the scan list

Synopsis

bool drm_mm_scan_remove_block (struct drm_mm_node * node);
 

Arguments

node

drm_mm_node to remove

Description

Nodes _must_ be removed in the exact same order from the scan list as they have been added, otherwise the internal state of the memory manager will be corrupted.

When the scan list is empty, the selected memory nodes can be freed. An immediately following drm_mm_search_free with !DRM_MM_SEARCH_BEST will then return the just freed block (because its at the top of the free_stack list).

Returns

True if this block should be evicted, false otherwise. Will always return false when no hole has been found.