libnvmf_registry_delete(9)
π libnvmf_registry_delete β the libnvme API manual, bestie edition π
okay so real talk, this one lives in the libnvme API manual and it's genuinely so straightforward you're gonna eat it up. it's called libnvmf_registry_delete and it does exactly one thing, but it does it iconically β¨
πΈ NAME πΈ
libnvmf_registry_delete β remove a controller's registry entry, periodt ποΈβ¨
π SYNOPSIS π
int libnvmf_registry_delete (struct libnvme_global_ctx *ctx , const char
*device );
that's it. two args, one return value, no drama π
π¦ ARGUMENTS π¦
ctxβ the libnvme global context. this is the main character, and it must not be NULL β like, do not even try it, the vibe check will fail πdeviceβ the kernel device name (e.g."nvme3"). literally just the device name string, bestie π«Ά
π DESCRIPTION π
so what it actually does: it removes the registry directory and all the attribute files for device. all of them. gone. clean slate, no crumbs left behind π§Ήβ¨
it's called by the owning orchestrator on an intentional disconnect β like when you're the one deciding to leave the party, not when you got carried out π
real talk though: the udevREMOVErule already handles the common case of kernel-driven removal directly viarm -rfand does not call this function. so this is the deliberate-exit path, not the surprise-eviction path. iykyk π
β RETURN β
0on success β slay, we ate π-ENOENTif no entry exists β meaning there was literally nothing to delete, awkward π- negative errno from underlying system calls otherwise β yeah, if something under the hood decides to act up, you get whatever negative errno it felt like throwing at you π₯
no cap, keep an eye on that third one β it's the "anything else" bucket, so the specific error is coming from the system calls underneath, not from this function being cute.
and that's the whole page, bestie π¦π
cute little sign-off: this page is from October 2026, part of the libnvme API manual, and yes, libnvmf_registry_delete is both the page name and the thing you just read about β full circle moment πΈπβ
π¦ 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