libnvmf_exclusion_write(9)
π NAME π
libnvmf_exclusion_write β atomically replace a list's contents. This is the libnvme API manual page for libnvmf_exclusion_write(9), and honestly? Itβs giving βwhole-list glow-up, but make it atomic.β π¦β¨
β¨ SYNOPSIS β¨
int libnvmf_exclusion_write (struct libnvme_global_ctx *ctx , const char
*name , const char *text , uint64_t version );
π ARGUMENTS π
ctxβ the libnvme global context; it must not beNULL. Like, do not passNULL, bestie. πnameβ list name. Simple, iconic, to the point. πtextβ the full replacement contents. Every"exclusion = ..."line is validated and must sit inside the[exclusions]section; invalid entries cause-EINVALand no write. So invalid stuff does not get written β periodt. πversionβ the token from a priorlibnvmf_exclusion_read. The write proceeds only if the on-disk list still matchesversion; otherwise it returns-ESTALEand leaves the file untouched, so a concurrent editor's changes are never silently overwritten. This is the βdonβt let someone elseβs edits get ghostedβ check. π»
πΈ DESCRIPTION πΈ
The replacement is installed atomically (temp file + rename) with mode 0644. Thatβs the whole vibe: temp file, rename, mode 0644, all in one neat little package. π
π RETURN π
0β success, slay. β-ESTALEβ the list changed sinceversionwas read. π-EINVALβ an invalid entry or name. π- negative
errnoβ otherwise. π
Okay thatβs the whole page, bestie. π«Ά This gem is dated October 2026, sourced under libnvmf_exclusion_write, and the footer name/version situation is libnvmf_exclusion_write(9). Mwah. ππ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms