i_clear 内核服务
用途
除去中断处理程序。
语法
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/intr.h> void i_clear ( handler)
struct intr *handler;
struct intr *handler;
参数
| 项 | 描述 |
|---|---|
| 处理程序 (handler) | 指定传递给i_init服务的中断处理程序结构的地址。 |
描述
i_clear服务会将处理程序参数指定的中断处理程序从内核知道的中断处理程序集中删除。 内核扩展和设备支持编程概念 "中的 "编码中断处理程序 "简要介绍了中断处理程序。
The i_mask service is called by the i_clear service to disable the interrupt handler's bus interrupt level when this is the last interrupt handler for the bus interrupt level. i_clear服务会从中断处理程序列表中删除中断处理程序结构。 内核维护该总线中断级别的此列表。
执行环境
i_clear内核服务只能从进程环境中调用。
返回值
i_clear服务没有返回值。