walk_iomem_res_desc(9)
π walk_iomem_res_desc(9) β Kernel API Manual π
okay bestie, you're reading the walk_iomem_res_desc(9) page from the Kernel API Manual, and it's giving resource-walk realness β¨ let's go.
πΈ NAME πΈ
walk_iomem_res_desc β takes a little stroll through iomem resources and calls func() for the matching resource ranges. *
(yes, that trailing * is literally part of the NAME line β details are the moment π
)
β¨ SYNOPSIS β¨
int walk_iomem_res_desc (unsigned long desc , unsigned long flags , u64
start , u64 end , void *arg , int (*func)(struct resource *, void *) );
π ARGUMENTS π
descβ the I/O resource descriptor. PassIORES_DESC_NONEif you want to skip the desc check entirely, bestie πflagsβ the I/O resource flags.startβ start addr.endβ end addr.argβ the function argument that gets handed to the callbackfunc.funcβ the callback function; it gets called for each qualifying resource area.
π¦ DESCRIPTION π¦
So the valid candidates are all the memory ranges that overlap start,end and also match both flags and desc. That's the whole vibe check: overlap + matching flags + matching desc = candidate π¦π
π NOTE π
For a new descriptor search, define a new IORES_DESC in <linux/ioport.h> and set it in 'desc' of a target resource entry. That's the move π
π₯ SEE ALSO π₯
Kernel file ./kernel/resource.c β and then the whole resource-friend group chat:
request_resource_conflict(9)request_resource(9)release_resource(9)find_next_res(9)region_intersects(9)find_resource_space(9)reallocate_resource(9)allocate_resource(9)lookup_resource(9)insert_resource_conflict(9)insert_resource(9)insert_resource_expand_to_fit(9)remove_resource(9)adjust_resource(9)resource_alignment(9)__request_region(9)__release_region(9)release_mem_region_adjustable(9)merge_system_ram_resource(9)devm_request_resource(9)devm_release_resource(9)devm_request_free_mem_region(9)alloc_free_mem_region(9)
okay that's the page, bestie π source/version: ./kernel; date: October 2026. walk_iomem_res_desc(9) out β slay responsibly π«Ά
π¦ 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