'\" t .\" Title: insert_resource_conflict .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "INSERT_RESOURCE_CONF" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" insert_resource_conflict \- Inserts resource in the resource tree .SH "SYNOPSIS" .HP \w'struct\ resource\ *\ insert_resource_conflict('u .BI "struct resource * insert_resource_conflict(struct\ resource\ *\ " "parent" ", struct\ resource\ *\ " "new" ");" .SH "ARGUMENTS" .PP \fIparent\fR .RS 4 parent of the new resource .RE .PP \fInew\fR .RS 4 new resource to insert .RE .SH "DESCRIPTION" .PP Returns 0 on success, conflict resource if the resource can\*(Aqt be inserted\&. .PP 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\&. .SH "COPYRIGHT" .br