ttm_tt_is_swapped(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the struct 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:

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