spe_image_close

NAME

spe_image_close - Unmap and close an SPE ELF object.

SYNOPSIS

#include <libspe2.h>

int spe_image_close (spe_program_handle_t *program)

Parameters  
program A valid address of a mapped SPE program.

DESCRIPTION

Unmaps and closes an SPE ELF object that was previously opened and mapped using spe_open_image.

RETURN VALUE

On success, 0 (zero) is returned.

EXIT STATUS

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

Possible errors include:

EINVAL The specified address of the SPE program is invalid.
other A number of other errno values could be returned by the munmap(2) or close(2) system calls which may be utilized by the spe_image_open function.

SEE ALSO

spe_image_open(3)