Controllers can perform optional subsystem resets as introduced in NVMe 1.1. This patch adds an IOCTL to trigger the subsystem reset by writing "NVMe" to the NSSR register.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -584,5 +584,6 @@ struct nvme_passthru_cmd { · 583 unmodified lines | ||
| 584 | 584 | #define NVME_IOCTL_SUBMIT_IO _IOW('N', 0x42, struct nvme_user_io) |
| 585 | 585 | #define NVME_IOCTL_IO_CMD _IOWR('N', 0x43, struct nvme_passthru_cmd) |
| 586 | 586 | #define NVME_IOCTL_RESET _IO('N', 0x44) |
| 587 | +#define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45) | |
| 587 | 588 | |
| 588 | 589 | #endif /* _UAPI_LINUX_NVME_H */ |