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

Physical memory available in the system - Regarding



Hi

Would somebody be kind enough to give me some pointers on the availability of some linux kernel call that I can use to get the amount of physical memory available on the system ?

I am trying to do something like this (not using bigphyspatch but reserving memory at boot time, pg 403 on O'Reilly book)

    dmabuf = ioremap (getAvailablePhysicalMemory (), 0x100000 /*1M*/);

Any help would be greatly appreciated.

Thanks in advance
Vijay