ttm_lru_bulk_move_tail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ ttm_lru_bulk_move_tail(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the ttm_lru_bulk_move_tail(9) page from the Kernel API Manual πŸ’– this one's a lil function in the TTM resource world and she's lowkey iconic, so let's get into it πŸŽ€


✨ NAME ✨

ttm_lru_bulk_move_tail β€” bulk move range of resources to the LRU tail πŸ’…


🌸 SYNOPSIS 🌸

void ttm_lru_bulk_move_tail (struct ttm_lru_bulk_move *bulk );

that's it, that's the whole vibe 🫢 void return, one pointer, very demure ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bulk β€” the bulk move structure πŸ’« that's the whole thing, she's the star of the show πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so what she does is bulk move BOs to the LRU tail πŸ”₯ like, a whole range of resources, all shuffled to the back of the line at once β€” no cap, that's the move πŸ’…

⚠️ okay but hear me on this one: this is only valid to use when the driver makes sure that resource order never changes 😭 like if your driver is out there reordering stuff, this function is NOT the one, do not pass go 🚫

and the other big requirement, fr fr: it should be called with ttm_device.lru_lock held πŸ”’ like actually held, by you, before you call her. no lock, no love πŸ™ˆ


🌈 SEE ALSO 🌈

go peek at the kernel file first, it's giving source of truth πŸ“‚:

  • ./drivers/gpu/drm/ttm/ttm_resource.c

and then the whole friend group 🫢:


okay that's the page!! mwah πŸ’‹ this dropped from ./drivers/gpu/drm/ttm in October 2026, and it's literally titled ttm_lru_bulk_move_tail(9) β€” go forth and bulk move responsibly bestie πŸŒŸπŸ’–

πŸ“¦ where this page comes from