spe_callback_handler_deregister

NAME

spe_callback_handler_deregister - Deregister the user-defined function identified by callnum.

SYNOPSIS

#include <libspe2.h>

int spe_callback_handler_deregister (unsigned int callnum)

Parameters  
callnum The identifier of the function callback to be deregistered. The valid range is 0..255.

DESCRIPTION

Note: (Linux) The reserved callbacks 0..3 cannot be deregistered. They can, however, be overwritten with new, user-defined callbacks. See spe_callback_handler_register().

RETURN VALUE

On success, the function returns 0 (zero).

EXIT STATUS

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

Possible errors include:

EINVAL Function argument error, for example, callnum out of range.
ESRCH No callback registered for callnum.
EACCES Attempt to deregister a reserved callback.

SEE ALSO

spe_context_run(3); spe_callback_handler_register(3)