蒙恩
一个睡不醒的老男孩儿

导航

 

2018年7月4日

摘要: 主要介绍linux关抢占函数preempt_disable操作的具体数据,以及操作的方法 阅读全文
posted @ 2018-07-04 22:33 DoOrDie 阅读(1228) 评论(0) 推荐(0) 编辑
 

2018年6月27日

摘要: Linux 内核源码中__stringify的效果,C语言中字符串宏的使用 阅读全文
posted @ 2018-06-27 22:20 DoOrDie 阅读(318) 评论(0) 推荐(0) 编辑
 
摘要: 1 Linux内核中有如下两个宏: 2 #define __stringify_1(x...) #x 3 #define __stringify(x...) __stringify_1(x) 4 5 写代码测试如下: 6 #include 7 #include 8 #define test1 "hello world" 9 #define test2(x) "hello ... 阅读全文
posted @ 2018-06-27 22:17 DoOrDie 阅读(713) 评论(0) 推荐(0) 编辑