teedev_open(9)
π teedev_open(9) β a Kernel API Manual moment π
okay so bestie, welcome to the teedev_open page from the Kernel API Manual β it's a whole section 9 manpage and honestly it's short but she's iconic π
β¨ NAME β¨
teedev_open β literally just opens a struct tee_device π«Ά
πΈ SYNOPSIS πΈ
struct tee_context * teedev_open (struct tee_device *teedev );
that's it. that's the whole function signature. the way she takes one struct tee_device * and hands you back a struct tee_context * β main character energy fr fr β¨
π¦ ARGUMENTS π¦
teedevβ the device you wanna open, bestie. that's the one. π
β RETURN β
- you get a pointer to
struct tee_contexton success β slay π - or an
ERR_PTRon failure β and yes that's a real thing, no cap, so please check it with the usual error-checking macros before you go dereferencing anything π
ngl if you skip the error check you're gonna have a bad time. the kernel does not do vibes-based error handling π
π§ SEE ALSO π§
like a whole friend group, honestly. the Kernel file ./include/linux/tee_core.h is the group chat, and everyone below is in it π
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_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_close_context(9)teedev_ctx_get(9)teedev_ctx_put(9)
and that's the whole page!! π little page, big personality. this one came from ./include/linux, dated October 2026 β mwah, kiss the source tree for me πβ¨ iykyk
π¦ 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