ttm_bo_lru_cursor_init(9)
π ttm_bo_lru_cursor_init(9) β Kernel API Manual π
okay so bestie, this is the glow-up guide for ttm_bo_lru_cursor_init β literally the little function that gets your struct ttm_bo_lru_cursor ready to slay. it's giving setup era, no cap β¨
πΈ NAME πΈ
ttm_bo_lru_cursor_init β Initialize a struct ttm_bo_lru_cursor
π SYNOPSIS π
struct ttm_bo_lru_cursor * ttm_bo_lru_cursor_init (struct ttm_bo_lru_cursor *curs , struct ttm_resource_manager *man , struct ttm_lru_walk_arg *arg );
π¦ ARGUMENTS π¦
cursβ thettm_bo_lru_cursor</p> you're initializing, bestie. this is the main character getting its setup moment πmanβ thettmresource_managerwhose LRU lists we're gonna iterate over. yes, those LRU lists πargβ thettm_lru_walk_argthat governs the walk. it's literally the vibe check for how the walk goes π«Ά
β¨ DESCRIPTION β¨
Initialize a struct ttm_bo_lru_cursor.
that's it. that's the whole description, and honestly? iconic. short, sweet, to the point. it sets up the cursor and does not come with extra drama π
π RETURN π
returns a pointer to curs. and here's the best part: the function does not fail. fr fr, no error path, no sad little NULL, no "oops" arc. it just hands you back your cursor like a bestie returning your lip gloss π
π₯ SEE ALSO π₯
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_fini(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)
and that's the whole page, bestie π mwah π β this cutie came from ./drivers/gpu/drm/ttm, dated October 2026, and it's serving ttm_bo_lru_cursor_init(9) energy all the way through π
π¦ 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