STRUCT TEE_IOCTL_INVOKE_ARG(9)
π struct tee_ioctl_invoke_arg(9) β Kernel API Manual π
okay bestie, so this is a page from the Kernel API Manual, and it's literally the struct you use to invoke a function in a Trusted Application β¨ like, that's the whole NAME section, no notes, it ate.
π SYNOPSIS π
here's the shape of it, character for character, don't touch:
struct tee_ioctl_invoke_arg {
__u32 func;
__u32 session;
__u32 cancel_id;
__u32 ret;
__u32 ret_origin;
__u32 num_params;
struct tee_ioctl_param params[];
};
π«Ά MEMBERS π«Ά
okay so every field, one by one, i'm not skipping a single one, that's the rule π
funcβ[in]a Trusted Application function, and it's specific to the TA β so like, it only means something to the TA you're talking to, don't come for me about it πΈsessionβ[in]the session id π«cancel_idβ[in]the cancellation id, a unique value that identifies this request, so when you cancel you know exactly which one you mean fr frretβ[out]the return value comes back here π«ret_originβ[out]the origin of the return value, like where it came from, receipts basically π§Ύnum_paramsβ[in]the number of parameters that follow this struct, count them correctly bestie i'm begging πparamsβ the array of ioctl parameters, it's the flexible-array member at the end, no cap π¦
reminder:[in]means you feed it in,[out]means it comes back to you. don't flip them, that's giving chaos π
π¦ SEE ALSO π¦
the whole friend group, all of them, linked and iconic π
- Kernel file
./include/uapi/linux/tee.h struct tee_ioctl_version_data(9)TEE_IOC_VERSION(9)struct tee_ioctl_shm_alloc_data(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)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)
β¨ and that's the page, mwah β¨ this one lives over in ./include/uapi/linux, dated October 2026, and the whole thing is filed under struct tee_ioctl_invoke_arg(9) β go invoke something iconic bestie, ily, bye π«Άππ·
π¦ 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