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

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

博客

KERNEL THREADS

已有 2082 次閱讀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
返回頂部
主站蜘蛛池模板: 99久久er这里只有精品17 | 欧美亚洲国产一区 | 亚洲一区在线视频观看 | 国产成人香蕉在线视频fuz | 日日摸夜夜添夜夜添日韩 | 成人网影 | 欧美一区二区在线观看视频 | 青青久在线视频免费观看 | 亚洲免费视频一区二区三区 | 亚洲精品大片 | xx在线视频 | 99re这里有精品 | 四虎在线精品 | 精品卡一卡卡2卡3网站 | 探险旅行在线观看 | 青青草 久久久 | 精品国产高清a毛片无毒不卡 | 欧美极品一区 | 国产一级久久久久久毛片 | 日韩国产第一页 | 青青热久久国产久精品 | 爱豆传媒免费最新视频下载 | 国产日韩欧美在线播放 | 四虎国产精品高清在线观看 | 男女一进一出免费视频 | 欧美精品一二三区 | 国产精品高清在线观看 | 成都4片p完整版视频在线观看 | 精品手机在线视频 | 亚洲国产日韩在线人成下载 | 欧美 日韩 国产 色 欧美 日韩 成人 | 国产男女视频在线观看 | 亚洲欧美在线观看一区二区 | 欧美一区二区三区在线 | 好吊色青青青国产综合在线观看 | 欧美自拍偷拍 | 四虎影院永久免费 | 亚洲丶国产丶欧美一区二区三区 | 久久国内视频 | 久久极品| 一区国严二区亚洲三区 |