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>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1965985357-1134770956=:4815 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE 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=E1n --=20 sean-freebsd@farley.org --0-1965985357-1134770956=:4815--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051216155717.W4815>