LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Linux Physical Memory info (http://www.linuxquestions.org/questions/programming-9/linux-physical-memory-info-781716/)

gottimw 01-12-2010 09:58 AM

Linux Physical Memory info
 
Hi

I am new to programming so DO treat me as a noob ;)

I am looking for some info on how to get information about physical memory. Basically I want to run through the whole RAM and poll some information (block sizes etc)
Are there any libraries for this?

I am already reading about writing a kern modules.

I would appreciate any info or pointers to some tutorials ;)

santana 01-12-2010 01:55 PM

Not sure what you mean here by "poll". If you mean search all of the ram, it's not going to possible with out hacking the kernel as far as I know do to what is called protection. Each process's address space is protected from othe rprocesses, that way one bad program can't bring the system down.

exvor 01-12-2010 08:01 PM

Quote:

Originally Posted by gottimw (Post 3823821)
Hi

I am new to programming so DO treat me as a noob ;)
I am already reading about writing a kern modules.

New to programming I would stay out of the kernel stuff for now until you get better understanding of how it manages memory and such or for that matter how 32bit protected mode handles memory. I know enough C to get me in trouble and I think ill always be a noob compared to some of the people here but even I know to stay out of the kernel.


All times are GMT -5. The time now is 01:26 AM.