STRUCT TEE_SG_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct tee_sg_desc(9) ✨

okay so bestie, this is a page from the Kernel API Manual and it's literally all about struct tee_sg_desc β€” the sg descriptor that describes a physically contiguous buffer. it's giving "small struct, big responsibilities" energy πŸŽ€


🌸 NAME 🌸

struct tee_sg_desc β€” the sg descriptor for a physically contiguous buffer πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

struct tee_sg_desc {
    u32 low_addr;
    u32 hi_addr;
    u32 size;
 };

like, that's the whole struct. three fields. no cap, that's it πŸ”₯


πŸ’– Members πŸ’–

  • low_addr β€” [in] the low bits, bits[31:0], of the buffer's physical address. and listen β€” it Must be 4KB aligned, okay? that's not a suggestion, that's the vibe check 😀
  • hi_addr β€” [in] the high bits, bits[63:32], of the buffer's physical address ✨
  • size β€” [in] the size in bytes, and it must be a multiple of 4KB 🫢 (yes bestie, 4KB again, they're obsessed with 4KB and honestly? iconic)
okay real talk, those "must be 4KB aligned" / "must be multiple of 4KB" notes are requirements, not cute suggestions β€” if you ignore them things go sideways 😭

🌈 SEE ALSO 🌈

def go read these next, they're all in the same kernel file ./drivers/tee/amdtee/amdtee_if.h and they're lowkey a whole friend group 🧚

  • struct memref(9)
  • struct tee_cmd_map_shared_mem(9)
  • struct tee_cmd_unmap_shared_mem(9)
  • struct tee_cmd_load_ta(9)
  • struct tee_cmd_unload_ta(9)
  • struct tee_cmd_open_session(9)
  • struct tee_cmd_close_session(9)
  • struct tee_cmd_invoke_cmd(9)

and that's the page!! mwah πŸ’‹ it lives in ./drivers/tee/amdtee and this version is dated October 2026 β€” go off, future manpage πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from