摘要: 一 。因为我是在写driver的时候,学会的这个问题,就以driver的代码来理解吧。 while (dev->rp == dev->wp) { /* nothing to read */ up(&dev->sem); /* release the lock */ if (filp->f_flags & O_NONBLOCK) return -EAGAIN; PDEBUG("\"%s\" reading: going to sleep\n", current-... 阅读全文
posted @ 2011-11-08 15:37 Jack204 阅读(1719) 评论(0) 推荐(0) 编辑
摘要: 1 不要谈论自己。。Don't talk about myself. 阅读全文
posted @ 2011-11-08 13:40 Jack204 阅读(123) 评论(0) 推荐(0) 编辑