tee_protmem...c_pool_alloc(9)
π tee_protmem_static_pool_alloc β like, the Kernel API Manual page β¨
okay so bestie, welcome to tee_protmem...c_pool_alloc(9) from the Kernel API Manual, we're literally in the <rainbow>kernel API manual</rainbow> rn and this one is a lil niche but so good. iykyk π«Ά
πΈ NAME πΈ
tee_protmem_static_pool_alloc β create a protected memory manager π
(yes that's the whole job, and yes she eats)
β¨ SYNOPSIS β¨
struct tee_protmem_pool * tee_protmem_static_pool_alloc (phys_addr_t paddr , size_t size );
like β she takes two args and hands you back a struct tee_protmem_pool *. no cap. π¦
π ARGUMENTS π
paddrβ the physical address where the pool starts, fr fr. that's the beginning of the vibe.sizeβ how big the pool is, measured in bytes. the wholesizein bytes situation. π
π§ RETURN π§
you get a pointer to a 'struct tee_protmem_pool' β¦ or an ERR_PTR if it failed π so like, check that pointer, bestie, don't just rawdog it into the next function. errors are giving plot twist energy and you need to catch them π
π SEE ALSO π
the whole friend group, plus the kernel file she lives in:
- Kernel file
./include/linux/tee_core.h struct tee_device(9)struct tee_driver_ops(9)struct tee_desc(9)struct tee_protmem_pool(9)struct tee_protmem_pool_ops(9)tee_device_alloc(9)tee_device_register(9)tee_device_unregister(9)tee_device_get(9)tee_device_put(9)tee_device_set_dev_groups(9)tee_session_calc_client_uuid(9)struct tee_shm_pool(9)struct tee_shm_pool_ops(9)tee_shm_pool_free(9)tee_get_drvdata(9)tee_shm_alloc_priv_buf(9)tee_shm_is_dynamic(9)tee_shm_put(9)tee_shm_get_id(9)tee_shm_get_from_id(9)teedev_open(9)teedev_close_context(9)teedev_ctx_get(9)teedev_ctx_put(9)
like, that's the entire group chat and i'm obsessed with every single one of them π«Άβ¨
ok that's the whole page, no notes, she's iconic, she's main character energy, periodt π
and finally, the lil sign-off: this absolute baddie of a page comes from the ./include/linux source tree and is dated October 2026, filed under tee_protmem...c_pool_alloc(9). πβ¨ slay, go read the rest of the kernel API manual, 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