__optee_disable_shm_cache(9)
π
__optee_disable_shm_cache(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's a Linux kernel manpage, it's section 9, and it's about turning off the caching of some shared memory allocation in OP-TEE. yes, we're doing cleanup energy today π§Ήπ
πΈ NAME πΈ
__optee_disable_shm_cache β literally disables caching of some shared memory allocation in OP-TEE. that's it, that's the whole job, and it ate π
π¦ SYNOPSIS π¦
void __optee_disable_shm_cache (struct optee *optee , bool is_mapped );
look at that signature. no return value, no drama, just vibes and two arguments π
β¨ ARGUMENTS β¨
opteeβ the main service struct π«Ά like, the whole main character of the OP-TEE driver situation, and this is where you hand it over.is_mappedβ abool, and the details matter here ngl: it's true if the cached shared memory addresses were mapped by this kernel, are safe to dereference, and should be freed. sotrue= yes bestie, we mapped these, they're safe to dereference, go ahead and free them.false= step away from the dereference, we do not touch π₯
π SEE ALSO π
the kernel file lives at ./drivers/tee/optee/smc_abi.c and honestly it's giving home-base for this whole fam π here's the whole crew:
optee_from_msg_param(9)optee_to_msg_param(9)optee_enable_shm_cache(9)optee_disable_shm_cache(9)optee_disable_unmapped_shm_cache(9)optee_fill_pages_list(9)optee_shm_pool_alloc_pages(9)optee_handle_rpc(9)optee_smc_do_call_with_arg(9)
like yes, there are two nearly-identical names in there β optee_disable_shm_cache(9) and __optee_disable_shm_cache(9) β and no, that's not a typo on my part, that's just how the family tree is π iykyk
π reminder bestie: if is_mapped is true, you're saying those cached addresses are reasoned-about-and-safe. only say that when it's actually true, mmkay? π
and that's the whole page, mwah π this one came from the source tree at ./drivers/tee/optee, dated October 2026 β same energy as ever, periodt. πΈπ¦β¨
π¦ 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