public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* procfs question
@ 2006-03-28 15:34 yenganti pradeep
  2006-03-28 16:15 ` Phillip Susi
  2006-03-28 16:27 ` Paulo Marques
  0 siblings, 2 replies; 3+ messages in thread
From: yenganti pradeep @ 2006-03-28 15:34 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-28 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-28 15:34 procfs question yenganti pradeep
2006-03-28 16:15 ` Phillip Susi
2006-03-28 16:27 ` Paulo Marques

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox