'\" t .\" Title: remove_resource .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "REMOVE_RESOURCE" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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" remove_resource \- Remove a resource in the resource tree .SH "SYNOPSIS" .HP \w'int\ remove_resource('u .BI "int remove_resource(struct\ resource\ *\ " "old" ");" .SH "ARGUMENTS" .PP \fIstruct resource * old\fR .RS 4 resource to remove .RE .SH "DESCRIPTION" .PP Returns 0 on success, \-EINVAL if the resource is not valid\&. .PP This function removes a resource previously inserted by \fBinsert_resource\fR or \fBinsert_resource_conflict\fR, and moves the children (if any) up to where they were before\&. \fBinsert_resource\fR and \fBinsert_resource_conflict\fR insert a new resource, and move any conflicting resources down to the children of the new resource\&. .PP \fBinsert_resource\fR, \fBinsert_resource_conflict\fR and \fBremove_resource\fR are intended for producers of resources, such as FW modules and bus drivers\&. .SH "COPYRIGHT" .br