On Wed, 2 May 2001, Dominic Marks wrote:

> I've been looking to start using the KEvent system and I've been
> experimenting with it. However I've been having several problems, with my
> own code as well as samples from http://www.flugsvamp.org.
>
> It appears I am able to create the correct structure's and register the
> events. However the event never returns and never responds to any action.
> For example if I use a sample which monitors the actions on a file I can
> read from, and write to the file and it shows no sign of noticing.

For that you want status change notifications. You've registerted just a
simple read() notification a la select(), which will trigger until you've
read the entire file then stop. You might find this more interesting if
you point it at a named pipe then use something to stuff data down it.

Take a look at the EVFILT_VNODE type in the kqueue(2) manpage.

Doug White                    |  FreeBSD: The Power to Serve
[EMAIL PROTECTED]     |  www.FreeBSD.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to