From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 14 16:14:35 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 4074B106566C for ; Mon, 14 Feb 2011 16:14:35 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id CC6508FC19 for ; Mon, 14 Feb 2011 16:14:34 +0000 (UTC) Received: by ewy24 with SMTP id 24so2445060ewy.13 for ; Mon, 14 Feb 2011 08:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=SZvGQ7DlmDe5QO6x4/dnomIJ7Q3QjZDrzgLlb02Sjfw=; b=OUD47L9dGpkD738+e+r7ebJa6QCYUXRvhGWrKZk4uDe7tGGkRakyB9obHfL25Ukort QLKWd6rK24U9HvwtICoKEiUyNqSwLNLGY87KCKkRQKu/eNXDXpkQ0/1fhsNPtb4UrkBc tZyT1mi1JgMosYG4SEMsz/Bur/ls23KY9R3sE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DojJ/Fp0DcE4EXsFKvmfn/kb23cu3fLg0cSsVaFHT7U7FNCYM/7Da5JF07GxvMrsz3 L1gJ1zO/l1DxWrT62gwvOATu6WlP5D10SouVQ3KlL5RqLKh4HiIz8t2nWg6cDs0rcAj+ n5lypPQAiaPYaNGXt4ael+H6aVAsV+z/DtjGI= MIME-Version: 1.0 Received: by 10.213.7.67 with SMTP id c3mr4151436ebc.68.1297700071953; Mon, 14 Feb 2011 08:14:31 -0800 (PST) Received: by 10.213.20.135 with HTTP; Mon, 14 Feb 2011 08:14:23 -0800 (PST) In-Reply-To: <201102141718415933573@yahoo.com.cn> References: <201102141718415933573@yahoo.com.cn> Date: Mon, 14 Feb 2011 11:14:23 -0500 Message-ID: From: Ryan Stone To: beezarliu Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-hackers@freebsd.org" Subject: 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: Mon, 14 Feb 2011 16:14:35 -0000 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.