qcom_tzmem_s...ridge_create(9)
π qcom_tzmem_shm_bridge_create(9) β aka the SHM bridge glow-up page
okay bestie, buckle up, because this is a kernel API page from the manual fam (the qcom_tzmem_s...ridge_create(9) girlies, you know the ones) and she is lowkey iconic. it's giving β¨firmwareβ¨, it's giving π¦trust zoneπ¦, and yes we're gonna get through the whole thing together, no skips, no cap. π«Ά
β¨ NAME β¨
qcom_tzmem_shm_bridge_create β literally the function that makes a SHM bridge π
π SYNOPSIS π
int qcom_tzmem_shm_bridge_create (phys_addr_t paddr , size_t size , u64
*handle );
so she takes three things and gives you back an int. main character energy fr fr.
πΈ ARGUMENTS πΈ
paddrβ the physical address of the memory you want to share π§ like, where the memory actually lives, physically.sizeβ how big that memory region is. the size of the memory to share, periodt.handleβ the handle to the SHM bridge π this is the lil receipt you get back, bestie. hold onto it.
π DESCRIPTION π
okay so. on platforms that support SHM bridge, this function creates a SHM bridge for the given memory region with QTEE. that's it, that's the whole vibe. π¦
and listen β the handle this function returns? you must pass it to qcom_tzmem_shm_bridge_delete to free the SHM bridge. not optional, not "i'll do it later", not "she'll clean herself up". you created her, you free her. π
β RETURN β
- on success, returns
0β slay π - on failure, returns
< 0β not slay π
π SEE ALSO π
kernel file ./drivers/firmware/qcom/qcom_tzmem.c β the source herself π
and her whole friend group, iykyk:
qcom_tzmem_shm_bridge_delete(9)qcom_tzmem_pool_new(9)qcom_tzmem_pool_free(9)devm_qcom_tzmem_pool_new(9)qcom_tzmem_alloc(9)qcom_tzmem_free(9)qcom_tzmem_to_phys(9)
ngl bestie, if you're reading this in a kernel tree, go drink some water and then go call qcom_tzmem_shm_bridge_delete on that handle. π
and that's the page!! πΈ brought to you by ./drivers/firmware/qcom, dated October 2026, page name qcom_tzmem_s...ridge_create(9). mwah, go be a good little kernel dev π
β¨π
π¦ 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