Subject: Re: FreeBSD's /dev on NetBSD
To: Hans Petter Selasky <hselasky@c2i.net>
From: Tonnerre <tonnerre@thundrix.ch>
List: tech-kern
Date: 08/13/2005 14:25:04
--MW5yreqqjyrRcusr
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Salut,

On Sat, Aug 13, 2005 at 03:45:03AM +0200, Hans Petter Selasky wrote:
> I'm working on porting a driver from FreeBSD to NetBSD and have found the=
=20
> kernel API for creating devices in /dev/ very difficult to use.
>=20
> I want to be able to clone, create and delete devices. Therefore I want t=
o=20
> implement a file system similar to FreeBSD's "devfs".

Doesn't everyone want to get rid of that?

Anyway, you just get a major number, and then you can do with your
cdevsw/bdevsw whatever you want - just copy/insert/delete/clone devices
as you like, and have them everywhere.

				Tonnerre

--MW5yreqqjyrRcusr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFC/eagXUVlAbfmNMIRAoNRAJ0SliRQr6vbJIUODdI4aH/NV3+BngCgv7Et
hqbHrlkU7KziZiKG847jLNA=
=APQG
-----END PGP SIGNATURE-----

--MW5yreqqjyrRcusr--