remove_resource (9) - Linux Manuals

remove_resource: Remove a resource in the resource tree

NAME

remove_resource - Remove a resource in the resource tree

SYNOPSIS

int remove_resource(struct resource old);

ARGUMENTS

old

resource to remove

DESCRIPTION

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.

COPYRIGHT