2009-04-17 15:49:18

by Phil Endecott

[permalink] [raw]
Subject: /dev/vcs - poll for changes?

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.



2009-04-18 08:12:12

by Andi Kleen

[permalink] [raw]
Subject: Re: /dev/vcs - poll for changes?

"Phil Endecott" <[email protected]> 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

--
[email protected] -- Speaking for myself only.