spe_image_close - Unmap and close an SPE ELF object.
#include <libspe2.h>
int spe_image_close (spe_program_handle_t *program)
Parameters | |
program | A valid address of a mapped SPE program. |
Unmaps and closes an SPE ELF object that was previously opened and mapped using spe_open_image.
On success, 0 (zero) is returned.
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. |