Linux 保留位意义

Linux 保留位意义,linux,bit,Linux,Bit,在该文件中,有一些关于页面错误代码的信息: Page fault error code bits: bit 0 == 0: no page found 1: protection fault bit 1 == 0: read access 1: write access bit 2 == 0: kernel-mode access 1: user-mode access bit 3 == 1: u

在该文件中,有一些关于页面错误代码的信息:

Page fault error code bits:
bit 0 ==    0: no page found       1: protection fault
bit 1 ==    0: read access         1: write access
bit 2 ==    0: kernel-mode access  1: user-mode access
bit 3 ==                           1: use of reserved bit detected
bit 4 ==                           1: fault was an instruction fetch
在“位3”“1:使用检测到的保留位”的情况下,哪种情况可能会使内核将该位设置为1?有关于它的文件吗

谢谢

数据结构中的保留位是那些具有特殊意义并在内部使用的位


如果您的代码修改了分页相关数据结构中的任何保留位,则将设置示例中错误代码的第3位。例如,在4 Mb页面中,x86位21到12上的目录条目保留供系统使用,覆盖它们是一个错误。

@Naruto这很糟糕,但我认为我们无法帮助您解决信息不足的问题。可能你的内核模块坏了,或者内存出了问题。@Naruto“我的驱动程序”是什么意思?您正在调试自己的内核模块吗?无论如何,这似乎是一个单独的问题。我恐怕不可能远程诊断这样的问题。很可能只是在页面目录的某个地方损坏内存。