STRUCT TEE_IOCTL_SHM_ALLOC_DATA(9)
πΈ 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:
struct tee_ioctl_version_data(9)TEE_IOC_VERSION(9)TEE_IOC_SHM_ALLOC(9)struct tee_ioctl_buf_data(9)struct tee_ioctl_param(9)struct tee_ioctl_open_session_arg(9)TEE_IOC_OPEN_SESSION(9)struct tee_ioctl_invoke_arg(9)TEE_IOC_INVOKE(9)struct tee_ioctl_cancel_arg(9)TEE_IOC_CANCEL(9)struct tee_ioctl_close_session_arg(9)TEE_IOC_CLOSE_SESSION(9)struct tee_iocl_supp_recv_arg(9)TEE_IOC_SUPPL_RECV(9)struct tee_iocl_supp_send_arg(9)TEE_IOC_SUPPL_SEND(9)struct tee_ioctl_shm_register_data(9)struct tee_ioctl_shm_register_fd_data(9)TEE_IOC_SHM_REGISTER_FD(9)TEE_IOC_SHM_REGISTER(9)struct tee_ioctl_object_invoke_arg(9)
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
- 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