kernel
我可以在Linux驱动程序中使用C11,还是必须使用内存屏障的Linux功能?
我可以在 Linux驱动程序(内核空间)中使用来自C11的0700和0700和 memory_order,或者我必须使用内存屏障的Linux功能:[详细]
2020-07-07 12:11 分类:Linux在Linux中dev_err()函数定义
我可以看到dev_ *()函数系列如dev_err()在include / linux / device.h中作为原型给出,但是没有找到它的定义.我曾访问像lxr.free-electron这样的网站,但没有成功.在linux内核的源代码中使用过的标签,即使失败了.[详细]
2020-07-07 07:33 分类:Linux在Linux中一般保护的功能是什么?
在 linux中,当发生中断或异常时,如果CUrrent权限级别(CPL)的权限低于描述权限级别(DPL),则会引发一般保护!但在这种情况下,一般保护错误的作用是什么?请帮我![详细]
2020-07-05 11:37 分类:Linux在Linux中register_chrdev_region和alloc_chrdev_region分配设备号有什么区别?
我想知道这两个函数之间的区别: int register_chrdev_region(dev_t first, unsigned int count, char *name);[详细]
2020-07-05 09:48 分类:Linux在Linux中切换到用户模式时,非抢占式内核和抢占式内核之间有什么区别?
我正在阅读“理解 Linux内核,第3版”,在第5章“内核抢占”一节中,它说: All process switches are performed by the switch_to macro. In both preemptive and nonpreemptive kernels, a process switch occu[详细]
2020-06-17 14:18 分类:Linux在Linux设备驱动程序中使用do_mmap()
我们现在使用的设备需要有一个用户空间虚拟内存地址,我们尝试使用do_mmap(),如下所示:[详细]
2020-06-17 12:36 分类:LinuxLinux内核编译错误:未定义引用`__udivdi3’和`__umoddi3′
这是我得到的错误: http://pastebin.com/VadUW6fy drivers/built-in.o: In function `gem_rxmac_reset\':[详细]
2020-06-17 11:25 分类:Linux在Linux中通过直接读取内核内存来删除隐藏的内核模块?
是否可以通过直接读取内核内存来找到隐藏的内核模块? 通过隐藏我的意思是从内核模块列表中删除自己的LKM.[详细]
2020-06-17 10:07 分类:Linux在Linux中struct task_struct中字段’on_cpu’和struct thread_info中字段’cpu’的含义是什么?
我想知道 Linux系统中当前进程正在运行哪个cpu, 我有两个选择 – >在struct task_struct或中获取字段on_cpu>在struct thread_info中获取字段cpu.[详细]
2020-06-17 09:39 分类:Linux