.TH "libnvmf_discovery_args_new" 9 "libnvmf_discovery_args_new" "September 2026" "libnvme API manual" LINUX .SH NAME libnvmf_discovery_args_new \- Allocate and initialise a new instance. .SH SYNOPSIS .B "int" libnvmf_discovery_args_new .BI "(struct libnvmf_discovery_args **pp " ");" .SH ARGUMENTS .IP "pp" 12 On success, *pp is set to the newly allocated object. .SH "DESCRIPTION" Allocates a zeroed \fIstruct libnvmf_discovery_args\fP on the heap. The caller must release it with \fBlibnvmf_discovery_args_free\fP. .SH "RETURN" 0 on success, -EINVAL if \fIpp\fP is NULL, -ENOMEM if allocation fails.