| NVME-SET-REG(1) | NVMe Manual | NVME-SET-REG(1) |
NAME
nvme-set-reg - Writes and shows the defined NVMe controller register
SYNOPSIS
nvme [<global-options>] set-reg <device>
[--register=<name> | -r <name>] [--offset=<offset> | -O <offset>]
[--value=<val> | -V <val>] [--mmio32 | -m]
DESCRIPTION
Writes a controller register: of an NVMe over PCIe controller in its PCI memory space, of an NVMe over Fabrics controller, which has no PCI memory space, the property with a Property Set command.
The <device> parameter is mandatory and must be the nvme admin character device (ex: /dev/nvme0).
OPTIONS
-r <name>, --register=<name>
-O <offset>, --offset=<offset>
-V <val>, --value=<val>
-m, --mmio32
The options --cc=<val>, --aqa=<val> and so on of earlier versions, one for each register the host may write, still work, but are deprecated: use --register and --value.
GLOBAL OPTIONS
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-run
--no-ioctl-probing
--no-retries
-o <fmt>, --output-format=<fmt>
--output-format-version=<version>
--quiet
--set-options=<key=value>[,<key=value>...]
--timeout=<ms>
-v, --verbose
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.
EXAMPLES
# nvme set-reg /dev/nvme0 --register=cc --value=0x460000
NVME
Part of the nvme-user suite.
| 10/30/2026 | NVMe |