memory map in kernel mode?

Hello,

How can I programmatically get virtual memory map in a kernel session?
I want to get avail pages and their attributes.

I use QueryVirtual() with a user mode target and it works fine (it fails
with kernel session).

Please advise.


Elias

tried using !memusage in windbg

the output is very long use .logopen to log the output if that is what you
are looking for

Usage Summary (in Kb):

Control Valid Standby Dirty Shared Locked PageTables name

85b15338 0 20 0 0 0 0 mapped_file( symap___.ttf )

85b1cc58 0 24 0 0 0 0 mapped_file( ARBLI___.TTF )

859f5378 0 24 0 0 0 0 mapped_file( HATTEN.TTF )

85acb300 0 24 0 0 0 0 mapped_file( shruti.ttf )

8633e838 0 88 0 0 0 0 mapped_file( vrinda.ttf )

859d7300 0 92 0 0 0 0 mapped_file( MSMINCHO.TTF )

859c3300 0 24 0 0 0 0 mapped_file( BOOKOSBI.TTF )

On 1/14/09, lallous wrote:
>
> Hello,
>
> How can I programmatically get virtual memory map in a kernel session?
> I want to get avail pages and their attributes.
>
> I use QueryVirtual() with a user mode target and it works fine (it fails
> with kernel session).
>
> Please advise.
>
> –
> Elias
>
>
>
> —
> You are currently subscribed to windbg as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


thanks and regards

raj_r