libnvme_transport_handle_set_submit_exit(9) libnvme API manual libnvme_transport_handle_set_submit_exit(9)

libnvme_transport_handle_set_submit_exit - Install a submit-exit callback

void libnvme_transport_handle_set_submit_exit (struct libnvme_transport_handle *hdl , void (*submit_exit)(struct libnvme_transport_handle *hdl, struct libnvme_passthru_cmd *cmd, int err, void *user_data) );

Transport handle to configure
Callback invoked after a passthrough command completes. The function receives the command, the completion status err (0 for success, a negative errno, or an NVMe status value), and the user_data pointer returned earlier by the submit-entry callback. Implementations typically use this hook for logging, tracing, or freeing per-command state.

Installs a callback that is invoked when a passthrough command leaves the NVMe submission path. Passing NULL removes any previously installed callback.

None.

libnvme_transport_handle_set_submit_exit September 2026