libnvmf_exclusion_entry_for_each-libnvme32
Iterate over entries in a named list.
Usage
int libnvmf_exclusion_entry_for_each (struct libnvme_global_ctx *ctx , const char *name , void (*callback)(const char *entry, void *user_data) , void *user_data );
Arguments
ctx
|
libnvme global context; must not be NULL |
|---|---|
name
|
list name (basename without .conf suffix) |
callback
|
called with the raw entry string (e.g. "transport=tcp;traddr=...") |
user_data
|
caller context passed to callback |
Return
0 on success, -ENOENT if the list does not exist, negative errno otherwise.