spe_out_mbox_status - Fetch the status of the SPU outbound mailbox.
#include <libspe2.h>
int spe_out_mbox_status (spe_context_ptr_t spe)
Parameters | |
spe | Specifies the SPE context of the SPU outbound mailbox to be read. |
The spe_out_mbox_status function fetches the status of the SPU outbound mailbox for the SPE context specified by the spe parameter.
>0 the number of 32-bit mailbox messages available for read
0 (zero) no data available (the mailbox is empty)
On error, -1 is returned and errno is set to indicate the error.
Possible errors include:
ESRCH | The specified SPE context is invalid. |
EIO | The I/O error occurred. |