LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-20-2004, 02:20 AM   #1
eltn
LQ Newbie
 
Registered: Oct 2004
Posts: 21

Rep: Reputation: 15
/proc


is anyone have an easy example of /proc file?
 
Old 10-20-2004, 02:25 AM   #2
fblucher
Member
 
Registered: Oct 2004
Location: Australia
Distribution: NLD 9
Posts: 60

Rep: Reputation: 15
???????????????


Why? What are you trying to do?

/proc is a virtual file system with 1000s of files that represent various aspects of the running system.



Finn.
 
Old 10-20-2004, 05:15 AM   #3
eltn
LQ Newbie
 
Registered: Oct 2004
Posts: 21

Original Poster
Rep: Reputation: 15
its a project from my university

i have to make /proc file that count how many sys calls where since the boot
 
Old 10-20-2004, 05:52 AM   #4
blackzone
Member
 
Registered: Jul 2004
Posts: 256

Rep: Reputation: 30
not sure but don't you just do a normal read and write?

I'm not sure but you can try writing a daemon which counts all the function call since boot and write it to a file under proc?
 
Old 10-20-2004, 05:58 AM   #5
blackzone
Member
 
Registered: Jul 2004
Posts: 256

Rep: Reputation: 30
sorry, it must be run by a kernel module which I have no idea how to do. maybe someother people can help
 
Old 02-16-2006, 12:24 PM   #6
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Rep: Reputation: 15
did u got any proc example.....flz fwd me also...i want to read me kernel data structure in proc file.


thanks in advance
 
  


Reply


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
Correlation between /proc/devices and /proc/modules ColinLadyka Linux - General 1 02-13-2006 06:25 PM
/proc ADDY Linux From Scratch 6 11-15-2004 08:42 AM
proc weazy Linux - General 2 06-01-2003 03:59 AM
What /proc proc file do I need? GoboFraggle Programming 1 02-05-2003 12:52 AM
/proc ?? sapilas Linux From Scratch 9 05-18-2002 05:37 PM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration