STRUCT TEE_SG_DESC(9)
β¨ 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
- 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