optee_get_msg_arg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 store
  • entry_ret β€” entry pointer, needed when freeing the buffer
  • shm_ret β€” shared memory buffer
  • offs_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 🌈


source/version: ./drivers/tee/optee Β· date: October 2026 β€” mwah, signed with a little sparkle βœ¨πŸ’‹

πŸ“¦ where this page comes from