- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
linux休眠(Linux休眠)
linux休眠(Linux休眠)
Sleep / wake is a very important part of embedded Linux, and the embedded device can sleep as much as possible to extend the battery life. This article details how sleep / wakeup in Linux works, and how Android links this part to the mechanism of Linux
In Linux, sleep is divided into three main steps:
1) freeze user state processes and kernel state tasks
2) call the callback function of the suspend of the registered device, in the order in which it is registered
3) sleep core devices and the CPU into hibernation, the freezing process is the kernel to set the process list of all the state of the process is set to stop, and save all the process context. When these processes are unfrozen, they do not know that they have been frozen, but simply continue to perform.
How do you get Linux to sleep? Users can read and write sys files. /sys/power/state implements the control system into hibernation
# echo standby /sys/power/state
The command system goes into hibernation. It can also be used
Cat/sys/power/state came to # kernel support what kinds of sleep mode.
Linux Suspend process
Related documents
You can access the source code by accessing the Linux kernel site, and here is the path to the file:
Linux_soruce/kernel/power/main.c
Linux_source/kernel/arch/xxx/mach-xxx/pm.c
Linux_source/driver/base/power/main.c
Next, lets take a detailed look at how Linux sleep / wake up. Lets, going, to, see, how, these, happens.
The user reads and writes the /sys/power/state to the state_store () in the main.c, and the user can write the string defined in the constchar * const pm_state[], such as MEM, standby
Then state_store () calls enter_state (), which first checks some state parameters and then synchronizes the file system.
Preparation, freezing process
When it comes to suspend_prepare () in the future, it will be assigned to the suspend a virtual terminal to output information, and then broadcast a system to enter suspend Notify, shut down the user mode helper process
您可能关注的文档
- 013深化改革和监管推动资本市场持续健康发展(013, deepen reform and supervision, and promote the sustained and healthy development of the capital market).doc
- 019全国各地的五十种面条大全(019, fifty kinds of noodles throughout the country Daquan).doc
- 04软件工程数据结构期末试卷2146(04 software engineering data structure final exam 2146).doc
- 04把我的心脏带回祖国(04 take my heart back to my motherland).doc
- 04年度空调行业竞争环境分析(Analysis of competition environment of air conditioning industry in 04).doc
- 04软件工程数据结构期末试卷2347(04 software engineering data structure final exam 2347).doc
- 010大驾北还录 明·陆深(0 top ten north, also recorded Ming Lu Shen).doc
- 04软件工程数据结构期末试卷2414(04 software engineering data structure final exam 2414).doc
- 04软件工程数据结构期末试卷2816(04 software engineering data structure final exam 2816).doc
- 04软件工程数据结构期末试卷2950(04 software engineering data structure final exam 2950).doc
最近下载
- 满液式蒸发器换热管布置的优化设计剖析.PDF VIP
- 超滤反渗透培训PPT课件.pptx VIP
- 牛津英语基础训练六年级上册.pdf VIP
- 2026年品牌建设营销实战培训ppt.pptx VIP
- 安徽省淮北市第一中学高一上学期末数学答案-A4.docx VIP
- 2016输变电工程建设标准强制性条文实施管理规程第7部分:输电线路工程施工.docx VIP
- DBJ/T36-061-2021 建筑与市政地基基础技术标准(1).pdf VIP
- 初中英语:【沪教】七上英语单词表(英译汉默写).pdf VIP
- 《精密制造之光刻胶技术》课件.ppt VIP
- 电力电子技术 (周晓燕)课后习题答案.docx VIP
原创力文档


文档评论(0)