作者popd (QQ)
看板LinuxDev
标题[问题] 关於vmalloc的问题
时间Tue Mar 31 23:51:15 2015
小弟对於linux kernel算初心者,关於vmalloc的解释有些地方不懂,还请高手解释
void * vmalloc(unsigned long size)
The function returns a pointer to at least size bytes of virtually contiguous
memory. On error, the function returns NULL. The function might sleep, and
thus cannot be called from interrupt context or other situations where
blocking is not permissible.
我的问题是
为什麽这个function会sleep? 什麽样的情况会导致vmalloc进行sleep?
谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.42.115.251
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LinuxDev/M.1427817077.A.D85.html
1F:→ leolarrel: 这可能要实际去翻code 来看 04/01 12:12
2F:推 Push5F: sweap continue Phyical mem for u 04/04 01:47
3F:推 Push5F: need wait, and may can,t get 04/04 01:49