OS Manuals

libnvmf_kernel_options_for_each-libnvme3(2)

libnvmf_kernel_options_for_each - Iterate over the kernel's options

libnvmf_kernel_options_for_each(9) libnvme API manual libnvmf_kernel_options_for_each(9)

libnvmf_kernel_options_for_each - Iterate over the kernel's options

int libnvmf_kernel_options_for_each (struct libnvme_global_ctx *ctx , void (*callback)(const char *name, void *user_data) , void *user_data );

libnvme global context
Called once per option name
Caller context passed to callback, may be NULL

See libnvmf_kernel_option_supported for how the options are read.

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

libnvmf_kernel_options_for_each October 2026

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