[問題] 關於vmalloc的問題

看板LinuxDev作者 (QQ)時間10年前 (2015/03/31 23:51), 編輯推噓2(201)
留言3則, 2人參與, 最新討論串1/2 (看更多)
小弟對於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
這可能要實際去翻code 來看
04/01 12:12, 1F

04/04 01:47, , 2F
sweap continue Phyical mem for u
04/04 01:47, 2F

04/04 01:49, , 3F
need wait, and may can,t get
04/04 01:49, 3F
文章代碼(AID): #1L6i9rs5 (LinuxDev)
討論串 (同標題文章)
文章代碼(AID): #1L6i9rs5 (LinuxDev)