diff --git a/doc/peer_2_peer.md b/doc/peer_2_peer.md index ee39a4aeb..4d169bdb9 100644 --- a/doc/peer_2_peer.md +++ b/doc/peer_2_peer.md @@ -31,13 +31,23 @@ Key Functions | Description ------------------------------------------- | ----------- spdk_nvme_ctrlr_alloc_cmb_io_buffer() | @copybrief spdk_nvme_ctrlr_alloc_cmb_io_buffer() spdk_nvme_ctrlr_free_cmb_io_buffer() | @copybrief spdk_nvme_ctrlr_free_cmb_io_buffer() +spdk_nvme_ctrlr_get_regs_cmbsz() | @copybrief spdk_nvme_ctrlr_get_regs_cmbsz() + +# Determining device support {#p2p_support} + +SPDK's identify example application displays whether a device has a controller +memory buffer and which operations it supports. Run it as follows: + +~~~{.sh} +./examples/nvme/identify/identify -r traddr: +~~~ # cmb_copy: An example P2P Application {#p2p_cmb_copy} Run the cmb_copy example application. ~~~{.sh} -./examples/nvme/cmb_copy -r -1-0-1 -w -1-0-1 -c +./examples/nvme/cmb_copy/cmb_copy -r -1-0-1 -w -1-0-1 -c ~~~ This should copy a single LBA (LBA 0) from namespace 1 on the read NVMe SSD to LBA 0 on namespace 1 on the write SSD using the CMB as the