NVME-ID-NS(1)
β¨ NAME β¨
okay bestie, meet NVME-ID-NS(1) from the NVMe Manual β the page for nvme-show-regs. It reads and shows the defined NVMe controller registers for NVMe over PCIe or the controller properties for NVMe over Fabrics. No cap. π
πΈ SYNOPSIS πΈ
nvme [<global-options>] show-regs <device>
π¦ DESCRIPTION π¦
So here's the vibe: it reads and shows the controller registers. For an NVMe over PCIe controller, nvme maps its PCI memory space through sysfs (the resource0 file of the PCI device) and reads them there. For an NVMe over Fabrics controller, it reads its properties with Property Get commands: CAP, VS, CC, CSTS and the ones of NSSR, NSSD and CRTO the controller implements.
The <device> parameter is mandatory and must be the nvme admin character device (ex: /dev/nvme0). Literally required, bestie.
With -v, the fields of each register are shown decoded. The JSON output has the value of each register under its name, with -v an object of the value and its decoded fields. The binary output is the registers from 0h to E1Bh, as they are in the PCI memory space, with zeros for the ones not read.
π OPTIONS π
π GLOBAL OPTIONS π
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-runβ Print the command that would be executed, but do not actually execute it.--no-ioctl-probingβ Disable probing for 64-bit IOCTL support.--no-retriesβ Disable retry logic on transient errors.-o <fmt>,--output-format=<fmt>β Set the reporting format tonormal,tabular,'json, orbinary. Only one output format may be used at a time.--output-format-version=<version>β Select the output format version. Version 1 uses the original field naming, while version 2 (default) provides more consistent and script-friendly field names. Other versions are rejected.--quietβ Suppress informational messages. Errors are still reported, and--quietcancels any--verbosefor the library log level.--set-options=<key=value>[,<key=value>...]β Set libnvme library options for this invocation. Supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir.--timeout=<ms>β Set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff).-v,--verboseβ Increase the level of detail in the output. May be specified multiple times to further increase verbosity.
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.
π EXAMPLES π
- Show the NVMe over PCIe controller registers or the NVMe over Fabric controller properties in a binary format:
# nvme show-regs /dev/nvme0 -o binary
- Show the NVMe over PCIe controller registers or the NVMe over Fabric controller properties in a human readable format:
# nvme show-regs /dev/nvme0 -v
- Show the NVMe over PCIe controller registers or NVMe-oF controller properties in a json format:
# nvme show-regs /dev/nvme0 -o json
π NVME π
Part of the nvme-user suite.
mwah π β source/version NVMe Β· date 10/30/2026 Β· manual NVME-ID-NS(1) β¨π«Ά
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms