[問題] 關於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