Re: memory driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





> excuse me if this sounds very silly. is memory considered as a device

> or resource? linux has the entry 1 /dev/mem in /proc/devices file. 
> this means that there is a driver (with major number 1) for driving 
> memory. if not then what's the use of major number here?

 There is no driver that 'drives' memory like a device. Memory is
a resource managed by the kernel. /dev/mem is a pseudo device that 
provides read & write access to contents of physical memory. You won't 
(and can't) use /dev/mem to allocate and free memory. 

Ravi.

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux