tee_get_drvdata(9)
π tee_get_drvdata(9) β from the Kernel API Manual, bestie
okay so real talk, this page is literally one function and it's the easiest W in the whole TEE subsystem. it's giving "getter that just hands you your own pointer back" and honestly? iconic. no cap. π
πΈ NAME πΈ
tee_get_drvdata β return the driver_data pointer. that's it. that's the whole job. she's simple, she's reliable, she ate. β¨
π SYNOPSIS π
void * tee_get_drvdata (struct tee_device *teedev );
yes bestie, copy it exactly like that, spaces and all, i don't make the rules π
π¦ ARGUMENTS π¦
teedevβ pointer to thetee_device. that's the one and only thing you pass in. she just wants her teedev, that's all. π«Ά
β RETURN β
she gives you back the driver_data pointer that you supplied to tee_register. so likeβ¦ the pointer you put in comes right back out. main character energy of a getter, fr fr. π₯
lowkey the most important thing here: it's the pointer you handed to tee_register, no cap, no surprise plot twist. π
π SEE ALSO π
the whole friend group π«Ά β go say hi to:
- 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_protmem_static_pool_alloc(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 π that's the page!! shoutout to the ./include/linux girlies and this October 2026 edition of tee_get_drvdata(9) β go forth and get your drvdata, bestie, i believe in you π§ββοΈπ
π¦ 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