Scroll to navigation

__KREALLOC(9) Memory Management in Linux __KREALLOC(9)

NAME

__krealloc - like krealloc but don't free p.

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

This function is like krealloc except it never frees the originally allocated buffer. Use this if you don't want to free the buffer immediately like, for example, with RCU.

COPYRIGHT

May 2018 Kernel Hackers Manual 3.16