STRUCT IO_TLB_SLOT(9)
π struct io_tlb_slot(9) β Kernel API Manual core π
okay so bestie, welcome to the glow-up of struct io_tlb_slot(9), straight out of the Kernel API Manual β¨ this is the little descriptor that lives in the IO TLB and honestly? it's giving backstage-pass energy. let's get into it π
β¨ NAME β¨
struct io_tlb_slot β the IO TLB slot descriptor, no cap π«Ά
πΈ SYNOPSIS πΈ
struct io_tlb_slot {
phys_addr_t orig_addr;
size_t alloc_size;
unsigned short list;
unsigned short pad_slots;
};
look at her. four fields. absolute main character energy π
π¦ MEMBERS π¦
orig_addrβ the original address that corresponds to a mapped entry. like, where it actually came from before things got mapped π«alloc_sizeβ the size of the allocated buffer. that's it, that's the whole vibe πlistβ the free list, and she's describing the number of free entries available from each index. lowkey the most bookkeeping-coded field here πpad_slotsβ the number of preceding padding slots. heads up though π¨ this one is valid only in the first allocated non-padding slot β anywhere else and it's just sitting there being invalid, iykyk π
π§ SEE ALSO π§
kernel file ./kernel/dma/swiotlb.c, plus this whole friend group π:
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)swiotlb_del_transient(9)is_swiotlb_allocated(9)default_swiotlb_base(9)default_swiotlb_limit(9)
and that's the whole page, bestie, we ate and left zero crumbs π
β¨ sign-off time: this one lives under ./kernel/dma, dated October 2026, and it's filed as struct io_tlb_slot(9) β periodt ππ
π¦ 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