libnvmf_context_set_device(9) libnvme API manual libnvmf_context_set_device(9)

libnvmf_context_set_device - Set device for context

int libnvmf_context_set_device (struct libnvmf_context *fctx , const char *device );

Fabrics context
Device path or identifier

Sets the device to be used by the context.

0 on success, negative error code otherwise.

libnvmf_context_set_device September 2026