From owner-freebsd-hackers Thu Apr 22 9:39:28 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mailer.syr.edu (mailer.syr.edu [128.230.18.29]) by hub.freebsd.org (Postfix) with ESMTP id 43F2A15467 for ; Thu, 22 Apr 1999 09:39:21 -0700 (PDT) (envelope-from cmsedore@mailbox.syr.edu) Received: from rodan.syr.edu by mailer.syr.edu (LSMTP for Windows NT v1.1a) with SMTP id <0.958DA1A0@mailer.syr.edu>; Thu, 22 Apr 1999 12:35:22 -0400 Received: from localhost (cmsedore@localhost) by rodan.syr.edu (8.8.7/8.8.7) with SMTP id MAA20069; Thu, 22 Apr 1999 12:35:17 -0400 (EDT) X-Authentication-Warning: rodan.syr.edu: cmsedore owned process doing -bs Date: Thu, 22 Apr 1999 12:35:16 -0400 (EDT) From: Christopher Sedore X-Sender: cmsedore@rodan.syr.edu Reply-To: Christopher Sedore To: Peter Dufault Cc: hackers@FreeBSD.ORG Subject: Re: aio_suspend() functionality In-Reply-To: <199904221439.KAA29489@hda.hda.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 22 Apr 1999, Peter Dufault wrote: > > I sent a message a day or two ago asking if anyone had looked into > > changing the behavior of aio_suspend so that it did not require a list of > > aiocb's, but rather would accept an array of null pointers, and then fill > > them in for you when an operation completed. > > Unfortunately this explicitly violates the standard so be sure to > conditionalize it properly. In 6.7.8.2 about the array: "This > array may contain NULL pointers, which shall be ignored." I thought that a variant of aio_return that would sleep until a completed io was ready might be a better alternative. This would eliminate the need to call aio_return as you are required to do with this modified aio_suspend. > The hooks POSIX tries to provide to implement what you want are > via signals - using aio_sigevent, SIGEV_SIGNAL, "Realtime Signals", > and the associated si_value for the completion cookie. FreeBSD doesn't have support for this, does it? I can't say I'm a fan of the POSIX aio spec--seems a little crippled. -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message