spe_in_mbox_status

NAME

spe_in_mbox_status - Fetch the status of the SPU inbound mailbox for the SPE context.

SYNOPSIS

#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.

DESCRIPTION

The spe_in_mbox_status function fetches the status of the SPU inbound mailbox for the SPE context specified by the spe parameter.

RETURN VALUE

>0 the number of 32-bit mailbox messages that can be written

0 (zero) no data can be written (mailbox full)

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_in_mbox_write(3)