Open cheney-lin opened 6 years ago
https://www.cnblogs.com/ck1020/p/7214310.html
http://man7.org/linux/man-pages/man2/eventfd.2.html
http://blog.allenx.org/2015/07/05/kvm-irqfd-and-ioeventfd
《奔跑吧》 P508 临界区的代码应该尽快地被执行掉,否则会使得等锁的进程浪费CPU。但是这往往很难做到,因为内核中有很多操作都会引起睡眠,详见:https://stackoverflow.com/questions/3676777/avoiding-sleep-while-holding-a-spinlock
《奔跑吧》P636
传统的spinlock采用test_and_set
https://www.kernel.org/pub/linux/kernel/people/paulmck/perfbook/perfbook.html
eventfd源代码分析
https://www.cnblogs.com/ck1020/p/7214310.html
eventfd使用方法
http://man7.org/linux/man-pages/man2/eventfd.2.html
KVM irqfd and ioeventfd
http://blog.allenx.org/2015/07/05/kvm-irqfd-and-ioeventfd