---
name: "insert_resource_conflict"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/insert_resource_conflict"
---

# insert\_resource\_conflict(9)

Inserts resource in the resource tree

## NAME

insert\_resource\_conflict - Inserts resource in the resource tree

## SYNOPSIS

**struct resource \* insert\_resource\_conflict(struct resource \*** *parent***, struct resource \*** *new***);**

## ARGUMENTS

*parent*

parent of the new resource

*new*

new resource to insert

## DESCRIPTION

Returns 0 on success, conflict resource if the resource can't be inserted.

This function is equivalent to request\_resource\_conflict when no conflict happens. If a conflict happens, 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.

This function is intended for producers of resources, such as FW modules and bus drivers.

## COPYRIGHT
