STRUCT TEE_SHM_POOL_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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