libnvme_mi_ep_set_submit_exit(9)

NAME
libnvme_mi_ep_set_submit_exit - Install MI submit-exit callback

SYNOPSIS
void libnvme_mi_ep_set_submit_exit (struct libnvme_mi_ep *ep , void (*mi_submit_exit)(struct libnvme_mi_ep *ep, __u8 type, const struct nvme_mi_msg_hdr *hdr, size_t hdr_len, const void *data, size_t data_len, void *user_data) );

ARGUMENTS

ep  endpoint to configure

mi_submit_exit
    Callback invoked after an MI command completes callback (i.e., after a response has been received and passed basic validation). The function receives the endpoint, message type, header, data, and the user_data pointer returned earlier by the mi_submit_entry callback. Implementations typically use this hook for logging, tracing, or freeing per-command state.

DESCRIPTION
Installs a callback invoked when an MI command completes. This applies to all MI operations through this endpoint. Passing NULL removes any previously installed callback.