drm_mm_scan_remove_block — remove a node from the scan list
bool drm_mm_scan_remove_block ( | struct drm_mm_node * node) ; |
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).