1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00
freebsd/sys/fs
Poul-Henning Kamp cd690b60de Device megapatch 6/6:
This is what we came here for:  Hang dev_t's from their cdevsw,
refcount cdevsw and dev_t and generally keep track of things a lot
better than we used to:

Hold a cdevsw reference around all entrances into the device driver,
this will be necessary to safely determine when we can unload driver
code.

Hold a dev_t reference while the device is open.

KASSERT that we do not enter the driver on a non-referenced dev_t.

Remove old D_NAG code, anonymous dev_t's are not a problem now.

When destroy_dev() is called on a referenced dev_t, move it to
dead_cdevsw's list.  When the refcount drops, free it.

Check that cdevsw->d_version is correct.  If not, set all methods
to the dead_*() methods to prevent entrance into driver.  Print
warning on console to this effect.  The device driver may still
explode if it is also incompatible with newbus, but in that case
we probably didn't get this far in the first place.
2004-02-21 21:57:26 +00:00
..
cd9660 Spell magic '16' number as IO_SEQSHIFT. 2004-01-19 20:03:43 +00:00
coda Device megapatch 5/6: 2004-02-21 21:32:15 +00:00
deadfs
devfs Report the correct length for symlink entries. 2004-02-19 19:09:52 +00:00
fdescfs Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
fifofs Use "fip->fi_readers == 0 && fip->fi_writers == 0" as the condition for 2003-11-16 01:11:11 +00:00
hpfs DuH! 2003-10-18 14:10:28 +00:00
msdosfs Use size_t or ssize_t wherever appropriate instead of casting from int * 2004-02-19 09:56:58 +00:00
ntfs Avoid sign extension when casting signed characters to unsigned wide 2003-12-16 01:52:54 +00:00
nullfs Don't try to unlock the directory vnode in null_lookup() if the lock is 2004-01-11 23:44:32 +00:00
nwfs Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
portalfs
procfs Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
pseudofs Fix a panic in pseudofs(9) that could occur when doing an I/O 2004-02-10 21:06:47 +00:00
smbfs Fixes problems that occurred when a file was removed and a directory 2004-02-10 05:53:02 +00:00
specfs Device megapatch 6/6: 2004-02-21 21:57:26 +00:00
udf Re-arrange and consolidate some random debugging stuff 2003-12-07 05:04:49 +00:00
umapfs
unionfs Do not allow operations which cause known file-system corruption. 2004-01-16 22:55:25 +00:00