LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2005, 03:30 AM   #1
arunka
Member
 
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
reading /proc file in kernel help needed


hi all
i want to simulate a mechanism like cat /proc/cpuinfo in the kernel space .
can i read the /proc in kernel space, or what are the APIs/kernel datastructures that can help me retriving the information about the cpu

thanks in advance

Arun KA
 
Old 03-17-2005, 05:36 AM   #2
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
Hello,
You require to write a kernel module program. check out this link
http://www.faqs.org/docs/kernel/x716.html
as well as read whole
http://www.kernelnewbies.org/documen...ocfsguide.html
 
Old 03-17-2005, 05:51 AM   #3
arunka
Member
 
Registered: Mar 2005
Posts: 60

Original Poster
Rep: Reputation: 15
/proc help!!!

hi
i have already gone through the document..
i don't think you undestood the question.

thanks

Arun
 
  


Reply



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
Kernel compile isn't reading my .config file...? R00ts Debian 4 03-21-2005 07:46 PM
Reading from a /proc file russelh Programming 2 12-02-2004 05:30 PM
api for reading files under /proc sreddy Programming 2 09-01-2004 02:52 PM
C help needed - reading from a complicated text file Keffin Programming 4 01-26-2004 09:32 PM
What /proc proc file do I need? GoboFraggle Programming 1 02-04-2003 11:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

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