tee_device_unregister(9)
β¨ tee_device_unregister(9) β¨
okay bestie, welcome to the Kernel API Manual β this one's a tiny little function but it's giving very important cleanup energy, so let's get into it π
πΈ NAME πΈ
tee_device_unregister β literally removes a TEE device. that's it, that's the whole vibe π
β SYNOPSIS β
void tee_device_unregister (struct tee_device *teedev );
no cap, that's the whole signature. returns nothing (void), takes one pointer. iconic minimalism β¨
π¦ ARGUMENTS π¦
teedevβ the device you wanna unregister. the one that's gotta go π
π DESCRIPTION π
okay so here's the tea π: you should call this function to remove the teedev even if tee_device_register hasn't been called yet. yep, you read that right β unregistered-but-not-yet-registered is still a valid thing to clean up, so don't be shy about it.
and if teedev is NULL? it literally does nothing. zero. nada. no crash, no drama, just vibes ππ«Ά
fr fr though β this is the "even if you haven't registered it yet" clause, so don't skip cleanup just because registration never happened π
π§ SEE ALSO π§
all the friends in the group chat, in the 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_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)
π sign-off π
that's the whole page, bestie π it lives in ./include/linux, dated October 2026, and it's part of the Kernel API Manual β go forth and unregister 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