libnvme_transport_handle_set_submit_exit(9)

NAME
libnvme_transport_handle_set_submit_exit - Install a submit-exit callback

SYNOPSIS
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) );

ARGUMENTS

hdl Transport handle to configure

submit_exit
    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.

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

RETURN
None.