![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux内核
文章平均质量分 64
zhongliruishui
这个作者很懒,什么都没留下…
展开
-
module_param
static int nau8810_debug_reg_set(const char *buffer, struct kernel_param *kp) { u16 reg, val; if(!buffer) return -EINVAL; if(sscanf(buffer, "%x,%x", (uint *)®, (uint *)&val) !=原创 2016-08-19 11:33:16 · 2847 阅读 · 0 评论 -
kernel barrier详解
#ifndef barrier # define barrier() __memory_barrier() #endif这里表示如果没有定义barrier函数,则定义barrier()函数为__memory_barrier()。但在内核代码里,是会包含 compiler-gcc.h这个文件的,所以在这个文件里,定义barrier()为__asm__ __volatile__("": : :"mem转载 2015-01-05 10:52:13 · 1219 阅读 · 0 评论 -
Linux内核Crash分析
原文链接:http://blog.chinaunix.net/uid-20788636-id-4377271.html 在工作中经常会遇到一些内核crash的情况,本文就是根据内核出现crash后的打印信息,对其进行了分析,使用的内核版本为:Linux2.6.32。 每一个进程的生命周期内,其生命周期的范围为几毫秒到几个月。一般都是和内核有交互,例如用户空间程序使用系统调用进入转载 2014-12-30 23:15:15 · 1274 阅读 · 0 评论 -
使用 /sys 文件系统访问 Linux 内核
sysfs 与 /sys sysfs 文件系统总是被挂载在 /sys 挂载点上。虽然在较早期的2.6内核系统上并没有规定 sysfs 的标准挂载位置,可以把 sysfs 挂载在任何位置,但较近的2.6内核修正了这一规则,要求 sysfs 总是挂载在 /sys 目录上;针对以前的 sysfs 挂载位置不固定或没有标准被挂载,有些程序从 /proc/mounts 中解析出 sysfs 是否被挂载转载 2014-10-19 23:09:58 · 473 阅读 · 0 评论