swiotlb_find_pool(9)
π swiotlb_find_pool(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is swiotlb_find_pool, and honestly? she's a little detective and she ate ππ
πΈ NAME πΈ
swiotlb_find_pool β literally finds the swiotlb pool that a physical address belongs to π iykyk
β¨ SYNOPSIS β¨
struct io_tlb_pool * swiotlb_find_pool (struct device *dev , phys_addr_t paddr );
that's the whole vibe. two args in, one pointer out π«Ά
π¦ ARGUMENTS π¦
devβ the device that has mapped the buffer. like, which device's business is this? π that one.paddrβ a physical address that lives inside the DMA buffer. the address in question, the one we're investigating π
π DESCRIPTION π
so basically she takes paddr and finds the swiotlb pool that paddr points into. that's it. that's the job. no cap, that's the entire description and she does it flawlessly π
β RETURN β
- the pool address β if
paddrpoints into a bounce buffer π slay NULLβ ifpaddrdoes not point into a bounce buffer π«
and because of that lilNULLsituation, you can literally use this function to figure out whetherpaddrdenotes a swiotlb bounce buffer or not. it's giving "two functions in a trench coat" π iconic
π SEE ALSO π
- kernel file
./include/linux/swiotlb.h struct io_tlb_pool(9)struct io_tlb_mem(9)
go read those too, bestie, they're the supporting cast π
mwah π that's the whole page β brought to you by ./include/linux, the October 2026 edition, and the letter swiotlb_find_pool(9) πβ¨ go find those pools, queen π§ββοΈ
π¦ 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