ttm_bo_lru_cursor_fini(9)
β¨ ttm_bo_lru_cursor_fini(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's about ttm_bo_lru_cursor_fini(9) and honestly it's the "we're so done here" of the cursor lifecycle. no cap.
πΈ NAME πΈ
ttm_bo_lru_cursor_fini β stop using a struct ttm_bo_lru_cursor and clean up any iteration it was used for. that's it. that's the whole vibe. you used the cursor, now you're putting it to bed πβ¨
π SYNOPSIS π
void ttm_bo_lru_cursor_fini (struct ttm_bo_lru_cursor *curs );
literally one function, void return, no drama. iconic behavior fr fr π
π¦ ARGUMENTS π¦
cursβ The cursor. π that's the one. thestruct ttm_bo_lru_cursoryou've been iterating with. hand it over so it can be finished properly.
π SEE ALSO π
if you're the kind of girlie who likes the whole friend group, here's the squad π«Ά these all live in the kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c:
ttm_move_memcpy(9)ttm_bo_move_memcpy(9)ttm_buffer_object_transfer(9)ttm_io_prot(9)ttm_bo_kmap_try_from_panic(9)ttm_bo_kmap(9)ttm_bo_kunmap(9)ttm_bo_vmap(9)ttm_bo_vunmap(9)ttm_bo_move_accel_cleanup(9)ttm_bo_move_sync_cleanup(9)ttm_bo_pipeline_gutting(9)ttm_lru_walk_for_evict(9)ttm_bo_lru_cursor_init(9)ttm_bo_lru_cursor_next(9)ttm_bo_lru_cursor_first(9)ttm_bo_shrink(9)ttm_bo_shrink_suitable(9)ttm_bo_shrink_avoid_wait(9)
like, ttm_bo_lru_cursor_init(9) starts the whole thing and this one ends it β character development, honestly ππ
lowkey reminder: this is the cleanup step. no skipping, no leaving the cursor dangling, we are not that girl π«π
and that's the page, bestie!! π courtesy of the source tree at ./drivers/gpu/drm/ttm, dated October 2026, manual section 9. mwah π stay hydrated and don't forget to fini your cursors ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms