ttm_bo_lru_cursor_next(9)
β¨ NAME β¨
okay so bestie, this is ttm_bo_lru_cursor_next(9) from the Kernel API Manual, and it is literally the βkeep the LRU walk goingβ function π
. It continues iterating a manager's LRU lists to find and lock buffer object. no cap, thatβs the whole vibe: keep looking, find the BO, lock it. π«Ά
πΈ SYNOPSIS πΈ
struct ttm_buffer_object * ttm_bo_lru_cursor_next (struct
ttm_bo_lru_cursor *curs );
π ARGUMENTS π
cursβ the cursor, bestie. Itβs the one initialized usingttm_bo_lru_cursor_initandttm_bo_lru_cursor_first. Thatβs the origin story. π¦
π₯ RETURN π₯
A pointer to a locked and reference-counted buffer object, or NULL if none could be found and looping should be terminated. So if you get NULL, the loop is done, periodt. π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c β and these iconic little cross-references:
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_fini(9)ttm_bo_lru_cursor_init(9)ttm_bo_lru_cursor_first(9)ttm_bo_shrink(9)ttm_bo_shrink_suitable(9)ttm_bo_shrink_avoid_wait(9)
Thatβs the tea from the ./drivers/gpu/drm/ttm source tree, October 2026 edition of the ttm_bo_lru_cursor_next(9) page β mwah, bye bestie! πβ¨
π¦ 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