spe_gang_context_create - Create a new SPE gang context.
#include <libspe2.h>
spe_gang_context_ptr_t spe_gang_context_create (unsigned int flags)
| Parameters | |
| flags | A bit-wise OR of modifiers that are applied when the SPE context is created. See Usage. |
On success, a pointer to the newly created gang context is returned.
On error, NULL is returned and errno is set to indicate the error.
Possible errors include:
| ENOMEM | The gang context could not be allocated due to lack of system resources. |
| EINVAL | The value passed for flags is not valid. |
| EFAULT | A runtime error of the underlying operating system service occurred. |
The following values are accepted for the flags parameter:
| <none> | none |