NetBSD/sys/miscfs
thorpej 80cc38a1af Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.
2001-06-14 20:32:41 +00:00
..
deadfs make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const 2001-01-22 12:17:35 +00:00
fdesc Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
fifofs convert to ansi knf 2001-02-27 19:52:21 +00:00
genfs be sure to allocate dirty zeroed pages to cover blocks we allocate 2001-06-14 08:22:14 +00:00
kernfs let kernfs_mmap() use the default error method. 2001-06-03 02:23:31 +00:00
nullfs Some more corrections by Michael K. Sanders. 2001-06-09 11:02:08 +00:00
overlay Some more corrections by Michael K. Sanders. 2001-06-09 11:02:08 +00:00
portal let portalfs_mmap() use the default error method. 2001-06-03 02:22:40 +00:00
procfs procfs_bmap() should never be called, make it a "bad op". 2001-06-03 02:21:35 +00:00
specfs Don't hold vp->v_interlock when calling vcount(); vcount() calls 2001-04-17 18:49:26 +00:00
syncfs make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const 2001-01-22 12:17:35 +00:00
umapfs Typos and grammer fixes in comments (misc/13133 by Michael K. Sanders) 2001-06-07 13:44:46 +00:00
union replace vm_page_t with struct vm_page *. 2001-05-26 21:27:10 +00:00
Makefile Add overlay, a layered file system which overlays itself on 2000-01-20 19:06:13 +00:00