libnvmf_discovery_args_new(9)

πŸ“¦ version 3.2, in arch rolling

πŸ‘‘ libnvmf_discovery_args_new(9) πŸ‘‘

hey bestie, welcome to the libnvme API manual β€” this one's all about making a brand-new discovery-args object, and it is lowkey iconic ✨


🌸 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. slay πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function allocates a zeroed struct libnvmf_discovery_args on the heap. that's the whole vibe ✨

the caller must release it with libnvmf_discovery_args_free β€” no ghosting your allocations, bestie, fr fr πŸ’€


πŸ’– RETURN πŸ’–

  • 0 on success πŸŽ‰
  • -EINVAL if pp is NULL πŸ™ˆ
  • -ENOMEM if allocation fails 😭

β€” xoxo, your Unix bestie 🫢 Β· libnvme API manual Β· October 2026 Β· footer/source-version tag: libnvmf_discovery_args_libnvmf_discovery_args_new(9)

πŸ“¦ where this page comes from