From owner-freebsd-hackers@FreeBSD.ORG Wed May 19 07:35:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0265116A4CE; Wed, 19 May 2004 07:35:11 -0700 (PDT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D5B243D2D; Wed, 19 May 2004 07:35:10 -0700 (PDT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 0082BACAF1; Wed, 19 May 2004 16:34:53 +0200 (CEST) Date: Wed, 19 May 2004 16:34:53 +0200 From: Pawel Jakub Dawidek To: Alfred Perlstein Message-ID: <20040519143453.GZ845@darkness.comp.waw.pl> References: <20040519122907.GO81341@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MiVqRLlIC2csOnh8" Content-Disposition: inline In-Reply-To: <20040519122907.GO81341@elvis.mu.org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: hackers@freebsd.org Subject: Re: api for sharing memory from kernel to userspace? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 14:35:11 -0000 --MiVqRLlIC2csOnh8 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 19, 2004 at 05:29:07AM -0700, Alfred Perlstein wrote: +> I need to share about 100megs of memory between kernel and userspace. +>=20 +> The memory can not be paged and should appear contig in the process's +> address space. Any suggestions? +>=20 +> I need a way to either: +> map user memory into the kernel's address space. +> map kernel memory into the user's address space. +>=20 +> I was looking at pmap_qenter() but it didn't see attractive because +> it's for "short term mappings", this mapping will exist for quite a +> while. In mapping kernel memory into user's address space I am interested as well for GEOM Gate and other evil projects. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --MiVqRLlIC2csOnh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAq3CNForvXbEpPzQRAgeOAKDx5UH/QPBE6mqZ09wtzSyicESs6gCgx38y JPB1As1wMlLu2bqm9ARAIPI= =gIGa -----END PGP SIGNATURE----- --MiVqRLlIC2csOnh8--