摘要: 分析转自韦东山: 所有的系统调用,基于都可以在它的名字前加上“sys_”前缀,这就是它在内核中对应的函数。比如系统调用open、read、write、poll,与之对应的内核函数为:sys_open、sys_read、sys_write、sys_poll。 一、内核框架: 对于系统调用poll或se 阅读全文
posted @ 2012-11-03 20:18 TaigaComplex 阅读(619) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-11-03 17:04 TaigaComplex 阅读(303) 评论(0) 推荐(0)
摘要: 驱动代码: 测试代码: 流程如下: 阅读全文
posted @ 2012-11-03 16:47 TaigaComplex 阅读(1512) 评论(0) 推荐(0)
摘要: 内核版本:2.6.32.2 错误: error:implicit declaration of function 'request_irq' error:implicit declaration of function 'free_irq' 解决方法: #include <linux/interru 阅读全文
posted @ 2012-11-03 14:34 TaigaComplex 阅读(5036) 评论(0) 推荐(0)