Linux内核编程tips

来源:互联网 发布:webservice传递json串 编辑:程序博客网 时间:2024/04/27 02:53

NO.1 Do NOT make you process sleep when you are in the atomiccontext,especially,when you are holding a spinlock,seqlock or RCU lock.

NO.2If your device interrupt services are to acquire a spinlock,do rememberdisable interrupts when you are going to acquire this spinlock.

原创粉丝点击