RE: mmap() of /dev/kmem issue

Luck, Tony
2004-05-05T16:44:00Z

>On Wed, May 05, 2004 at 10:53:10AM -0500, Mario Smarduch wrote:
>> That's great but what release is that in?
>
>This is in 2.6.6-rc3. I don't know when it was added.

N.B. your test program will need some changes to work under
2.6 as the kernel is linked into virtual addresses in region 5
instead of region 7.

So "IDENBASE" and "jiffies - IDENBASE" would need to be changed.

In fact there might be another whole layer of difficulty writing
your test program, as figuring the physical address of the kernel
object that you want to look at is a lot harder as the bootloader
may have picked any physical address to load the kernel (though
in practice at the moment it only does this on SGI sn2 machines).

-Tony