From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 18:02:44 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86CEB16A5CE; Thu, 21 Sep 2006 18:02:44 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8904343D46; Thu, 21 Sep 2006 18:02:43 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 22 Sep 2006 02:02:41 +0800 id 0010E409.4512D3C1.00002E36 References: <200609100956.k8A9uD0P094639@repoman.freebsd.org> <20060911193600.7ab43fb6@Magellan.Leidinger.net> <200609111528.49054.jhb@freebsd.org> <20060912073021.pvw7p0mit4w4cs8s@webmail.leidinger.net> <3bbf2fe10609120130l55c4590eha3628e7f1c21d8a7@mail.gmail.com> <3bbf2fe10609120147p343f48a4yeef4ad42a8bbb337@mail.gmail.com> <20060916165427.005d28d2@Magellan.Leidinger.net> <20060917131636.0fccc09a@Magellan.Leidinger.net> <20060918205526.65c78d55@Magellan.Leidinger.net> In-Reply-To: <20060918205526.65c78d55@Magellan.Leidinger.net> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Fri, 22 Sep 2006 02:02:41 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Alexander Leidinger Subject: [Updated on 2006-9-22] Linux AIO module, Re: PERFORCE change 105930 for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 18:02:44 -0000 Download: http://ftp.intron.ac/tmp/linux_aio-20060922.tar.bz2 Updated files: linux_aio.c vfs_aio.c.diff readme.txt 1. Flexible on-demand linking to FreeBSD native AIO module. Only when linux_io_xxx() is called will native AIO module be loaded. 2. Only two symbols "aio_init_aioinfo" and "aio_aqueue" of the native AIO module need to be exported. Alexander, please roll back "vfs_aio.c", and then apply my new patch "vfs_aio.c.diff", to conform to POLA (Principle Of Least Astonishment). And please change the value of "EXPORT_SYMS" in "/sys/modules/aio/Makefile". ------------------------------------------------------------------------ From Beijing, China Alexander Leidinger wrote: > > Wait... the aio stuff you need is already made global (instead of > static) and exported by the module. That's all you need. Roman should > have the mail from jhb@ where he explained how to dynamically look up > the stuff for the linux_mq_*() functions in the module load handle by > using the kernel linker to lookup the symbols (AFAIR). > > Roman, could you please forward the corresponding explanation to Intron? >