libnvmf_context_set_reconnect_policy-libnvme3(2)

libnvmf_context_set_reconnect_policy-libnvme32

Set reconnect policy for context

Usage

int libnvmf_context_set_reconnect_policy (struct libnvmf_context *fctx , int ctrl_loss_tmo , int reconnect_delay , int fast_io_fail_tmo );

Arguments

fctx

Fabrics context

ctrl_loss_tmo

Controller loss timeout in seconds; negative means retry indefinitely

reconnect_delay

Delay between reconnect attempts in seconds

fast_io_fail_tmo

Fast I/O fail timeout in seconds; negative disables it; must not exceed ctrl_loss_tmo

Overview

Convenience setter for the three coupled reconnect policy parameters. ctrl_loss_tmo and reconnect_delay are coupled: the kernel derives the maximum reconnect attempt count from their ratio. fast_io_fail_tmo controls how quickly outstanding I/O is failed while reconnection is in progress.

Individual libnvmf_context_set_ctrl_loss_tmo, _set_reconnect_delay, and _set_fast_io_fail_tmo accessors are also available when only a subset needs to change.

Return

0 on success, negative error code otherwise.

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