NVME-ID-NS(1) | NVMe Manual | NVME-ID-NS(1) |
nvme-show-regs - Reads and shows the defined NVMe controller registers for NVMe over PCIe or the controller properties for NVMe over Fabrics.
nvme show-regs <device> [--human-readable | -H]
[--output-format=<FMT> | -o <FMT>]
For the NVMe over PCIe device given, sends an identify namespace command and provides the result and returned structure. For the NVMe over Fabrics device given, sends a fabric command and provides the result and returned structure.
The <device> parameter is mandatory and must be the nvme admin character device (ex: /dev/nvme0). For NVMe over PCIe, the program uses knowledge of the sysfs layout to map the device to the pci resource stored there and mmaps the memory to get access to the registers. For NVMe over Fabrics, the programs sends a fabric command to get the properties of the target NVMe controller. Only the supported properties are displayed.
-H, --human-readable
-o <format>, --output-format=<format>
# nvme show-regs /dev/nvme0 -o binary
# nvme show-regs /dev/nvme0 -H
# nvme show-regs /dev/nvme0 -o json
Part of the nvme-user suite
04/24/2020 | NVMe |