lookup_resource(9)
π lookup_resource(9) π
okay so welcome to the Kernel API Manual, bestie β¨ todayβs main character is lookup_resource, and itβs giving βfind an existing resource by its start addressβ energy. lowkey simple, highkey useful. π
πΈ NAME πΈ
lookup_resource β find an existing resource by a resource start address. periodt. π«Ά
β¨ SYNOPSIS β¨
struct resource * lookup_resource (struct resource *root ,
resource_size_t start );
π ARGUMENTS π
rootβ root resource descriptor. the root of the whole situation, iykyk. π±startβ resource start address. literally the address weβre checking for, bestie. π
π DESCRIPTION π
Returns a pointer to the resource if itβs found, NULL otherwise. thatβs the whole plot. no cap. ππ
so yeah: found = you get a pointer to the resource; not found = NULL. clean, simple, ate. π
π SEE ALSO π
Kernel file: ./kernel/resource.c ποΈ β and the resource-adjacent besties are all right here:
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)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)
mwah π thatβs the whole page, bestie! source/version: ./kernel Β· date: October 2026. byeee π¦β¨
π¦ 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