spe_out_intr_mbox_status

NAME

spe_out_intr_mbox_status - Fetch the status of the SPU outbound interrupt mailbox.

SYNOPSIS

#include <libspe2.h>

int spe_out_intr_mbox_status (spe_context_ptr_t spe)

Parameters  
spe Specifies the SPE context for which the SPU outbound mailbox has to be read.

DESCRIPTION

The spe_out_intr_mbox_status function fetches the status of the SPU outbound interrupt mailbox for the SPE context specified by the spe parameter.

RETURN VALUE

>0 the number of 32-bit mailbox messages available for read

0 (zero) no data available (mailbox is empty)

EXIT STATUS

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.

SEE ALSO

spe_out_intr_mbox_read(3)