libnvmf_exclusion_add-libnvme32
Append an entry to a named list (atomic write).
Usage
int libnvmf_exclusion_add
(struct
libnvme_global_ctx
*ctx
,
const
char
*name
,
const
char
*entry
);
Arguments
- ctx
-
libnvme global context; must not be NULL
- name
-
list name
- entry
-
semicolon-separated key=value string (e.g. "transport=tcp;traddr=192.168.1.1")
Overview
Creates the list if it does not exist. Validates the entry for unknown keys before writing; returns -EINVAL if the entry is invalid.
Return
0 on success, negative errno otherwise.