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.