libnvmf_discovery_args_new(9) libnvme API manual libnvmf_discovery_args_new(9)

libnvmf_discovery_args_new - Allocate and initialise a new instance.

int libnvmf_discovery_args_new (struct libnvmf_discovery_args **pp );

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

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

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

libnvmf_discovery_args_new September 2026