lkml.org 
[lkml]   [2003]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Magic numner of /dev/mem
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.022 / U:1.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site