From owner-freebsd-hackers Sat Aug 17 1:52:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 512EB37B400; Sat, 17 Aug 2002 01:52:49 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B78C43E42; Sat, 17 Aug 2002 01:52:48 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0246.cvx22-bradley.dialup.earthlink.net ([209.179.198.246] helo=mindspring.com) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17fzKB-0001sK-00; Sat, 17 Aug 2002 01:52:48 -0700 Message-ID: <3D5E0E3F.C00C14F6@mindspring.com> Date: Sat, 17 Aug 2002 01:50:07 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: stable@freebsd.org Cc: jlemon@freebsd.org Subject: PATCH2: Better kqueue patches Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG OK, these patches still add support for System V message queue integration into kqueue. They also fix the problems I noted before, by adding a third parameter to KNOTE(), and fixing up the kn_fop->f_event() functions to take a third parameter. This fixes the message queue ID > 65536 problem, and also fixes the event/hint mux problem with signal and proc notes (particularly, it allows for more than 20 bits of PID, if that's ever considered desirable at some point). It also adds support for a virtual event, if the System V message queue was not empty when the filter is first attached, to avoid the need to do the poll-after-attach, and to poll on reads to avoid the potential race condition (you would still need this for multiple readers on the same queue, though... obviously). I think this code is OK to commit, if someone want to review it and commit it. Context diffs vs. -STABLE attached. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message