OS Manuals

libnvme_realloc-libnvme3(2)

libnvme_realloc - Resize an allocated memory buffer

libnvme_realloc(9) libnvme API manual libnvme_realloc(9)

libnvme_realloc - Resize an allocated memory buffer

void * libnvme_realloc (void *p , size_t len );

Existing memory buffer to resize
New size in bytes

Resizes the memory buffer referenced by p to len bytes. The returned buffer may be relocated. On successful expansion, any newly allocated portion of the buffer is zero-initialized.

If p is NULL, this function behaves like libnvme_alloc.

Pointer to the resized memory buffer on success, or NULL on failure. On failure, the original buffer referenced by p remains valid and unchanged.

libnvme_realloc October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31