From owner-freebsd-current@FreeBSD.ORG Tue May 16 21:30:38 2006 Return-Path: X-Original-To: current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D04C16AB99; Tue, 16 May 2006 21:30:38 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB8CB43D45; Tue, 16 May 2006 21:30:37 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 2F432170DE; Tue, 16 May 2006 21:30:35 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.6/8.13.6) with ESMTP id k4GLUX3R027009; Tue, 16 May 2006 23:30:34 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: John-Mark Gurney From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 16 May 2006 14:27:07 PDT." <20060516212707.GI65555@funkthat.com> Date: Tue, 16 May 2006 23:30:33 +0200 Message-ID: <27008.1147815033@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Maxim Sobolev , "current@freebsd.org" Subject: Re: Optional mmap(2) support for geom(4) providers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 21:30:41 -0000 In message <20060516212707.GI65555@funkthat.com>, John-Mark Gurney writes: >Maxim Sobolev wrote this message on Tue, May 16, 2006 at 01:24 -0700: >> Well, in my particular case I would like to experiment with >> dynamic exporting of shared ELF objects from the kernel into >> userspace. md(4) seems like a good fit, but dlopen(3) uses >> mmap, so that it doesn't work OOB. There can be other uses >> as well. > >Doing a seperate cdev that implements mmap is quite easy... > >For something like that it seems like you wouldn't need any of md's >disk device features, would you? I agree, md(4) will only get in the way of what is necessary. Look at the adlink driver, it is much closer to what you want. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.