devm_request...e_mem_region(9)
πΈ NAME πΈ
Hey bestie, welcome to the devm_request...e_mem_region(9) page from the Kernel API Manual β¨
devm_request_free_mem_region β find free region for device private memory π
β¨ SYNOPSIS β¨
okay so the signature is literally:
struct resource * devm_request_free_mem_region (struct device *dev , struct resource *base , unsigned long size );
π ARGUMENTS π
Itβs giving three arguments, no cap:
devβ device struct to bind the resource to π«Άbaseβ resource tree to look in πsizeβ size in bytes of the device memory to add π
π¦ DESCRIPTION π¦
So what does it do? This function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages. Thatβs the whole plot, periodt π₯
π SEE ALSO π
The kernel file is ./kernel/resource.c, and the resource-core guest list is:
request_resource_conflict(9)request_resource(9)release_resource(9)find_next_res(9)walk_iomem_res_desc(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)alloc_free_mem_region(9)
okay thatβs the page, bestie π shoutout to the ./kernel source and the October 2026 date stamp, and this icon is devm_request...e_mem_region(9) β slay πβ¨
π¦ 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