Присоединить обработчик прерываний idle
#include <sys/neutrino.h>int InterruptHookIdle( void (*handler)( uint64_t *, struct qtime_entry * ),unsigned flags );
libc
The InterruptHookIdle() kernel call attaches the specified interrupt handler to the “idle” interrupt, which is called when the system is idle. This is typically used to implement power management features.
The arguments to the handler functions are:
The simplest idle handler consists of a halt instruction.
This call doesn't block.
An interrupt function ID.
Если возникла ошибка функция возвращает -1
, код ошибки записывается в errno.
Use the returned value with the InterruptDetach() function to detach this interrupt handler.
ЗОСРВ «Нейтрино»
struct qtime_entry, InterruptAttach(), InterruptAttachEvent(), InterruptDetach(), InterruptHookTrace()
Предыдущий раздел: Описание API системной библиотеки