public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/vcs - poll for changes?
@ 2009-04-17 15:05 Phil Endecott
  2009-04-18  8:11 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Endecott @ 2009-04-17 15:05 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Dear Experts,

Is there a way to detect when the content of a /dev/vcs* has changed?  
I have some code that currently polls, which is obviously sub-optimal.  
I was hoping that there would be some trick like look at the 
modification time, but I haven't found anything.  If this isn't 
currently possible, how easily could it be added?  What would the 
preferred API be, if it were added?

Thanks for any suggestions.

Phil.




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

* Re: /dev/vcs - poll for changes?
  2009-04-17 15:05 /dev/vcs - poll for changes? Phil Endecott
@ 2009-04-18  8:11 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2009-04-18  8:11 UTC (permalink / raw)
  To: Phil Endecott; +Cc: Linux Kernel Mailing List

"Phil Endecott" <phil_wueww_endecott@chezphil.org> writes:

> Dear Experts,
>
> Is there a way to detect when the content of a /dev/vcs* has changed?
> I have some code that currently polls, which is obviously sub-optimal.
> I was hoping that there would be some trick like look at the
> modification time, but I haven't found anything.  If this isn't
> currently possible, how easily could it be added?  What would the
> preferred API be, if it were added?

The first question would be: why do you want to do this?

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

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

end of thread, other threads:[~2009-04-18  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 15:05 /dev/vcs - poll for changes? Phil Endecott
2009-04-18  8:11 ` Andi Kleen

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