国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

jrj317的個人空間 http://www.qingdxww.cn/space-uid-9104.html [收藏] [復制] [RSS]

博客

KERNEL THREADS

已有 2142 次閱讀2011-4-10 08:11 |

KERNEL THREADS

Freezer
Upon entering a suspended state the system will freeze all
tasks. This is done by delivering pseudosignals. This affects
kernel threads, too. To successfully freeze a kernel thread
the thread has to check for the pseudosignal and enter the
refrigerator. Code to do this looks like this:
 do {
  hub_events();
  wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
  if (current->flags & PF_FREEZE)
   refrigerator(PF_FREEZE);
 } while (!signal_pending(current));
from drivers/usb/core/hub.c::hub_thread()

The Unfreezable
Some kernel threads however, must not be frozen. The kernel must
be able to finish pending IO operations and later on be able to
write the memory image to disk. Kernel threads needed to do IO
must stay awake. Such threads must mark themselves unfreezable
like this:
 /*
  * This thread doesn't need any user-level access,
  * so get rid of all our resources.
  */
 daemonize("usb-storage");
 current->flags |= PF_NOFREEZE;
from drivers/usb/storage/usb.c::usb_stor_control_thread()
Such drivers are themselves responsible for staying quiet during
the actual snapshotting.

路過

雞蛋

鮮花

握手

雷人

評論 (0 個評論)

facelist

您需要登錄后才可以評論 登錄 | 立即注冊

關于我們  -  服務條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯系我們
電子工程網 © 版權所有   京ICP備16069177號 | 京公網安備11010502021702
返回頂部
主站蜘蛛池模板: 日韩孕妇孕交在线视频 | 午夜精品一区二区三区在线视 | 欧美在线黄 | 成人免费的性色视频 | 国产精品成人第一区 | 香蕉视频国产在线观看 | 亚洲激情一区 | 精品国产无限资源免费观看 | 一区二区三区四区国产精品 | 国产精品成人四虎免费视频 | 国产精品v欧美精品v日韩 | 2019国产在线 | 日本欧美视频在线观看 | 中文字幕成人在线观看 | va在线视频 | 2021久久精品免费观看 | 色婷婷在线视频观看 | 手机看片一区 | 国产日韩精品视频一区二区三区 | 国产成人综合亚洲欧美天堂 | 91人前露出精品国产 | 极品美女国产精品免费一区 | 青青自拍视频一区二区三区 | 亚洲一区二区三区高清不卡 | 亚洲三级视频在线 | 三级在线观看网站 | 国产全部理论片线观看 | 黄色a视频在线观看 | 五月综合色婷婷影院在线观看 | 色婷婷一区二区三区四区成人网 | 四虎精品免费久久 | 最近韩国高清免费观看 | 亚洲欧美在线免费 | 国亚洲欧美日韩精品 | 国产99在线视频 | 四虎网站最新 | 国产欧美日本亚洲精品五区 | 淫综合网 | 嫩草影院在线观看精品视频 | 五月天婷婷视频在线观看 | 我想看一级毛片 |