This exposes ioctl and sysfs methods a user can invoke to request the driver rescan a controller and its namespaces. This is less harsh than doing a controller reset, which temporarilly halts all IO, just to surface a newly attached namespace. This is mainly useful for controllers that implement the namespace management command, but do not support the namespace notify change asynchronous event notification.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -61,5 +61,6 @@ struct nvme_passthru_cmd { · 60 unmodified lines | ||
| 61 | 61 | #define NVME_IOCTL_IO_CMD _IOWR('N', 0x43, struct nvme_passthru_cmd) |
| 62 | 62 | #define NVME_IOCTL_RESET _IO('N', 0x44) |
| 63 | 63 | #define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45) |
| 64 | +#define NVME_IOCTL_RESCAN _IO('N', 0x46) | |
| 64 | 65 | |
| 65 | 66 | #endif /* _UAPI_LINUX_NVME_IOCTL_H */ |