Date: Tue, 05 Sep 2000 23:41:48 +0200 From: Poul-Henning Kamp <phk@freebsd.org> To: current@freebsd.org Subject: DEVFS patch. Message-ID: <61427.968190108@critter>
next in thread | raw e-mail | index | archive | help
OK, here is the nasty bit of DEVFS: The locking and protection patch: http://phk.freebsd.dk/patch/devfs.patch ---------------------- Add support for an overflow table for DEVFS inodes. The static table defaults to 1024 inodes, if that fills, an overflow table of 32k inodes is allocated. Both numbers can be changed at compile time, the size of the overflow table also with the sysctl vfs.devfs.noverflow. Use atomic instructions to barrier between make_dev()/destroy_dev() and the mounts. Add lockmgr() locking of directories for operations accessing or modifying the directory TAILQs. Various nitpicking here and there. The patch to i386/include/atomic.h is taken from SMPng to which I added atomic_cmpset_ptr(). ---------------------- With this patch DEVFS has the features and properties it should have with respect to the "main mount". -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. 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?61427.968190108>