Skip to contentSkip to conversation

Magic numner of /dev/mem

DISCUSSION prasanna panchamukhi 2 participants 2 messages Apr 8, 2003

lore
Share & tools
lore
#0 lore raw

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.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

#1 lore raw
Quoted 10 lines · prasanna panchamukhi

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?

Quoted 4 lines

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.