From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 15 03:26:40 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 446711065761 for ; Tue, 15 Feb 2011 03:26:40 +0000 (UTC) (envelope-from beezarliu@yahoo.com.cn) Received: from nm10.bullet.mail.sp2.yahoo.com (nm10.bullet.mail.sp2.yahoo.com [98.139.91.80]) by mx1.freebsd.org (Postfix) with SMTP id 20C3C8FC12 for ; Tue, 15 Feb 2011 03:26:40 +0000 (UTC) Received: from [98.139.91.64] by nm10.bullet.mail.sp2.yahoo.com with NNFMP; 15 Feb 2011 03:14:08 -0000 Received: from [98.136.185.29] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 15 Feb 2011 03:14:08 -0000 Received: from [127.0.0.1] by smtp110.mail.gq1.yahoo.com with NNFMP; 15 Feb 2011 03:14:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1297739648; bh=j1pekwrrbZyI8InsQmdQIroO1vs+sr3CGktw1jlzkCI=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:References:Subject:Message-ID:X-mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=KpTCbOxLuCYLKpEINCtwsP9+d4CY86Xs4TMc7pYh6iWPuThk3QupdC+O4Jb01f2cAVAIwVZSIWlG2L98m3a4Rsoz5QsyL67a/pF/6KAT0RXwGZLJYj2CIWhNGFGz2EL3FBZE8T9yhVaHxnVlY+vqlDcJJgcBmotgzPp4pOdF1dc= X-Yahoo-Newman-Id: 240208.44172.bm@smtp110.mail.gq1.yahoo.com Received: from china (beezarliu@180.168.37.66 with login) by smtp110.mail.gq1.yahoo.com with SMTP; 14 Feb 2011 19:14:07 -0800 PST X-Yahoo-SMTP: YP5UPy2swBBHZGZlvbmOrntlD3fotw-- X-YMail-OSG: SsN4SwUVM1nE21zDQGoIkXUTeLVYHo_t4kC7z3ZdFd5Z88n notqugc.0IejmRRKZyrBovjAFJalU2SUN3a6ynfDwi3zZzUtv.MYgbixdiXL YEjHdW5p5Wi2z_TKV3dYKBwSViPnG6HRJDsDMRfc5j6ACxt0l4gNaRdmhBsM VYJdAmRXV5n3oQ1Ie7oXI2b7ccnLi1vl5lRzWQAoLnFIJbo53bfiyLHqojhc .Md41kjaq1VQd4EJOd1XcImvX7ofBZ6t9YwhD3sz1uxLyQjfEY_xM88ZtbwY QLKo2_bFsVw3r_S1XRVAMaQmCSlO4Iioo0R.y3WtQ2W3OxEpPJiE- X-Yahoo-Newman-Property: ymail-3 Date: Tue, 15 Feb 2011 11:14:04 +0800 From: "beezarliu" To: "Ryan Stone" References: <201102141718415933573@yahoo.com.cn>, Message-ID: <201102151114019680728@yahoo.com.cn> X-mailer: Foxmail 6, 10, 201, 20 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 15 Feb 2011 05:04:27 +0000 Cc: "freebsd-hackers@freebsd.org" Subject: Re: Re: map share memory to kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 03:26:40 -0000 On 2011-02-15 00:14:39, Ryan Stone wrote: >Is your goal just to share memory between userland applications and >the kernel? Can the kernel allocate the memory? If so, the easiest >way to share memory would be to create a device under /dev and have >the userland application mmap it. I'm too lazy to write a driver for each share memory. :) __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com