[問題] 關於vmalloc的問題
小弟對於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://www.ptt.cc/bbs/LinuxDev/M.1427817077.A.D85.html
→
04/01 12:12, , 1F
04/01 12:12, 1F
推
04/04 01:47, , 2F
04/04 01:47, 2F
推
04/04 01:49, , 3F
04/04 01:49, 3F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章