ttm_tt_is_swapped(9)
β¨ ttm_tt_is_swapped(9) β¨
okay so this is a page straight out of the Kernel API Manual, and it's lowkey one of the smallest pages ever but it's still kinda iconic? it's literally just vibes + one little bool π no cap, we're checking a status here, nothing more.
πΈ NAME πΈ
ttm_tt_is_swapped β tells you whether the ttm_tt is swapped out or backed up π«Ά
like, that's the whole job. it's a vibe check for a ttm_tt. periodt.
π¦ SYNOPSIS π¦
bool ttm_tt_is_swapped (const struct ttm_tt *tt );
it returns a bool, it takes one const struct ttm_tt * named tt, and no, it's not gonna touch your stuff β it's const, bestie, it's just looking πβ¨
π ARGUMENTS π
ttβ thestruct ttm_tt. that's it. that's the whole argument. hand it the struct and let it cook π
π RETURN π
trueβ if it's swapped or backed up π (in a good way)falseβ otherwise π
binary queen. two outcomes only, no in-between, we love a decisive function π
β SEE ALSO β
okay this is where it gets fun, because there's a whole little ttm_tt friend group and you will be meeting them π§ββοΈ they all live in the kernel file ./include/drm/ttm/ttm_tt.h:
struct ttm_tt(9)β the main character itself fr frstruct ttm_kmap_iter_tt(9)ttm_tt_is_backed_up(9)ttm_tt_clear_backed_up(9)ttm_tt_create(9)ttm_tt_init(9)ttm_tt_fini(9)ttm_tt_destroy(9)ttm_tt_swapin(9)ttm_tt_populate(9)ttm_tt_unpopulate(9)ttm_tt_mark_for_clear(9)struct ttm_backup_flags(9)ttm_agp_tt_create(9)
iykyk. go read them, they're all part of the same squad π
ngl the whole page is basically "ask the struct if it's swapped" and honestly? sometimes that's enough. not every manpage needs to be a whole saga β¨
and that's the page!! sourced from ./include/drm/ttm, dated October 2026, manual name Kernel API Manual if you're keeping receipts π«Ά bye bestie, go check your ttm_tt ππ·π
π¦ 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