开发者

Virtual memory: process' one and system's one

This article http://msdn.microsoft.com/en-us/library/aa366912(v=vs.85).aspx states that virtual memory in a win32 environment (32 bit supposed) half is dedicated to user mode processes, half to kernel mode processes.

If I recall f开发者_Python百科rom pagination, every process should have its own address space from 0 to whatsoever (max 0x7FFFFFFF according to the article). But what for a kernel driver? Does every kernel driver/program has its kernel address space from 0x80000000 through 0xFFFFFFFF?

Or I'm just getting wrong?


I believe that you are under the impression that drivers are separate processes; with monolithic and hybrid kernels (NT is considered a hybrid), they are not. Think of drivers as modules that the kernel loads into itself in ring 0. In effect, they become part of the kernel.

Parts of that address space may change between processes, but most of the kernel address space would be shared between all processes.


As far as I know, there is only one kernel. :-)

The address ranges seems ok though, unless the system is configured for 3GB user space.


In Windows, kernel mode drivers live in the kernel and share the kernel's address space.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜