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

全部博文(65)

文章存档

2015年(12)

2014年(9)

2013年(22)

2012年(7)

2011年(15)

发布时间:2015-07-30 19:45:37

......【阅读全文】

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

发布时间:2014-09-15 09:04:46

参考文章:http://www.ibm.com/developerworks/cn/linux/l-timers-list/1.标准计时器:    使用方法:(1)定义一个定时器结构体:        struct timer_list my_timer(2)初始化并设置回调函数        setup_timer( &my.........【阅读全文】

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

发布时间:2014-09-15 09:03:13

简单使用:(1)定义一个结构体    struct early_suspend Test_early_suspend; (2)注册:    Test_early_suspend .level = 0x02;//EARLY_SUSPEND_LEVEL_BLANK_SCREEN + 1; //等级,等级大小和suspend顺序一致,和resume顺序相反    //即此次休眠执行在EARLY_.........【阅读全文】

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

发布时间: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.........【阅读全文】

阅读(2490) | 评论(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文件系统中属性的名字方法二:.........【阅读全文】

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

登录 注册