LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Printing info from "/proc/buddyinfo" (https://www.linuxquestions.org/questions/linux-kernel-70/printing-info-from-proc-buddyinfo-941977/)

hardric88 04-26-2012 07:34 PM

Printing info from "/proc/buddyinfo"
 
Hi,
I need to implement my own kernel function that prints '/proc/buddyinfo'. Can anyone guide me how to go about doing it?
Thanks in advance.

bsat 04-26-2012 11:55 PM

/proc/buddyinfo already exists, look for the kernel code that creates this proc entry.

hardric88 04-27-2012 11:00 PM

Hi,
I know that /proc/buddyinfo already exists. I want to know what code in the kernel is generating/printing the information present in buddyinfo.

emntech 05-03-2012 11:51 AM

Look at linux/mm/vmstat.c file.


All times are GMT -5. The time now is 08:41 PM.