libnvmf_kernel_options_for_each-libnvme32
Iterate over the kernel's options
Usage
int libnvmf_kernel_options_for_each (struct libnvme_global_ctx *ctx , void (*callback)(const char *name, void *user_data) , void *user_data );
Arguments
ctx
|
libnvme global context |
|---|---|
callback
|
Called once per option name |
user_data
|
Caller context passed to callback, may be NULL |
Overview
See libnvmf_kernel_option_supported for how the options are read.
Return
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.