OS Manuals

libnvmf_kernel_option_supported-libnvme3(2)

libnvmf_kernel_option_supported - Check if the kernel supports an option

libnvmf_kernel_option_supported(9) libnvme API manual libnvmf_kernel_option_supported(9)

libnvmf_kernel_option_supported - Check if the kernel supports an option

int libnvmf_kernel_option_supported (struct libnvme_global_ctx *ctx , const char *name , bool *supported );

libnvme global context
Option name as the kernel lists it in /dev/nvme-fabrics, e.g. "discovery", "tls", "ctrl_loss_tmo"
Set to true if the kernel supports name

The options are read from /dev/nvme-fabrics once per ctx. The read blocks while another process connects a controller.

0 on success, -EINVAL if an argument is NULL, -EOPNOTSUPP if the kernel does not list its options (Linux < 5.17), or another negative error code.

libnvmf_kernel_option_supported October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31