STRUCT TEE_SHM_POOL_OPS(9)
π struct tee_shm_pool_ops(9) π
okay bestie, welcome to the kernel API manual, this one's from the 9 section (kernel dev pages, iykyk) and it's all about struct tee_shm_pool_ops β the shared memory pool operations π«Ά
β¨ NAME β¨
struct tee_shm_pool_ops β shared memory pool operations π
β¨ SYNOPSIS β¨
here's the whole struct, literally copy it exactly, no cap:
struct tee_shm_pool_ops {
int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm, size_t
size, size_t align);
void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm);
void (*destroy_pool)(struct tee_shm_pool *pool);
};
like, it's giving "three function pointers and a dream" π
β¨ Members β¨
allocβ this one gets called when allocating shared memory. that's the whole vibe. πfreeβ called when freeing shared memory. the clean-up icon, we stan. π§destroy_poolβ called when destroying the pool. it's the final boss of the pool lifecycle πβ¨
π¦ SEE ALSO π¦
okay so this is the part where we link you to literally everyone in the friend group. all of these live in the Kernel file ./include/linux/tee_core.h, periodt:
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), tee_shm_pool_free(9), tee_protmem_static_pool_alloc(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)
ngl that's a whole group chat worth of references, but every single one matters bestie, don't skip a single @ π«Ά
lowkey iconic sign-off incoming: this page comes from ./include/linux and it's dated October 2026 πΈ so yeah, future-core of you to be reading it. slay, go allocate some shared memory responsibly ππ₯
π¦ 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