optee_fill_pages_list(9)
π optee_fill_pages_list(9) β Kernel API Manual β¨
okay so bestie, welcome to the glow-up of <pink>optee_fill_pages_list</pink>, a kernel API manual page from the OP-TEE corner of the tree π§ββοΈ β this one's all about writing a list of user pages into a shared buffer. no cap, it's a small function but it's iconic π
β¨ NAME β¨
optee_fill_pages_list β write list of user pages to given shared buffer.
like, that's literally the whole job π«Ά
πΈ SYNOPSIS πΈ
void optee_fill_pages_list (u64 *dst , struct page **pages , int
num_pages , size_t page_offset );
yep, that's the signature, copied exactly so you don't have to squint at the original π
π ARGUMENTS π
dstβ the page-aligned buffer where the list of pages is gonna be stored. this is the destination bestie, the place the gossip gets written down πpagesβ the array of pages that represents the shared buffer. it's giving "the actual content" energynum_pagesβ how many entries live inpages. count 'em, don't guess π’page_offsetβ the offset of the user buffer from the page start. lowkey important for lining things up right β¨
π¦ DESCRIPTION π¦
so here's the vibe check: dst should be big enough to hold the list of user page addresses and the links to the next pages of the buffer. that's it, that's the requirement β if your buffer is too smol, that's on you, bestie π make it big enough π
π SEE ALSO π
the whole friend group, fr fr π«Ά β all of these live in the kernel file ./drivers/tee/optee/smc_abi.c:
optee_from_msg_param(9)optee_to_msg_param(9)optee_enable_shm_cache(9)__optee_disable_shm_cache(9)optee_disable_shm_cache(9)optee_disable_unmapped_shm_cache(9)optee_shm_pool_alloc_pages(9)optee_handle_rpc(9)optee_smc_do_call_with_arg(9)
go read them, they ate π₯
and that's the page, bestie! π this little gem comes to you from ./drivers/tee/optee, dated October 2026 β mwah, stan the kernel docs, periodt ππΈ
π¦ 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