remove_resource (9) - Linux Man Pages
remove_resource: Remove a resource in the resource tree
remove_resource - Remove a resource in the resource tree
int remove_resource(struct resource
- resource to remove
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.