Scroll to navigation

libnvmf_context_set_reconnect_policy(9) libnvme API manual libnvmf_context_set_reconnect_policy(9)

NAME

libnvmf_context_set_reconnect_policy - Set reconnect policy for context

SYNOPSIS

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

ARGUMENTS

Fabrics context
Controller loss timeout in seconds; negative means retry indefinitely
Delay between reconnect attempts in seconds
Fast I/O fail timeout in seconds; negative disables it; must not exceed ctrl_loss_tmo

DESCRIPTION

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.

libnvmf_context_set_reconnect_policy July 2026