ttm_bo_lru_cursor_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 using ttm_bo_lru_cursor_init and ttm_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:


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