From owner-freebsd-hackers Tue Apr 20 13:13: 8 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 3AE8F15860 for ; Tue, 20 Apr 1999 13:13:03 -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.548E2320@mailer.syr.edu>; Tue, 20 Apr 1999 16:10:38 -0400 Received: from localhost (cmsedore@localhost) by rodan.syr.edu (8.8.7/8.8.7) with SMTP id QAA03655 for ; Tue, 20 Apr 1999 16:10:35 -0400 (EDT) X-Authentication-Warning: rodan.syr.edu: cmsedore owned process doing -bs Date: Tue, 20 Apr 1999 16:10:35 -0400 (EDT) From: Christopher Sedore X-Sender: cmsedore@rodan.syr.edu To: hackers@freebsd.org Subject: aio_suspend() 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 I'm curious if anyone has investigated allowing aio_suspend to return upon the completion of any outstanding io request. I'd like to see aio_suspend accept a single element array of pointers to aiocb's where the element value is NULL. By adding a little glue, aio_suspend could simply tsleep as now and then stick the pointer to the completed aiocb into the (previously NULL) single element array when awoken, and then return. This would (optionally) end the polling of all the specified aiocb's, and would allow a more "fire and forget" type of async IO while remaining compatible with the current behavior. (I may be shooting myself in the foot to mention it, but this would allow a behavior similar to NT's GetQueuedCompletionStatus) -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message