Reference

libnvmf_exclusion_entry_for_each-libnvme3(2)

iterate over entries in a named list.

NAME

libnvmf_exclusion_entry_for_each - iterate over entries in a named list.

SYNOPSIS

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.