libnvmf_context_set_discovery_hooks-libnvme3(2)

libnvmf_context_set_discovery_hooks-libnvme32

Set discovery hooks for context

Usage

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

Fabrics context

discovery_log

Hook for discovery log events

Overview

Sets the hooks used during discovery operations for the given context.

Return

0 on success, negative error code otherwise.

From nvme-cli 3.2-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.