Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2000 17:25:02 -0400 (EDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl>, Luoqi Chen <luoqi@watermarkgroup.com>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/sys Makefile.inc 
Message-ID:  <Pine.NEB.3.96L.1000731171952.65225A-100000@fledge.watson.org>
In-Reply-To: <200007312117.OAA66719@netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 31 Jul 2000, Peter Wemm wrote:

> I would prefer that we changed all the syscall entry points to have sys_
> prefixes. I know NetBSD has done this but I don't know their particular
> reasons.  One thing though - it makes it more obvious what is callable from
> ddb and what is not.  eg: 'call sync' looks harmless but will die because
> the syscall context is not present.  'call sys_sync' is obviously wrong.
> We could provide a real ddb-callable sync() function for ddb.

Actually, one strong reason to do this would be providing a stronger
distinction between the "service" and "ABI" layers of the kernel.  Right
now, much of the semantics of a syscall are provided directly in the
syscall code, which can provide some inconvenience from the perspective of
emulation.  I.e., 

       Linux ABI
       |       |
 FreeBSD ABI   | 
       |       |
   Subsystem (sockets, VFS, etc)

Some calls go via the FreeBSD ABI -- others go directly to the service.
This makes a mess of service authorization, etc.  I'd rather see:

  Linux ABI       FreeBSD ABI
      |                |
       Service Interface
              |
 Subsystem (wsockets, VFS, etc)

All authorization/permission checking would occur in the service
interface, as well as auditing, and so on.  This would also make it easier
to move in the direction of the "common BSD ABI" referred to at USENIX.

  Robert N M Watson 

robert@fledge.watson.org              http://www.watson.org/~robert/
PGP key fingerprint: AF B5 5F FF A6 4A 79 37  ED 5F 55 E9 58 04 6A B1
TIS Labs at Network Associates, Safeport Network Services



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1000731171952.65225A-100000>