linux rcu 理解
2015-10-02 21:34
1201 查看
kernel/rcutree.c
rcu_check_callbacks ->
s3c2410_timer_interrupt -》 timer_tick -》update_process_times -》 rcu_check_callbacks ->
__rcu_pending-> print_other_cpu_stall
在时钟中断中进行检查
INFO: RCU detected CPU stalls:
使用注意方式:
RCU 保护的代码里面不能进入睡眠状态
受访问的资源必须通过指针访问
RCU 使用方式:
1. 读操作时 引用指针必须使用rcu_dereference(ptr)
2. 受访问的资源必须通过指针访问
3. 修改ptr 指向的对象时 必须调用 rcu_assign_pointer
参考资料:
linux内核 RCU机制详解 讲到 rcu 调用使用方法。
/article/9536938.html
https://www.kernel.org/doc/Documentation/RCU/stallwarn.txt
Linux RCU机制详解
http://blog.chinaunix.net/uid-24517893-id-2381246.html
rcu_check_callbacks ->
s3c2410_timer_interrupt -》 timer_tick -》update_process_times -》 rcu_check_callbacks ->
__rcu_pending-> print_other_cpu_stall
在时钟中断中进行检查
INFO: RCU detected CPU stalls:
使用注意方式:
RCU 保护的代码里面不能进入睡眠状态
受访问的资源必须通过指针访问
RCU 使用方式:
1. 读操作时 引用指针必须使用rcu_dereference(ptr)
2. 受访问的资源必须通过指针访问
3. 修改ptr 指向的对象时 必须调用 rcu_assign_pointer
参考资料:
linux内核 RCU机制详解 讲到 rcu 调用使用方法。
/article/9536938.html
https://www.kernel.org/doc/Documentation/RCU/stallwarn.txt
Linux RCU机制详解
http://blog.chinaunix.net/uid-24517893-id-2381246.html
相关文章推荐
- Archlinux编译安装mysql5.6
- Linux系统调用和库函数调用的区别
- CentOS 7更改网卡名称
- linux --scp(secure copy)命令 文件传输
- linux下的硬连接和符号链接(软连接)
- Linux | sed
- linux后台运行和关闭、查看后台任务
- CentOS构造SNMP
- linux服务器登录邮件告警python程序
- Linux(Fedora21)安装google chrome浏览器
- Nios II uCLinux/Linux启动分析
- Linux下开启和关闭Telnet服务
- linux文件处理命令——文件处理命令
- Linux - 扩展
- Linux GCC常用命令
- Linux内核源码分析之文件系统(1) -- 三思而后行
- NCL介绍与安装 记一次不平凡的经历!
- 关于Linux权限问题(由samb访问所引起的)
- 虚拟机中CentOS自动获取ip和静态ip设置
- Vs2012于Linux应用程序开发(2):图案