Re: Magic numner of /dev/mem

Richard B. Johnson (root@chaos.analogic.com)
Tue, 8 Apr 2003 09:58:09 -0400 (EDT)


On Tue, 8 Apr 2003, prasanna panchamukhi wrote:

> Hi,
>
> I have a few questions on /dev/mem
>
> 1.Is the magic no of /dev/mem is static or dynamic for
> a specific architecture.
> 2.If it is static/Dynamic why?
> 3. How it is determined?
> 3.Where do we use it?
>
> Thanks in advance...
>
> Regards
> Prasanna S P.

/dev/mem is not a "file" so it doesn't have a magic number. It
is a device that creates a "window" into all the mapped memory
pages in the system.

If you were to read /dev/mem (just do `strings /dev/mem` from
the root account), you will read the contents of physical memory.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/