swiotlb_del_transient(9)
π
swiotlb_del_transient (9) β Kernel API Manual π
okay so bestie, we're in the Kernel API Manual today and the star of the show is swiotlb_del_transient β¨ it's a little function that's like "hey, is this address part of a transient memory pool? if yes, delete it, bye π
" β honestly iconic behavior, no cap.
πΈ NAME πΈ
swiotlb_del_transient β delete a transient memory pool ποΈβ¨
π¦ SYNOPSIS π¦
bool swiotlb_del_transient (struct device *dev , phys_addr_t tlb_addr ,
struct io_tlb_pool *pool );
returns a bool, takes three args, that's the whole vibe π
π ARGUMENTS π
devβ thestruct device *that mapped the buffer, like the main character of this whole situation π«Άtlb_addrβ aphys_addr_t, and it's the physical address sitting inside a bounce buffer πpoolβ a pointer to the transient memory pool that's gonna get checked and then (spoiler π«’) deleted,struct io_tlb_pool *energy π
π DESCRIPTION π
so what it does is literally this: it checks whether the address actually belongs to a transient SWIOTLB memory pool π§ and if yes?? then it deletes the pool. periodt. that's the lore π
β RETURN β
it returns true if tlb_addr belonged to a transient pool that was released π (so like, true = we found it and let it go, false = not our girl π)
π SEE ALSO π
buckle up bestie, this is a long one π«Ά the kernel file lives at ./kernel/dma/swiotlb.c and it's giving family reunion:
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_find_pool(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)is_swiotlb_allocated(9)default_swiotlb_base(9)default_swiotlb_limit(9)
like I said. whole friend group. iykyk π
fr fr don't sleep on reading those, they're all lowkey part of the same story π¦
and that's the page!! π brought to you from ./kernel/dma πΈ dated October 2026 β and yeah the page is literally called swiotlb_del_transient(9) β mwah, slay, goodbye bestie πβ¨
π¦ 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