Scroll to navigation

libnvmf_registry_delete(2) libnvme API manual libnvmf_registry_delete(2)

NAME

libnvmf_registry_delete - Remove a controller's registry entry

SYNOPSIS

int libnvmf_registry_delete (struct libnvme_global_ctx *ctx , const char *device );

ARGUMENTS

libnvme global context; must not be NULL
Kernel device name (e.g. "nvme3")

DESCRIPTION

Removes the registry directory and all attribute files for device. Called by the owning orchestrator on intentional disconnect. The udev REMOVE rule handles the common case of kernel-driven removal directly via rm -rf and does not call this function.

RETURN

0 on success, -ENOENT if no entry exists, negative errno from underlying system calls otherwise.

libnvmf_registry_delete October 2026