- 论坛徽章:
- 0
|
本帖最后由 我爱芒果叶 于 2013-09-25 09:50 编辑
在读《深入Linux内核架构》时,理解不了下面这段内容,请大家指点。
中文版本:
尽管内核尽可能保持内核空间和用户空间的独立,有些情况下,内核代码必须访问用户应用程序的虚拟内存。
当然,这只在内核执行由用户应用程序发起的同步操作时才有意义,而不适用于任意进程进行的读或写访问,
否则不仅不能解决问题,还会导致当前执行的代码产生危险的后果。
英文版本:
Even though the kernel does its best to keep kernel space and userspace separate, there are situations
in which kernel code has to access the virtual memory of user applications. Of course, this only makes
sense when the kernel is performing a synchronous action initiated by a user application — write and
read access by arbitrary processes not only serves no purpose, but may also produce risky results in the
code currently executing. |
|