If an interrupt keeps coming in and there is no registered handler for that device (for instance, all drivers return IRQ_NONE), then the kernel can block interrupts from that device.
如果一个中断请求不断到来而且没有注册那个设备的处理程序(例如,所有的驱动程序都返回IRQ_NONE),内核就会忽略来自那个设备的中断。
Every interrupt runs a function called an interrupt handler, which must be tailored to the device and therefore is installed by the device driver.
每一个中断是以一个被称为中断处理的函数调用来运行的,这些必须可以通过安装的设备驱动程序,根据设备被裁剪。
The interrupt handler, before accessing the device, must also obtain the lock.
而且中断服务函数在设备被访问之前也需要获得锁。
We also introduce the development of device driver under QNX, include programme of the interrupt handler, management of hardware resource and interface between application and device driver.
最后详细地介绍了在QNX下驱动程序的开发包括中断处理函数的编写、系统硬件资源的管理以及驱动程序与测试程序的接口。
An event handler is a procedure, but the event itself is a signaling device, which must be raised and handled.
事件处理常式是一个程序,但是事件本身则是必须引发和处理的信号装置。
Note that to identify the handler, the kernel needs both the IRQ number and the device identifier.
注意,为了标识处理句柄,内核同时须要IR Q号和设备ID。
Given the device identified by dev_id, this function removes the handler and disables the IRQ line if no more devices are registered for that IRQ.
id给出了设备唯一标识,如果一个IR Q上已经没有了注册的设备,这个函数就用于删除处理句柄并禁用IRQ总线。
Given the device identified by dev_id, this function removes the handler and disables the IRQ line if no more devices are registered for that IRQ.
id给出了设备唯一标识,如果一个IR Q上已经没有了注册的设备,这个函数就用于删除处理句柄并禁用IRQ总线。
应用推荐