From owner-freebsd-arch Sat Jan 18 13: 7: 0 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27D0537B401 for ; Sat, 18 Jan 2003 13:06:59 -0800 (PST) Received: from eagle.sharma-home.net (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3C3943F13 for ; Sat, 18 Jan 2003 13:06:58 -0800 (PST) (envelope-from adsharma@eagle.sharma-home.net) Received: by eagle.sharma-home.net (Postfix, from userid 500) id B2A5A8115; Sat, 18 Jan 2003 13:09:40 -0800 (PST) Date: Sat, 18 Jan 2003 13:09:40 -0800 From: Arun Sharma To: Matthew Dillon Cc: arch@FreeBSD.ORG Subject: Re: Virtual memory question Message-ID: <20030118210940.GA22024@sharma-home.net> References: <20030111224444.94D102A89E@canning.wemm.org> <200301112342.h0BNgj9a048596@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301112342.h0BNgj9a048596@apollo.backplane.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jan 11, 2003 at 03:42:45PM -0800, Matthew Dillon wrote: > > This is basically how shared memory works, except that shared memory > is managed outside the file descriptor framework. I would love to > see a shared memory object that is managed inside the file > descriptor framework, sort of like 'pipe()'. I do not see any need > to use /dev/zero to implement the feature, though, because it will > not improve portability. > > How about something like: > > getmemfd(). Hugetlbfs that was recently introduced in Linux uses a similar fd based mechanism to implement shared memory. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message