reallocate_resource(9)
π reallocate_resource(9) β Kernel API Manual, but make it bestie π
π¦ NAME π¦
reallocate_resource β okay so this is the function that allocates a slot in the resource tree given range & alignment. and bestie, the resource will be relocated if the new size cannot be reallocated in the current location. that's the whole plot. β¨
β¨ SYNOPSIS β¨
int reallocate_resource (struct resource *root , struct resource *old ,
resource_size_t newsize , struct resource_constraint *constraint );
no cap, that's the exact signature. π
π ARGUMENTS π
rootβ the root resource descriptor. it's giving main character of the resource tree, fr.oldβ the resource descriptor desired by caller. lowkey the one your caller is asking for. πnewsizeβ the new size of the resource descriptor. the glow-up size, bestie.constraintβ the memory range and alignment constraints to be met. yes, the range and alignment rules it has to satisfy. π«Ά
π SEE ALSO π
Kernel file: ./kernel/resource.c β that's where this lives. the whole squad 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)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)
π that's the whole page, bestie! source/version: ./kernel Β· date: October 2026 Β· page: reallocate_resource(9) β now go be iconic in the resource tree π
π¦ 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