Notes about NVMe Identify command
- Opcode is 0x06.
- The base address of the output (a single page) should be put in the DWORDs 6 and 7 of the command.
- The low byte of command DWORD 10 indicates what is to be identified: 0 - a namespace, 1 - the controller, 2 - the namespace list.
- If identifying a namespace, set DWORD 1 to the namespace ID.
1 | enum { |
CDW1.NSID的含义:
总结:
- 想要某个controller或者namespace的identity,需要在command中指定controller id或者namespace id
- controller将结果以DMA的形式放到DWORDs 6 and 7指定的地址中
参考资料:
- NVMe 1.3 spec
- https://wiki.osdev.org/NVMe