File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ LIBNVME_2_0 {
123123 nvme_insert_tls_key_versioned;
124124 nvme_lookup_key;
125125 nvme_lookup_keyring;
126- nvme_mi_admin_admin_passthru;
127126 nvme_mi_admin_xfer;
128127 nvme_mi_aem_disable;
129128 nvme_mi_aem_enable;
Original file line number Diff line number Diff line change @@ -1326,25 +1326,6 @@ int nvme_mi_admin_xfer(struct nvme_transport_handle *hdl,
13261326 off_t resp_data_offset ,
13271327 size_t * resp_data_size );
13281328
1329- /**
1330- * nvme_mi_admin_admin_passthru() - Submit an nvme admin passthrough command
1331- * @hdl: Transport handle to send command to
1332- * @cmd: The nvme admin command to send
1333- *
1334- * Send a customized NVMe Admin command request message and get the corresponding
1335- * response message.
1336- *
1337- * This interface supports no data, host to controller and controller to
1338- * host but it doesn't support bidirectional data transfer.
1339- * Also this interface only supports data transfer size range [0, 4096] (bytes)
1340- * so the & data_len parameter must be less than 4097.
1341- *
1342- * Return: The nvme command status if a response was received (see
1343- * &enum nvme_status_field) or -1 with errno set otherwise.
1344- */
1345- int nvme_mi_admin_admin_passthru (struct nvme_transport_handle * hdl ,
1346- struct nvme_passthru_cmd * cmd );
1347-
13481329/**
13491330 * nvme_mi_control() - Perform a Control Primitive command
13501331 * @ep: endpoint for MI communication
Original file line number Diff line number Diff line change @@ -756,3 +756,22 @@ struct nvme_transport_handle *nvme_ns_get_transport_handle(nvme_ns_t n);
756756 *
757757 */
758758void nvme_ns_release_transport_handle (nvme_ns_t n );
759+
760+ /**
761+ * nvme_mi_admin_admin_passthru() - Submit an nvme admin passthrough command
762+ * @hdl: Transport handle to send command to
763+ * @cmd: The nvme admin command to send
764+ *
765+ * Send a customized NVMe Admin command request message and get the
766+ * corresponding response message.
767+ *
768+ * This interface supports no data, host to controller and controller to
769+ * host but it doesn't support bidirectional data transfer.
770+ * Also this interface only supports data transfer size range [0, 4096] (bytes)
771+ * so the & data_len parameter must be less than 4097.
772+ *
773+ * Return: The nvme command status if a response was received (see
774+ * &enum nvme_status_field) or -1 with errno set otherwise.
775+ */
776+ int nvme_mi_admin_admin_passthru (struct nvme_transport_handle * hdl ,
777+ struct nvme_passthru_cmd * cmd );
You can’t perform that action at this time.
0 commit comments