mem_pool_used(9)
π mem_pool_used(9) β Kernel API Manual
okay bestie, so this is a kernel API page, section 9, and we're literally about to learn how to peek at a memory pool's used-slot count. it's giving "quick little helper function" energy and honestly? obsessed. π
β¨ NAME β¨
mem_pool_used β get the number of used slots in a memory pool π
πΈ SYNOPSIS πΈ
unsigned long mem_pool_used (struct io_tlb_pool *pool );
that's the whole call, no cap. it hands you back an unsigned long and takes exactly one argument. periodt. β¨
π¦ ARGUMENTS π¦
poolβ the Software IO TLB memory pool. like, the actual pool you're curious about. that's it, that's the argument π«Ά
π DESCRIPTION π
so the vibe here is: you call it, you get a number. but bestie, hear me β the result is not accurate. fr fr. it's not the real, exact count. the page straight up tells you to go look at mem_used for the details on that. so don't @ me if the number looks a little sus π
π real talk: "not accurate" is literally in the docs. treat this as a ballpark, not gospel.
π₯ RETURN π₯
the approximate number of used slots. approximately. like how approximately five more minutes. πβ¨
π SEE ALSO π
the whole friend group, all here, all iconic:
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_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_used(9)swiotlb_tbl_map_single(9)swiotlb_del_transient(9)is_swiotlb_allocated(9)default_swiotlb_base(9)default_swiotlb_limit(9)
π and that's the whole page, bestie! this one comes to you from ./kernel/dma, dated October 2026, and it's filed under mem_pool_used(9) π go forth and approximately count your slots πβ¨
π¦ 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