tee_shm_get_pages(9)
π tee_shm_get_pages β the Kernel API Manual, but make it cute
okay so bestie, welcome to tee_shm_get_pages(9) β that's the section 9 (kernel API) page, and it's literally about getting the list of pages that hold a shared buffer. that's it, that's the vibe. π
β¨ NAME β¨
tee_shm_get_pages β get list of pages that hold shared buffer. no cap, the whole personality of this function is right there in the name. π¦
πΈ SYNOPSIS πΈ
struct page ** tee_shm_get_pages (struct tee_shm *shm , size_t
*num_pages );
it gives you back a struct page ** β a pointer to the pages array, periodt. and yeah, it takes two things, let's get into them π
π ARGUMENTS π
shmβ the shared memory handle. this is your vibe pass into the shared buffer world πnum_pagesβ the number of pages will be stored there, and it returns a pointer to the pages array. like, both things happen through this one argument, she's doing double duty and she's iconic for it β¨
π¦ SEE ALSO π¦
oh bestie, this list is long and honestly it ate. everything here lives with the rest of the TEE crowd β kernel file ./include/linux/tee_drv.h is the one holding the whole friend group π
struct tee_context(9)struct tee_shm(9)tee_shm_alloc_kernel_buf(9)tee_shm_register_kernel_buf(9)tee_shm_register_fd(9)tee_shm_free(9)tee_shm_get_va(9)tee_shm_get_pa(9)tee_shm_get_size(9)tee_shm_get_page_offset(9)tee_client_open_context(9)tee_client_close_context(9)tee_client_get_version(9)tee_client_open_session(9)tee_client_close_session(9)tee_client_system_session(9)tee_client_invoke_func(9)tee_client_cancel_req(9)struct tee_client_device(9)struct tee_client_driver(9)
ngl the wholetee_shm_*andtee_client_*family is giving main character energy β if this page didn't answer your question, one of her twenty little siblings 100% will π
okay that's the page!! mwah π this one shipped out of ./include/linux in October 2026, and it's filed under the tee_shm_get_pages(9) header up top β go be obsessed with your pages, bestie, you've earned it πβπ«Ά
π¦ 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