libnvmf_con...covery_hooks(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvmf_con...covery_hooks(9) πŸ’…

okay bestie, welcome to the libnvme API manual page for this little discovery-hook situation. It’s giving β€œone function, one job, zero drama” ✨


✨ NAME ✨

libnvmf_context_set_discovery_hooks β€” Set discovery hooks for context πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int libnvmf_context_set_discovery_hooks (struct libnvmf_context *fctx ,
       void (*discovery_log)(struct libnvmf_context *fctx, const struct
       nvmf_discovery_log *log, uint64_t numrec, void *user_data) );

🫢 ARGUMENTS 🫢

  • fctx β€” the Fabrics context, periodt πŸ’…
  • discovery_log β€” the hook for discovery log events 🌸

🧚 DESCRIPTION 🧚

Okay so this function sets the hooks used during discovery operations for the given context. That’s the whole vibe, no cap πŸ’–


🌈 RETURN 🌈

0 on success, negative error code otherwise. Slay when it’s 0, and when it’s negative… bestie, handle your error code 😭


source/version cutie: libnvmf_context_set_discoverlibnvmf_con...covery_hooks(9) πŸ’œ date cutie: October 2026 πŸŽ€ bye bestie, go set those discovery hooks and be iconic πŸ‘‘βœ¨

πŸ“¦ where this page comes from