---
name: "adjust_resource"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/adjust_resource"
---

# adjust\_resource(9)

modify a resource's start and size

## NAME

adjust\_resource - modify a resource's start and size

## SYNOPSIS

**int adjust\_resource(struct resource \*** *res***, resource\_size\_t** *start***, resource\_size\_t** *size***);**

## ARGUMENTS

*res*

resource to modify

*start*

new start value

*size*

new size

## DESCRIPTION

Given an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.

## COPYRIGHT
