Date: Wed, 2 May 2001 16:49:30 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: Dominic Marks <dominic_marks@hotmail.com> Cc: <freebsd-hackers@FreeBSD.ORG> Subject: Re: KEvent doesnt return and KEvent sample troubles Message-ID: <Pine.BSF.4.33.0105021647250.77606-100000@resnet.uoregon.edu> In-Reply-To: <F45sAitVGeSJIEoPXCF00000265@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105021647250.77606-100000>