address_to_pte_idx(9)
β¨ 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 bothl1pt_idxandl2pt_idxare outputs, so pls pls pls hand over validu32 *pointers or the whole thing is giving chaos π
π SEE ALSO π
- Kernel file
./drivers/staging/media/ipu3/ipu3-mmu.cβ go read the source, iykyk π§ imgu_mmu_tlb_invalidate(9)imgu_mmu_set_halt(9)imgu_mmu_alloc_page_table(9)imgu_mmu_free_page_table(9)imgu_mmu_map(9)imgu_mmu_map_sg(9)imgu_mmu_unmap(9)imgu_mmu_init(9)imgu_mmu_exit(9)
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
- 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