libnvme API review

Keith Busch kbusch at kernel.org
Tue Mar 17 08:13:17 PDT 2026


On Tue, Mar 17, 2026 at 10:26:28AM +0100, Daniel Wagner wrote:
> > With spec and common use in mind, one proposed changed jumped out at me:
> > | `nvme_subsystem_reset`       | `nvme_reset_subsystem` |
> 
> This is from ioctl.h, which provides the interface for interacting with
> the kernel via ioctls. As outlined in the email, the proposal is to
> adopt the nvme_VERB_RESOURCE pattern, which more closely follows the
> kernel's naming scheme (at least within the NVMe subsystem). In this
> specific case, the NVME_IOCTL_SUBSYS_RESET ioctl is issued, which maps
> to

With "subsystem reset" being a specific thing, the pattern should want
something like "nvme_do_subsystem_reset".



More information about the Linux-nvme mailing list