Android_Linux休眠唤醒
来源:互联网 发布:淘一兔淘宝信誉查号 编辑:程序博客网 时间:2024/05/02 00:48
static ssize_t state_store()
{
suspend_state_t state = PM_SUSPEND_ON;
+-----------------------------------------------------------------------------------------
30 typedef int __bitwise suspend_state_t;
31
32 #define PM_SUSPEND_ON ((__force suspend_state_t) 0)
33 #define PM_SUSPEND_STANDBY ((__force suspend_state_t) 1)
34 #define PM_SUSPEND_MEM ((__force suspend_state_t) 3)
35 #define PM_SUSPEND_MAX ((__force suspend_state_t) 4)
++-----------------------------------------------------------------------------------------
10 # define __force __attribute__((force));
//表示所定义的变量类型是可以做强制类型转换的,在进行Sparse分析的时候,是不用报告警信息的。
参考:(ZT)GNU C 的 __attribute__ 机制
参考:gcc中__attribute((force))是什么意思?
参考:__bitwise and __force
参考:bitwise in linux Kernel
- Android_Linux休眠唤醒
- wince 休眠 唤醒
- android 休眠与唤醒
- S3C6410 休眠与唤醒
- 调试休眠和唤醒
- Android 休眠与唤醒
- linux 休眠与唤醒
- wince 休眠 唤醒
- linux 休眠与唤醒
- android 休眠与唤醒
- android 休眠唤醒
- Android休眠与唤醒
- Android休眠与唤醒
- 按键中断,休眠,唤醒
- android休眠唤醒死机
- linux 休眠与唤醒
- S3C6410 休眠与唤醒
- linux 休眠与唤醒
- 一种快速批量创建子版本的方法
- POJ-2536(长方体体积确定,求面积最小值)
- java学习笔记--第二天
- Windows消息
- Sql Server中的日期与时间函数
- Android_Linux休眠唤醒
- C语言学习笔记(3)指针初探
- Linux 2.6内核中新的锁机制--RCU
- Arm linux 内核移植及系统初始化过程分析
- 程序员的专业利器--英文
- Android/iOS Notification feature
- 以RTC为例分析linux platform_bus platform_device和platform_driver注册过程
- SQL基本用方法
- HTML table tr colspan rowspan