Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2001 10:15:06 -0400 (EDT)
From:      Robert Watson <rwatson@FreeBSD.ORG>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Bruce Evans <bde@zeta.org.au>, mjacob@feral.com, Ruslan Ermilov <ru@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: DEVFS 
Message-ID:  <Pine.NEB.3.96L.1010511101259.90309H-100000@fledge.watson.org>
In-Reply-To: <81920.989570646@critter>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 May 2001, Poul-Henning Kamp wrote:

> In message <Pine.BSF.4.21.0105111832360.533-100000@besplex.bde.org>, Bruce Evan
> s writes:
> 
> >> Blame the poor design of mount(2) (and ask Adrian when he fixes
> >> it :-)
> >
> >It must be the excellent design of mount(2) that makes it so easy to
> >do things with it where it can be used :-).
> 
> Just too bad it wasn't designed so that it can be used from kernel
> processes as well :-(

I've made this observation before, of course, but it is my general
opionion that, leaving aside uio structures, awareness of "userland" data
pointers should generall be limited to the system call code rather than
the service implementation.  The existence of userland points in VFS calls
(and I've introduced one myself in the vfs_extattrctl call) is generally
evil.  It makes it much harder to initiate a service from within a kernel
thread or process, and do ABI wrapping.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" 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.1010511101259.90309H-100000>