How to set memory attributes in kernel?

All development related issues welcome

Moderator: Moderator Team

Post Reply
Tthtlc
Posts: 2
Joined: Thu Sep 29, 2005 3:00 pm

How to set memory attributes in kernel?

Post by Tthtlc »

I would like to know of an equivalent to VirtualProtect() for kernelspace.

Ie, given a virtual memory range returned from ExAllocatePool, or the current memory space occupied by the driver itself in memory, how do I set the memory read/write/execute attributes - the one ultimately ending up as modifying the PTEs, in ReactOS?
Tthtlc
Posts: 2
Joined: Thu Sep 29, 2005 3:00 pm

Kernel memory attributes - further clarification

Post by Tthtlc »

To further clarify my question, another way of asking it is: what is the internals of NtMapViewOfSection() - how does it modify the memory attributes at the page level? NtMapViewOfSection() is only applicable for userspace buffer right?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 18 guests