From owner-freebsd-arch Mon Jan 13 20:15:21 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 3BC9437B401 for ; Mon, 13 Jan 2003 20:15:20 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7A7743EB2 for ; Mon, 13 Jan 2003 20:15:19 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.6/8.12.6) with ESMTP id h0E4FE0i078073; Mon, 13 Jan 2003 20:15:14 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.6/8.12.6/Submit) id h0E4FEuJ078072; Mon, 13 Jan 2003 20:15:14 -0800 (PST) Date: Mon, 13 Jan 2003 20:15:14 -0800 (PST) From: Matthew Dillon Message-Id: <200301140415.h0E4FEuJ078072@apollo.backplane.com> To: "Alan L. Cox" Cc: Peter Wemm , arch@FreeBSD.ORG Subject: Re: Virtual memory question References: <20030114002831.1C8C12A89E@canning.wemm.org> <3E2381F8.85BB90A0@imimic.com> <200301140339.h0E3dVQa073160@apollo.backplane.com> <3E238DEF.14DFA7E1@imimic.com> 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 :I'm happy with the NULL path as an extension to this interface. : :> (2) I don't see how/where one specifies the size of the memory object :> in shm_open(). Does this mean we have to implement ftruncate()? : :I think the size is implied by the mmap()ing. A second, larger :mmap()ing would have to grow the object. An object should never shrink. : :Regards, :Alan "Ick". But it would be extremely easy to implement that sort of auto-grow. I'll read up on the shm_open() spec. Personally speaking I'd like an explicit size to be specified during the open/creation phase. It occurs to me that we could use this to implement far better MFS / MD support then we have now. Hrmmm. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message