STRUCT MEMREF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, meet struct memref(9) from the Kernel API Manual β€” she’s the memory reference structure and she’s lowkey iconic. πŸ’…βœ¨

πŸ’– NAME πŸ’–

struct memref β€” memory reference structure. That’s the whole name, no cap. 🫢

πŸŽ€ SYNOPSIS πŸŽ€

       struct memref {
           u32 buf_id;
           u32 offset;
           u32 size;
        };

Three u32 fields, and that’s the vibe. πŸ‘‘

🫢 Members 🫢

  • buf_id β€” buffer ID of the buffer mapped by TEE_CMD_ID_MAP_SHARED_MEM. πŸ’–
  • offset β€” offset in bytes from beginning of the buffer. 🌸
  • size β€” data size in bytes. πŸ“

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/tee/amdtee/amdtee_if.h
  • struct tee_sg_desc(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)

mwah πŸ’‹ β€” this cutie is from ./drivers/tee/amdtee, dated October 2026, and the title stays struct memref(9). slay ✨

πŸ“¦ where this page comes from