討論串[問題] add_wait_queue在kthread的使用方式
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者rtt2008 (rtt)時間10年前 (2014/11/12 14:07), 編輯資訊
1
0
1
內容預覽:
小弟讀到ldd3關於wait_queue的sample. ssize_t sleepy_read (struct file *filp, char _ _user *buf, size_t count,. loff_t *pos). {. wait_event_interruptible(wq, f
(還有846個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者bendog (bendog)時間10年前 (2014/12/09 02:13), 編輯資訊
0
0
1
內容預覽:
看你的作用,應該要加在裡面。另外注意signal 也會讓程式起來。 還有task_interruptible 設定完後可能在preempt 環境使thread 離開run queue 。。要特別留意。. --. Sent from my Android. --. 發信站: 批踢踢實業坊(ptt.
首頁
上一頁
1
下一頁
尾頁