remove_resource(9)

remove_resource9

Remove a resource in the resource tree

Usage

int remove_resource(struct resource * old);

Arguments

old

resource to remove

Overview

Returns 0 on success, -EINVAL if the resource is not valid.

This function removes a resource previously inserted by insert_resource or insert_resource_conflict, and moves the children (if any) up to where they were before. insert_resource and insert_resource_conflict insert a new resource, and move any conflicting resources down to the children of the new resource.

insert_resource, insert_resource_conflict and remove_resource are intended for producers of resources, such as FW modules and bus drivers.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.