optee_get_msg_arg(9)
π optee_get_msg_arg(9) π
okay so this is from the Kernel API Manual, and it's literally the page for getting shared memory ready for an argument struct. bestie, it's giving low-level TEE plumbing, and we're obsessed. π«Ά
πΈ NAME πΈ
optee_get_msg_arg β provide shared memory for argument struct
β¨ SYNOPSIS β¨
struct optee_msg_arg * optee_get_msg_arg (struct tee_context *ctx ,
size_t num_params , struct optee_shm_arg_entry **entry_ret , struct
tee_shm **shm_ret , u_int *offs_ret );
π ARGUMENTS π
ctxβ caller TEE context, the main character of this call πnum_paramsβ number of parameter to storeentry_retβ entry pointer, needed when freeing the buffershm_retβ shared memory bufferoffs_retβ offset of the argument strut in the shared memory buffer (yes, the page says βstrutβ β iconic, keeping it π)
π¦ DESCRIPTION π¦
returns a pointer to the argument struct in memory, else an ERR_PTR. periodt. π₯
π SEE ALSO π
- Kernel file
./drivers/tee/optee/call.c optee_free_msg_arg(9)
source/version: ./drivers/tee/optee Β· date: October 2026 β mwah, signed with a little sparkle β¨π
π¦ 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