spe_ls_area_get

NAME

spe_ls_area_get - Map the local store of the SPE context.

SYNOPSIS

#include <libspe2.h>

void * spe_ls_area_get (spe_context_ptr_t spe)

Parameters  
spe Specifies the SPE context

DESCRIPTION

Maps the local store of the SPE context specified by spe to the thread’s address space and returns a pointer to the start of the memory mapped local store area. The size of the local store area can be obtained by using the function spe_ls_size_get.

RETURN VALUE

On success, a pointer to the start of the memory mapped local store is returned.

EXIT STATUS

On error, NULL is returned and errno is set to indicate the error.

Possible errors include:

ESRCH The specified SPE context is invalid.
ENOSYS Access to the local store of an SPE thread is not supported by the operating system.