__swiotlb_find_pool(9)
π NAME π
okay so bestie, welcome to __swiotlb_find_pool(9) from the Kernel API Manual β¨. This function is literally here to find the IO TLB pool for a physical address. no cap π
.
πΈ SYNOPSIS πΈ
struct io_tlb_pool * __swiotlb_find_pool (struct device *dev ,
phys_addr_t paddr );
π ARGUMENTS π
devβ the device which has mapped the DMA buffer π.paddrβ the physical address within the DMA buffer π.
π¦ DESCRIPTION π¦
So the vibe is: find the IO TLB memory pool descriptor which contains the given physical address, if any π. That's it, that's the quest.
π¨ caveat, bestie: this function is for use only when thedevis known to be using swiotlb. Useswiotlb_find_poolfor the more general case when this condition is not met. iykyk π.
π RETURN π
Memory pool which contains paddr, or NULL if none π.
π SEE ALSO π
bestie, go peek at these if you're feeling curious π§:
- Kernel file
./kernel/dma/swiotlb.c struct io_tlb_slot(9)struct io_tlb_area(9)swiotlb_adjust_nareas(9)limit_nareas(9)add_mem_pool(9)alloc_dma_pages(9)swiotlb_alloc_tlb(9)swiotlb_free_tlb(9)swiotlb_alloc_pool(9)swiotlb_dyn_alloc(9)swiotlb_del_pool(9)swiotlb_dev_init(9)swiotlb_align_offset(9)swiotlb_search_pool_area(9)swiotlb_search_area(9)swiotlb_find_slots(9)mem_pool_used(9)mem_used(9)swiotlb_tbl_map_single(9)swiotlb_del_transient(9)is_swiotlb_allocated(9)default_swiotlb_base(9)default_swiotlb_limit(9)
mwah π β source/version check: ./kernel/dma, date: October 2026, and yes it's literally the __swiotlb_find_pool(9) page π«Ά.
π¦ 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