kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: suren@gatech.edu (Surenkumar Nihalani)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to use /proc
Date: Sun, 05 Feb 2012 16:07:01 -0500 (EST)	[thread overview]
Message-ID: <c8600327-9b54-4afc-a16e-87a2b2395f64@mail5.gatech.edu> (raw)
In-Reply-To: <1328475614.64042.YahooMailNeo@web94709.mail.in2.yahoo.com>

Hello Guys, 

I am CS student trying to write a kernel module as a part of my class assignment. I wanted to know, from within kernel, how do I read and write data to my proc file? 
I need to store state from last call of my function. 

Thanks, 
Suren Nihalani. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120205/445fe425/attachment.html 

  reply	other threads:[~2012-02-05 21:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4F2EEC4D.8040403@gmail.com>
     [not found] ` <4F2EED9F.3020803@gmail.com>
2012-02-05 21:00   ` How to create patch for checkpatch.pl cleanups kashyap gada
2012-02-05 21:07     ` Surenkumar Nihalani [this message]
2012-02-05 21:20       ` How to use /proc Daniel Baluta
2012-02-05 22:14         ` Surenkumar Nihalani
2012-02-05 22:37           ` Anuz Pratap Singh Tomar
2012-02-05 22:52           ` Greg KH
2012-02-05 21:10     ` How to create patch for checkpatch.pl cleanups Daniel Baluta
2012-02-05 22:51       ` Greg KH
2012-02-05 23:26         ` kashyap gada
2012-02-06  1:22           ` Greg KH
2012-02-06 11:56           ` Bernd Petrovitsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8600327-9b54-4afc-a16e-87a2b2395f64@mail5.gatech.edu \
    --to=suren@gatech.edu \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).