Reference

libnvme_submit_io_passthru-libnvme3(2)

Queue IO passthru command

NAME

libnvme_submit_io_passthru - Queue IO passthru command

SYNOPSIS

int libnvme_submit_io_passthru (struct libnvme_transport_handle *hdl , struct libnvme_passthru_cmd *cmd , void *cookie );

ARGUMENTS

hdl

Transport handle

cmd

The nvme IO command to send

cookie

User-defined opaque value returned at completion

DESCRIPTION

Queues cmd for asynchronous execution. Completion is reported via libnvme_reap_passthru.

RETURN

0 on successful queueing, negative error code otherwise.