This function sends an IPI message to a destination CPU.
Prototype
u32 XMailbox_SendData(XMailbox *InstancePtr, u32 RemoteId, void *BufferPtr, u32 MsgLen, u8 BufferType, u8 Is_Blocking);
Parameters
The following table lists the XMailbox_SendData
function arguments.
Type | Name | Description |
---|---|---|
XMailbox
* |
InstancePtr |
Pointer to the
XMailbox
instance
|
u32 | RemoteId | Mask of the CPU to which IPI is to be triggered |
void * | BufferPtr | Pointer to buffer which contains the message to be sent |
u32 | MsgLen | Length of the buffer/message |
u8 | BufferType | Type of buffer (XILMBOX_MSG_TYPE_REQ (OR) XILMBOX_MSG_TYPE_RESP) |
u8 | Is_Blocking | If set, triggers the notification in blocking mode |
Returns
- XST_SUCCESS if successful
- XST_FAILURE if unsuccessful