Отделить обработчик прерываний по его идентификатору
#include <sys/neutrino.h>int InterruptDetach( int id );int InterruptDetach_r( int id );
libc
These kernel calls detach the interrupt handler specified by the id argument. If, after detaching, no thread is attached to the interrupt, then the interrupt is masked off. The thread that detaches the interrupt handler must be in the same process as the thread that attached it.
The InterruptDetach() and InterruptDetach_r() functions are identical except in the way they indicate errors.
Before calling either of these functions, the thread must request I/O privileges by calling:
ThreadCtl( _NTO_TCTL_IO, 0 );
If the thread doesn't do this, it might SIGSEGV
when it calls InterruptDetach() or InterruptDetach_r().
These calls don't block.
-1
, код ошибки записывается в errno. Любое другое возвращенное значение считается успешным завершением.EOK
возвращается при успешном завершении. Функция НЕ устанавливает errno. При возникновении ошибки функция возвращает один из представленных ниже кодов.
ЗОСРВ «Нейтрино»
InterruptAttach(), InterruptAttachEvent(), InterruptHookIdle(), InterruptUnlock()
Предыдущий раздел: Описание API системной библиотеки