What does "/dev/mem" file indicates in linux
Hi All,
I have a PCI device in FC13 and i know the BAR0 value of it. How can i map some size of device memory into my application(main.c) address space? Should i do this by opening "/dev/mem" file and by "mmap()" function? Is this "/dev/mem" device file indicates processor address space OR system RAM? And what does "/dev/ramx" device files indicates? Please clear me these doubts,Thanks in advance. |
/dev/mem is a character device file that is an image of the main memory of the computer. Byte addresses in /dev/mem are interpreted as physical memory addresses.
|
Quote:
What does "/dev/ram" files indicates in Linux and how these files differs from "/dev/mem" file? |
/dev/ram* is RAM disk device, which simulates a fixed size hard disk in physical RAM.
|
All times are GMT -5. The time now is 12:17 AM. |