Reference

libnvmf_discovery_args_new-libnvme3(2)

Allocate and initialise a new instance.

NAME

libnvmf_discovery_args_new - Allocate and initialise a new instance.

SYNOPSIS

int libnvmf_discovery_args_new (struct libnvmf_discovery_args **pp );

ARGUMENTS

pp

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

DESCRIPTION

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.