From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 29 08:46:12 2003 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 535DC16A4B3 for ; Mon, 29 Sep 2003 08:46:12 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B7AC44030 for ; Mon, 29 Sep 2003 08:46:11 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 4597D3ABB4E; Mon, 29 Sep 2003 17:47:41 +0200 (CEST) Date: Mon, 29 Sep 2003 17:47:41 +0200 From: Pawel Jakub Dawidek To: earthman Message-ID: <20030929154741.GB520@garage.freebsd.pl> References: <16244.53594.942762.784390@canoe.dclg.ca> <20030927115306.R34638@woozle.rinet.ru> <3F759589.9070700@mindspring.com> <811112091.20030929172247@inbox.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="rS8CxjVDS/+yyDmU" Content-Disposition: inline In-Reply-To: <811112091.20030929172247@inbox.ru> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p9 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: user malloc from kernel 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: Mon, 29 Sep 2003 15:46:12 -0000 --rS8CxjVDS/+yyDmU Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 29, 2003 at 05:22:47PM +0300, earthman wrote: +> how to allocate some memory chunk +> in user space memory from kernel code? +> how to do it correctly? Here you got sample kernel module which do this: http://garage.freebsd.pl/usmalloc.tgz http://garage.freebsd.pl/usmalloc.README --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --rS8CxjVDS/+yyDmU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP3hUHT/PhmMH/Mf1AQEMUwP+NSkHrY3TWcGnuk42xxuP2bocLevr299T WV9xtz6J0hPHSRt7eqxCcJTM4zfkjjdMABTZaSe7qkUhVRsgUB5uUk9jru0UT1jj qzGkAvuUr47Ule8DfcGvEapw7kdD70c6WdXKLT5KUG4IJoKbA4b6EGKxBE8AOmEA VPReQeM39pI= =PufO -----END PGP SIGNATURE----- --rS8CxjVDS/+yyDmU--