---
name: "reallocate_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/reallocate_resource"
---

# reallocate\_resource(9)

allocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.

## NAME

reallocate\_resource - allocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.

## SYNOPSIS

**int reallocate\_resource(struct resource \*** *root***, struct resource \*** *old***, resource\_size\_t** *newsize***, struct resource\_constraint \*** *constraint***);**

## ARGUMENTS

*root*

root resource descriptor

*old*

resource descriptor desired by caller

*newsize*

new size of the resource descriptor

*constraint*

the size and alignment constraints to be met.

## COPYRIGHT
