Date: Fri, 16 Dec 2005 16:09:16 -0600 (CST) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= <sean-freebsd@farley.org> To: freebsd-hackers@freebsd.org Subject: Number of kevents registered in kqueue Message-ID: <20051216155717.W4815@thor.farley.org>
index | next in thread | raw e-mail
I may have missed it in the man page, but I am unable to find a way to determine how many kevents are currently registered within a kqueue. If there is no method for a count, how about a way to find if a kqueue is empty or not. Besides tracking what events are still within a kqueue, this would make for an easier way to write an event loop. Currently, calling kevent() on an empty kqueue will still block. Also, I recommend that the man page mention that a kqueue may be close(2)'d. The only reference that it can be is that the manual page says the kqueue() call returns a descriptor. Seán -- sean-freebsd@farley.orghelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051216155717.W4815>
