Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751294AbWCGBiA (ORCPT ); Mon, 6 Mar 2006 20:38:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752064AbWCGBiA (ORCPT ); Mon, 6 Mar 2006 20:38:00 -0500 Received: from ms-smtp-04-smtplb.tampabay.rr.com ([65.32.5.134]:56978 "EHLO ms-smtp-04.tampabay.rr.com") by vger.kernel.org with ESMTP id S1751294AbWCGBh7 (ORCPT ); Mon, 6 Mar 2006 20:37:59 -0500 Message-ID: <440CE3DB.5050103@cfl.rr.com> Date: Mon, 06 Mar 2006 20:37:31 -0500 From: Phillip Susi User-Agent: Mail/News 1.5 (X11/20060213) MIME-Version: 1.0 To: Dan Aloni CC: Benjamin LaHaise , Linux Kernel List Subject: Re: Status of AIO References: <20060306062402.GA25284@localdomain> <20060306211854.GM20768@kvack.org> <20060307013049.GA19775@localdomain> In-Reply-To: <20060307013049.GA19775@localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 21 aio_* functions are library routines in glibc that are implemented by spawning threads to use the normal kernel io syscalls. They don't use real async IO in the kernel. I'm not sure why you didn't see the thread, but if you look up the glibc sources you will see how it works. To use the kernel aio you make calls to io_submit(). Dan Aloni wrote: > Well, I've written a small test app to see if it works with network > sockets and apparently it did for that small test case (connect() > with aio_read(), loop with aio_error(), and aio_return()). I thought > perhaps the glibc implementation was running behind the scene, so I've > checked to see if it a thread was created in the background and I > there wasn't any thread. > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/