Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 1996 18:54:46 +0100 (BST)
From:      Doug Rabson <dfr@render.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        michaelh@cet.co.jp, fs@FreeBSD.org, lite2@FreeBSD.org
Subject:   Re: New d_type field in *devsw
Message-ID:  <Pine.BSF.3.95.960924185325.11343Q-100000@minnow.render.com>
In-Reply-To: <199609241719.DAA07851@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 25 Sep 1996, Bruce Evans wrote:

> >There is an existing unused field in bdevsw, d_flags which can be used to
> >identify disks and tapes for securelevel and ioctl or alternatively the
> >existing FreeBSD behaviour of calling isdisk() is still possible.  The
> >current behaviour of dead_read is probably also adequate.
> 
> >Needless to say, these hacks should be first against the wall after the
> >devfs revolution :-).
> 
> They are high quality compared with isdisk().

My current hack derives the correct value for d_flags at initialisation
time from isdisk :-).  Not ideal.

> 
> The cross pointers in the devsw's can be be used to share d_flags with
> the cdevs.  However, to use them we would have to modify a lot of
> device drivers with a temporary change.

Except for ttys which don't have a bdevsw.  Still, I think the existing
FreeBSD behaviour is almost OK there.

--
Doug Rabson, Microsoft RenderMorphics Ltd.	Mail:  dfr@render.com
						Phone: +44 171 734 3761
						FAX:   +44 171 734 6426




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.960924185325.11343Q-100000>