From owner-freebsd-arch Tue Jan 21 10: 6:42 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 0CA7537B401; Tue, 21 Jan 2003 10:06:41 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8D3F43E4A; Tue, 21 Jan 2003 10:06:40 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 956922A7EA; Tue, 21 Jan 2003 10:06:40 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: phk@freebsd.org Cc: Robert Watson , Matthew Dillon , Terry Lambert , "Alan L. Cox" , arch@freebsd.org Subject: Re: getsysfd() patch #1 (Re: Virtual memory question) In-Reply-To: <3077.1042730640@critter.freebsd.dk> Date: Tue, 21 Jan 2003 10:06:40 -0800 From: Peter Wemm Message-Id: <20030121180640.956922A7EA@canning.wemm.org> 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 phk@freebsd.org wrote: > In message , Ro be > rt Watson writes: > > > >On Wed, 15 Jan 2003, Matthew Dillon wrote: > > > >> I think we've established the usefulness of a VM Object descriptor. N ow > >> what about the system call API? At the moment I have: > > > >Since we appear to be building a new API and IPC semantic from the ground > >up, I think it would be worthwhile to look at some of the other weird, > >wonderful, or perhaps just bizarre, things that others have done in the > >past. > > I would like to see it being developed, tested, benchmarked and find > at least one application before we add YAIPC to FreeBSD's sources... Also, I think the proposed API where this stuff is overloaded into a single syscall is a bad idea, *especially* when we have millions of syscalls available. Personally, I'd prefer a simpler: #include int fd = memfd(off_t size); type API, and if a compelling need for the timer stuff (or whatever) turns up, then create the correct syscalls for those. I dont much care if they use a single common DTYPE_SYSFD file type or something, but please lets not paint ourselves into a corner like what happened with semsys(), msgsys(), etc. We're still paying for that syscall overloading mistake and still have not recovered from it. 5.0-RELEASE still tries to use them.. check out all the nasty code in libc for it (and on the other platforms). I'm not saying the timer stuff isn't needed, just that it should be exposed to userland seperately with the correct (to be determined for timers) API. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message