spe_gang_context_create

NAME

spe_gang_context_create - Create a new SPE gang context.

SYNOPSIS

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

RETURN VALUE

On success, a pointer to the newly created gang context is returned.

EXIT STATUS

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.

USAGE

The following values are accepted for the flags parameter:

<none> none

SEE ALSO

spe_context_destroy(3); spe_gang_sccontext_destroy(3)