From: yenganti pradeep <pradeepls143@yahoo.co.in>
To: linux-kernel@vger.kernel.org
Subject: procfs question
Date: Tue, 28 Mar 2006 16:34:49 +0100 (BST) [thread overview]
Message-ID: <20060328153449.3321.qmail@web8409.mail.in.yahoo.com> (raw)
Hi,
I've created a new entry under /proc, to make tests.
I've defined an static int var=0;
Then I link my proc entry read function to a function
that only performs this:
int length;
length=sprintf(page,"Value %d",var++);
return length;
But when I cat/vi the file continuosly I get:
Value 0
Value 3
Value 6
etc...
Why is this three numbers increment?
Thanks
Pradeep
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
next reply other threads:[~2006-03-28 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 15:34 yenganti pradeep [this message]
2006-03-28 16:15 ` Phillip Susi
2006-03-28 16:27 ` Paulo Marques
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=20060328153449.3321.qmail@web8409.mail.in.yahoo.com \
--to=pradeepls143@yahoo.co.in \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®