libnvmf_context_set_discovery_hooks(9)

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
    Fabrics context

discovery_log
    Hook for discovery log events

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

RETURN
0 on success, negative error code otherwise.