STRUCT TEE_IOCTL_SHM_ALLOC_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct tee_ioctl_shm_alloc_data β€” the Shared memory allocate argument, bestie πŸ’–

(also hi, welcome to the Kernel API Manual, that's the vibe we're in today ✨)


✨ SYNOPSIS ✨

struct tee_ioctl_shm_alloc_data {
    __u64 size;
    __u32 flags;
    __s32 id;
 };

Look at her. Three fields. Absolutely iconic, no notes. πŸŽ€


🫢 Members 🫢

Okay so let's meet the cast 😭

  • size β€” [in/out] Size of shared memory to allocate. She goes in, she comes out, she's booked and busy πŸ’…
  • flags β€” [in/out] Flags to/from allocation. In AND out, main character energy fr fr ✨
  • id β€” [out] Identifier of the shared memory. Purely output-only, she's giving, not taking πŸ‘‘

πŸ’– Description πŸ’–

Okay so real talk 🫢 β€” the flags field should currently be zero as input. Like, zero-zero. Nothing else. Ngl that part matters. Then the call updates it with the actual flags as defined by TEE_IOCTL_SHM_* above (yes, above, go look, iykyk πŸ‘€).

And this whole structure? She's used as the argument for TEE_IOC_SHM_ALLOC below. That's literally her job. Periodt. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

The whole group chat, no cap β€” Kernel file ./include/uapi/linux/tee.h plus, in order:

Like, that's the entire friend group and they all ate πŸ”₯πŸ‘‘


bestie this one lives in ./include/uapi/linux and it's dated October 2026 β€” so like, she's from the future and still slaying πŸ’€πŸ’œ

okay bye ily, go read the other pages πŸ§šβ€β™€οΈπŸ“β­πŸŒˆ

πŸ“¦ where this page comes from