optee_fill_pages_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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" energy
  • num_pages β€” how many entries live in pages. 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:

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