From owner-cvs-all Tue Nov 21 11:36:39 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BFBD037B479; Tue, 21 Nov 2000 11:36:36 -0800 (PST) Received: (from alc@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA76264; Tue, 21 Nov 2000 11:36:36 -0800 (PST) (envelope-from alc@FreeBSD.org) Message-Id: <200011211936.LAA76264@freefall.freebsd.org> From: Alan Cox Date: Tue, 21 Nov 2000 11:36:36 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_aio.c src/sys/sys signal.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG alc 2000/11/21 11:36:36 PST Modified files: sys/kern vfs_aio.c sys/sys signal.h Log: Provide a new interface for the user of aio_read() and aio_write() to request a kevent upon completion of the I/O. Specifically, introduce a new type of sigevent notification, SIGEV_EVENT. If sigev_notify is SIGEV_EVENT, then sigev_notify_kqueue names the kqueue that should receive the event and sigev_value contains the "void *" is copied into the kevent's udata field. In contrast to the existing interface, this one: 1) works on the Alpha 2) avoids the extra copyin() call for the kevent because all of the information needed is in the sigevent and 3) could be applied to request a single kevent upon completion of an entire lio_listio(). Reviewed by: jlemon Revision Changes Path 1.87 +34 -30 src/sys/kern/vfs_aio.c 1.25 +8 -2 src/sys/sys/signal.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message