看板 LinuxDev 關於我們 聯絡資訊
小弟對於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
leolarrel: 這可能要實際去翻code 來看 04/01 12:12
Push5F: sweap continue Phyical mem for u 04/04 01:47
Push5F: need wait, and may can,t get 04/04 01:49