Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 04-26-2012, 07:34 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 11

Rep: Reputation: Disabled
Printing info from "/proc/buddyinfo"

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.
Old 04-26-2012, 11:55 PM   #2
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
/proc/buddyinfo already exists, look for the kernel code that creates this proc entry.
Old 04-27-2012, 11:00 PM   #3
LQ Newbie
Registered: Jan 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
I know that /proc/buddyinfo already exists. I want to know what code in the kernel is generating/printing the information present in buddyinfo.
Old 05-03-2012, 11:51 AM   #4
LQ Newbie
Registered: May 2012
Posts: 8

Rep: Reputation: Disabled
Look at linux/mm/vmstat.c file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "FRAG" in "/proc/net/sockstat" ? dileepkk Linux - Networking 1 06-21-2011 11:16 AM
printing hh in hh:mm using "awk '{FS=":";print $1}'" misses first line of output!! mayankmehta83 Linux - Newbie 2 12-03-2009 02:55 AM
info problem "info: dir: No such file or directory" EAD Linux - Software 0 03-22-2006 02:16 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM
RH "null" beta system freezes right after printing "INIT" markus1982 Linux - Hardware 0 09-09-2002 03:31 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration