From owner-freebsd-hackers Thu Apr 22 7:51:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from hda.hda.com (hda-bicnet.bicnet.net [209.244.238.132]) by hub.freebsd.org (Postfix) with ESMTP id 66C4E14C0C for ; Thu, 22 Apr 1999 07:51:38 -0700 (PDT) (envelope-from dufault@hda.hda.com) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id KAA29489; Thu, 22 Apr 1999 10:39:51 -0400 (EDT) From: Peter Dufault Message-Id: <199904221439.KAA29489@hda.hda.com> Subject: Re: aio_suspend() functionality In-Reply-To: from Christopher Sedore at "Apr 21, 99 10:25:18 pm" To: cmsedore@mailbox.syr.edu (Christopher Sedore) Date: Thu, 22 Apr 1999 10:39:51 -0400 (EDT) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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." 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. Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message