spe_signal_write - Write data to the signal notification register specified by signal_reg for the SPE context specified by the spe parameter
#include <libspe2.h>
int spe_signal_write (spe_context_ptr_t spe, unsigned int signal_reg, unsigned int data)
Parameters | |
spe | Specifies the SPE context of the signal register to be written to. |
signal_reg | Specifies the signal notification register to be written. |
data | The 32-bit data to be written to the specified signal notification register. |
On success, 0 (zero) is returned.
On error, -1 is returned and errno is set to indicate the error.
Possible errors include:
ESRCH | The specified SPE context is invalid. |
EIO | An I/O error occurred. |
EINVAL | The specified signal notification register is invalid. |
Valid signal notification registers for signal_reg are:
Flag | Description |
SPE_SIG_NOTIFY_REG_1 | SPE signal notification register 1 |
SPE_SIG_NOTIFY_REG_2 | SPE signal notification register 2 |