Reference

libnvme_mi_submit_entry-libnvme3(2)

Weak hook called before an MI message is sent.

NAME

libnvme_mi_submit_entry - Weak hook called before an MI message is sent.

SYNOPSIS

void * libnvme_mi_submit_entry (__u8 type , const struct nvme_mi_msg_hdr *hdr , size_t hdr_len , const void *data , size_t data_len );

ARGUMENTS

type

MCTP message type

hdr

Pointer to the MI message header

hdr_len

Length of the message header in bytes

data

Pointer to message payload data

data_len

Length of payload data in bytes

DESCRIPTION

This is a weak symbol that can be overridden by an application to intercept outgoing MI messages for tracing or testing purposes. The return value is passed back as user_data to the matching libnvme_mi_submit_exit call.

RETURN

An opaque pointer passed to libnvme_mi_submit_exit, or NULL.