Chinaunix首页 | 论坛 | 博客
  • 博客访问: 460787
  • 博文数量: 65
  • 博客积分: 573
  • 博客等级: 中士
  • 技术积分: 693
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-09 17:16
文章分类

全部博文(65)

文章存档

2015年(12)

2014年(9)

2013年(22)

2012年(7)

2011年(15)

发布时间:2014-09-15 09:00:27

简单使用:(1)定义:        struct delayed_work test_delaywork;(2)初始化    INIT_DELAYED_WORK(&test_delaywork , test_delaywork_func);(3)实现回调函数static void test_delaywork_func(struct work_struct *work){    pri.........【阅读全文】

阅读(2469) | 评论(0) | 转发(0)

发布时间:2014-09-15 08:59:12

下面是在Linux驱动中添加sys属性的简单介绍方法一:在驱动中添加如下代码static int Infrared_detect_info_open = 0;直接调用module_param_namedmodule_param_named(infrared_info_switch, Infrared_detect_info_open, int, 0644);infrared_info_switch为sys文件系统中属性的名字方法二:.........【阅读全文】

阅读(1770) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册