table of contents
- experimental 3.3-1
| libnvme_mi_pcie_xfer(2) | libnvme API manual | libnvme_mi_pcie_xfer(2) |
NAME¶
libnvme_mi_pcie_xfer - Raw PCIe transfer interface.
SYNOPSIS¶
int libnvme_mi_pcie_xfer (struct libnvme_mi_ep *ep , struct nvme_mi_pcie_req_hdr *pcie_req , size_t req_data_size , struct nvme_mi_pcie_resp_hdr *pcie_resp , size_t *resp_data_size );
ARGUMENTS¶
- ep
- endpoint to send the PCIe command to
- pcie_req
- request data
- req_data_size
- size of request data payload
- pcie_resp
- buffer for response data
- resp_data_size
- size of response data buffer, updated to received size
DESCRIPTION¶
Performs an arbitrary NVMe-MI PCIe command, using the provided request data, in pcie_req. The size of the request data *payload* is specified in req_data_size - this does not include the standard header length (so a header-only request would have a size of 0). Note that the PCIe Request Doublewords are considered part of the header data.
On success, response data is stored in pcie_resp, which has an optional appended payload buffer of resp_data_size bytes. The actual payload size transferred will be stored in resp_data_size. This size does not include the PCIe response header, so 0 represents no payload.
See: struct nvme_mi_pcie_req_hdr and struct nvme_mi_pcie_resp_hdr.
RETURN¶
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
| libnvme_mi_pcie_xfer | November 2026 |