NVME−IO−PASSTHRU - Online Linux Manual PageSection : 1
Updated : 02/01/2023
Source : NVMe
Note : NVMe Manual
NAMEnvme-io-passthru − Submit an arbitrary io command, return results
SYNOPSISnvme−io−passthru <device> [−−opcode=<opcode> | −o <opcode>]
[−−flags=<flags> | −f <flags>] [−rsvd=<rsvd> | −R <rsvd>]
[−−namespace−id=<nsid> | −nsid <nsid>]
[−−cdw2=<cdw2>] [−−cdw3=<cdw3>] [−−cdw10=<cdw10>]
[−−cdw11=<cdw11>] [−−cdw12=<cdw12>] [−−cdw13=<cdw13>]
[−−cdw14=<cdw14>] [−−cdw15=<cdw15>]
[−−data−len=<data−len> | −l <data−len>]
[−−metadata−len=<len> | −m <len>]
[−−read | −r ] [−−write | −w]
[−−input−file=<file> | −i <file>]
[−−metadata=<file> | −M <file>]
[−−timeout=<to> | −t <to>]
[−−show−command | −s]
[−−dry−run | −d]
[−−raw−binary | −b]
[−−prefill=<prefill> | −p <prefill>]
[−−latency | −T]
DESCRIPTIONSubmits an arbitrary NVMe IO command and returns the applicable results. This may be the simply the command’s result and status, or may also include a buffer if the command returns one. This command does no interpretation of the opcodes or options. The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1). On success, the returned structure (if applicable) may be returned in one of several ways depending on the option flags; the structure may printed by the program as a hex dump, or may be returned as a raw buffer printed to stdout for another program to parse.
OPTIONS−o <opcode>, −−opcode=<opcode> The NVMe opcode to send to the device in the command −f <flags>, −−flags=<flags> The NVMe command flags to send to the device in the command −R <rsvd>, −−rsvd=<rsvd> The value for the reserved field in the command. −n <nsid>, −−namespace−id=<nsid> The value for the ns−id in the command. Defaults to 0. −−cdw[2−3,10−15]=<cdw> Specifies the command dword value for that specified entry in the command −r, −−read, −w, −−write Used for the data−direction for the command and required for commands sending/receiving data. Don’t use both read and write at the same time. −i <file>, −−input−file=<file> If the command is a data−out (write) command, use this file to fill the buffer sent to the device. If no file is given, assumed to use STDIN. If the command is a data−in (read) command, the data returned from the device will be saved here. −M <file>, −−metadata=<file> If the command is a data−out (write) command, use this file to fill the metadata buffer sent to the device. If no file is given, assumed to use STDIN. If the command is a data−in (read) command, the metadata returned from the device will be saved here. −l <data−len>, −−data−len=<data−len> The data length for the buffer used for this command. −m <data−len>, −−metadata−len=<data−len> The metadata length for the buffer used for this command. −s, −−show−cmd Print out the command to be sent. −d, −−dry−run Do not actually send the command. If want to use −−dry−run option, −−show−cmd option must be set. Otherwise −−dry−run option will be ignored. −b, −−raw−binary Print the raw returned buffer to stdout if the command returns data or a structure. −p <prefill>, −−prefill <prefill> Prefill the buffer with a predetermined byte value. Defaults to 0. This may be useful if the data you are writing is shorter than the required buffer, and you need to pad it with a known value. It may also be useful if you need to confirm if a device is overwriting a buffer on a data−in command. −T, −−latency Print out the latency the IOCTL took (in us).
EXAMPLESnvme io−passthru /dev/nvme0n1 −−opcode=2 −−namespace−id=1 −−data−len=4096 −−read −−cdw10=0 −−cdw11=0 −−cdw12=0x70000 −−raw−binary
NVMEPart of the nvme−user suite 0
Johanes Gumabo
Data Size : 16,302 byte
man-nvme-io-passthru.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 171,102
Visitor ID : :
Visitor IP : 3.133.145.168 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.