spe_in_mbox_status - Fetch the status of the SPU inbound mailbox for the SPE context.
#include <libspe2.h>
int spe_in_mbox_status (spe_context_ptr_t spe)
Parameters | |
spe | Specifies the SPE context of the SPU outbound mailbox to be read. |
The spe_in_mbox_status function fetches the status of the SPU inbound mailbox for the SPE context specified by the spe parameter.
>0 the number of 32-bit mailbox messages that can be written
0 (zero) no data can be written (mailbox full)
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. |