insert_resource_conflict(9)
π NAME π
insert_resource_conflict β inserts a resource in the resource tree. That's the name-section tea, bestie. π
Hey hi hello π«Ά welcome to insert_resource_conflict(9) from the Kernel API Manual. We're inserting a resource into the resource tree, and yes, this page has main character energy.
β¨ SYNOPSIS β¨
struct resource * insert_resource_conflict (struct resource *parent ,
struct resource *new );
π ARGUMENTS π
parentβ the parent of the new resource, aka the resource that's about to be the parent. πnewβ the new resource you're trying to insert. This is the fresh one, the one with main character energy. β¨
π DESCRIPTION π
Return value check, bestie: it returns 0 on success. If the resource can't be inserted, you get the conflict resource instead. No cap, that's the whole return-value vibe. π
When no conflict happens, this function is equivalent to request_resource_conflict. Literally the same behavior in that case.
But if a conflict does happen, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource. Iconic nesting behavior, honestly. π¦
This function is intended for producers of resources, such as FW modules and bus drivers. So if that's your lane, this one's for you. π
π¦ SEE ALSO π¦
Kernel file: ./kernel/resource.c
Other pages to stalk:
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(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 π it comes from ./kernel and is dated October 2026 β stay hydrated and may your resources never conflict without permission π«Ά
π¦ 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