krealloc(9)

krealloc9

Reallocate memory. the contents will remain unchanged.

Usage

void * krealloc(const void * p, size_t new_size, gfp_t flags);

Arguments

p

object to reallocate memory for.

new_size

how many bytes of memory are required.

flags

the type of memory to allocate.

Overview

The contents of the object pointed to are preserved up to the lesser of the new and old sizes. If p is NULL, krealloc behaves exactly like kmalloc. If new_size is 0 and p is not a NULL pointer, the object pointed to is freed.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.