carta
libnvmf_discovery_args_new-libnvme3(2)

libnvmf_discovery_args_new-libnvme32

Allocate and initialise a new instance.

Usage

int libnvmf_discovery_args_new (struct libnvmf_discovery_args **pp );

Arguments

pp

On success, ``*pp`` is set to the newly allocated object.

Overview

Allocates a zeroed struct libnvmf_discovery_args on the heap. The caller must release it with libnvmf_discovery_args_free.

Return

0 on success, -EINVAL if pp is NULL, -ENOMEM if allocation fails.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.