Scroll to navigation

REALLOCATE_RESOURCE(9) Hardware Interfaces REALLOCATE_RESOURCE(9)

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

struct resource * root

root resource descriptor

struct resource * old

resource descriptor desired by caller

resource_size_t newsize

new size of the resource descriptor

struct resource_constraint * constraint

the size and alignment constraints to be met.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11