tee_device_alloc(9)
πΈ NAME πΈ
okay so bestie, welcome to the Kernel API Manual β this is the page for tee_device_alloc, and it's literally here to allocate a new struct tee_device instance β¨. that's the whole name drop, no cap.
β¨ SYNOPSIS β¨
struct tee_device * tee_device_alloc (const struct tee_desc *teedesc ,
struct device *dev , struct tee_shm_pool *pool , void *driver_data );
π ARGUMENTS π
teedescβ descriptor for this driver, like the driver's little ID card πdevβ parent device for this device πpoolβ shared memory pool, and it'sNULLif it's not used π«Άdriver_dataβ private driver data for this device, and private means private, bestie π
π DESCRIPTION π
so this one allocates a new struct tee_device instance β¨. that's the main character move. and when it's time for it to go, the device is removed by tee_device_unregister β that's the removal bestie, don't forget it π.
π RETURN π
you get a pointer to a 'struct tee_device', or an ERR_PTR on failure π. not a vibe, but at least it's documented.
π¦ SEE ALSO π¦
the kernel file ./include/linux/tee_core.h is where the lore lives, and here's the whole squad linked up:
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_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_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)
mwah π signing off from tee_device_alloc(9) β source/version lives at ./include/linux, date says October 2026, and this whole page is the Kernel API Manual energy. byeee π«Άβ¨
π¦ 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