Name
krealloc —
reallocate memory. The contents will remain unchanged.
Synopsis
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.
Description
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.