[问题] 关于vmalloc的问题

楼主: popd (QQ)   2015-03-31 23:51:15
小弟对于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?
谢谢!
作者: leolarrel (真.粽子无双)   2015-04-01 12:12:00
这可能要实际去翻code 来看
作者: Push5F (帐号已卖)   2015-04-04 01:47:00
sweap continue Phyical mem for uneed wait, and may can,t get

Links booklink

Contact Us: admin [ a t ] ucptt.com