ttm_lru_bulk_move_fini(9)
π ttm_lru_bulk_move_fini(9) β the kernel API manual, but make it make sense
Okay bestie, so this one is from the linux kernel API manual, section 9 (that's the kernel API section, iykyk), and it's literally called ttm_lru_bulk_move_fini. Say that five times fast. It's the cleanup bestie for bulk moves. We love a fini era. π
β¨ NAME β¨
ttm_lru_bulk_move_fini β finalize a bulk move structure. Like, wrap it up, close the tab, log off. π«Ά
πΈ SYNOPSIS πΈ
void ttm_lru_bulk_move_fini (struct ttm_device *bdev, struct ttm_lru_bulk_move *bulk);
Two args, both structs, zero drama (allegedly). β¨
π¦ ARGUMENTS π¦
bdevβ Thestruct ttm_device. Your device bestie. The main character here, honestly. πbulkβ the structure to finalize. This is the one getting its grand finale. π¬
π DESCRIPTION π
So what does she actually do? She does sanity checks β checking that bulk moves don't have any resources left, and hence no cursors attached. π
That's it. That's the whole job. She's the vibe check at the end of the party making sure nobody left their resources behind and no cursor is still hanging around. If something's still attached, the sanity check is gonna notice, and you're gonna have a moment. π
Fr fr, this is a sanity check function β its whole personality is making sure nothing's left over. Don't skip it and then act surprised. π
β SEE ALSO β
The kernel file lives at ./drivers/gpu/drm/ttm/ttm_resource.c if you wanna read the source (and honestly, go off, reading source is a flex). π§
And here's the whole friend group, all in section 9:
ttm_resource_cursor_init(9)ttm_resource_cursor_fini(9)ttm_lru_bulk_move_init(9)ttm_lru_bulk_move_tail(9)ttm_resource_init(9)ttm_resource_fini(9)ttm_resource_try_charge(9)ttm_resource_intersects(9)ttm_resource_compatible(9)ttm_resource_manager_init(9)ttm_resource_manager_usage(9)ttm_resource_manager_debug(9)ttm_resource_manager_first(9)ttm_resource_manager_next(9)ttm_lru_first_res_or_null(9)ttm_kmap_iter_iomap_init(9)Linear io iterator(9)ttm_kmap_iter_linear_io_init(9)ttm_kmap_iter_linear_io_fini(9)ttm_resource_manager_create_debugfs(9)ttm_resource_manager_dmem_reclaim(9)ttm_resource_manager_set_dmem_region(9)
Not me listing all twenty-two of them. But every single one is here and that's on periodt. ππ
π the cute sign-off π
This page comes from ./drivers/gpu/drm/ttm and it's dated October 2026 β yes, future girl summer. π¦ Slay, go finalize your bulk moves, and remember: no resources left, no cursors attached, no cap. πβ¨
π¦ 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