- 中断处理
-
Linux系统下驱动程序框架概述
一、linux的设备驱动程序与外界的接口可以分为三个部分: 1.驱动程序与操作系统内核的接口。通过file_operations(include/linux/fs.h)数据结构来完成的。 2.驱动程序与系统引导的接口。这部分利用驱动程序对设备进行初始化。 3.驱动程序与设备的接口。这部分描述了驱动程序...
深入浅出 Linux设备驱动中断处理介绍
与linux设备驱动中中断处理相关的首先是申请与释放irq的api: request_irq()和free_irq()。 request_irq()的原型为: int request_irq(unsigned int irq, void (*handler)(int irq, void *dev_id, struct pt_regs *regs), unsigned long irqflags, const char * devname, ...