OS Manuals

libnvmf_exclusion_read-libnvme3(2)

libnvmf_exclusion_read - read a list's raw text and a concurrency token.

libnvmf_exclusion_read(9) libnvme API manual libnvmf_exclusion_read(9)

libnvmf_exclusion_read - read a list's raw text and a concurrency token.

int libnvmf_exclusion_read (struct libnvme_global_ctx *ctx , const char *name , char **text , uint64_t *version );

libnvme global context; must not be NULL
list name
on success, set to the file's full contents as a newly allocated, NUL-terminated string (caller frees). A missing list reads as an empty string so an editor can create it.
on success, set to an opaque token identifying the contents read. 0 means the list did not exist. Pass it back to libnvmf_exclusion_write to detect concurrent modification.

Intended for read-modify-write editors: read the raw text, let a human edit it, then write it back. The directory location is entirely libnvme's concern -- the caller works only in terms of list names.

0 on success, -EINVAL for a bad name or NULL out-param, negative errno otherwise.

libnvmf_exclusion_read October 2026

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