libnvmf\_kernel\_option\_supported(9) libnvme API manual libnvmf\_kernel\_option\_supported(9)

# [NAME](#NAME)

libnvmf\_kernel\_option\_supported - Check if the kernel supports an option

# [SYNOPSIS](#SYNOPSIS)

**int libnvmf\_kernel\_option\_supported** **(struct libnvme\_global\_ctx \*ctx ,** **const char \*name ,** **bool \*supported );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

libnvme global context

[name](#name)

Option name as the kernel lists it in /dev/nvme-fabrics, e.g. "discovery", "tls", "ctrl\_loss\_tmo"

[supported](#supported)

Set to true if the kernel supports *name*

# [DESCRIPTION](#DESCRIPTION)

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

# [RETURN](#RETURN)

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

libnvmf\_kernel\_option\_supported October 2026

---

Document: libnvmf_kernel_option_supported-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
