address_to_pte_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ address_to_pte_idx(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a lil function called address_to_pte_idx and honestly? it does exactly one thing and it does it slayfully β€” it splits an IOVA into its L1 and L2 page table indices. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

address_to_pte_idx β€” split IOVA into L1 and L2 page table indices

like, literally what it says on the tin, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void address_to_pte_idx (unsigned long iova , u32 *l1pt_idx , u32
*l2pt_idx );

it's a void function so don't go looking for a return value, she gives you nothing back directly β€” the tea comes out through the pointers πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • iova β€” the IOVA you wanna split. this is the main character of the whole operation ✨
  • l1pt_idx β€” output spot for the L1 page table index. she gets written to, periodt.
  • l2pt_idx β€” output for the L2 page index. also gets written to. also iconic. πŸ’…
ngl both l1pt_idx and l2pt_idx are outputs, so pls pls pls hand over valid u32 * pointers or the whole thing is giving chaos 😭

🌈 SEE ALSO 🌈

like the whole imgu_mmu friend group fr fr πŸ’œ


okay that's the page!! mwah πŸ’‹ this lil manpage came from ./drivers/staging/media/ipu3 and it's dated October 2026 β€” screenshot it, cite it, put it on your fridge, whatever bestie, it's yours now πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from