and more generally because you are in process level and that there is a
mechanism called memory protection which means that each process can only
use it's particular memory space....

However, there is a solution: /dev/kmem which is an image of the whole
memory, read and write access. You obsiously need to be root to access is.
You can use open/lseek/read/write to play with it.

Cheers,

JeF

On Fri, 18 Jan 2002, Matthew Dalton wrote:

> > henry wrote:
> >
> > Dears:
> >
> > 1. Any tool to dump memory under linux ?
>
> gdb?
>
>
> > 2. Why cant I link lib for readl() ?
> >     #include <asm/io.h>
> >     int main()
> >     {
> >     return readl(0x40010000) ;
> >     }
>
> readl() is a macro defined in asm/io.h
>
> Your program can't find it because it's defined within a #ifdef
> __KERNEL__ / #endif construct, and your code isn't part of the kernel.
>
>
> Matthew
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
>

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to