STRUCT TTM_PLACE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ttm_place(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel headers for fun now, that's just who we are πŸ’– this one's all about struct ttm_place, and honestly? it's giving little-map-that-could. tiny struct, huge main character energy ✨


🌸 NAME 🌸

struct ttm_place β€” literally the struct itself, no fancy tagline, it just is 🫢


✨ SYNOPSIS ✨

here's the whole glow-up, character for character, no cap:

struct ttm_place {
    uint64_t fpfn;
    uint64_t lpfn;
    uint32_t mem_type;
    uint32_t flags;
 };

four fields. that's it. she's compact and she knows it πŸ’…


πŸŽ€ Members πŸŽ€

these are the girlies inside the struct, let's do introductions:

  • fpfn β€” the first valid page frame number to put the object πŸ‘‘ like, the starting line, where the object is allowed to begin living
  • lpfn β€” the last valid page frame number to put the object πŸ¦‹ the finish line, the boundary, the "no further than this bestie"
  • mem_type β€” one of TTM_PL_* where the resource should be allocated from 🌈 so you're picking your memory neighborhood, iykyk
  • flags β€” the memory domain and caching flags for the object ⭐ the whole vibe settings panel, basically
ngl these are exactly the field names, spellings and types from the original β€” uint64_t for both fpfn and lpfn, uint32_t for both mem_type and flags. don't come for me, I copied them on purpose πŸ™ˆ

πŸ’œ Description πŸ’œ

so what is it? bestie, it's a structure indicating a possible place to put an object ✨ that's the whole thing. one possible spot. a candidate location. she's not committing to anything, she's just saying "hey, this could work" πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/drm/ttm/ttm_placement.h
  • struct ttm_placement(9) β€” the friend she always shows up with πŸ’–

and that's the page!! sending you off with the cutest sign-off ever: this absolute icon lives in ./include/drm/ttm πŸ¦‹, stamped October 2026 ⭐, and it's part of the Kernel API Manual πŸ‘‘ β€” go forth and place your objects responsibly, ily, bye πŸ’…πŸ’–πŸŒΈ

πŸ“¦ where this page comes from