freebsd-nq/sys/i386
Brian Feldman 13ccadd4b0 This is what was "fdfix2.patch," a fix for fd sharing. It's pretty
far-reaching in fd-land, so you'll want to consult the code for
changes.  The biggest change is that now, you don't use
	fp->f_ops->fo_foo(fp, bar)
but instead
	fo_foo(fp, bar),
which increments and decrements the fp refcount upon entry and exit.
Two new calls, fhold() and fdrop(), are provided.  Each does what it
seems like it should, and if fdrop() brings the refcount to zero, the
fd is freed as well.

Thanks to peter ("to hell with it, it looks ok to me.") for his review.
Thanks to msmith for keeping me from putting locks everywhere :)

Reviewed by:	peter
1999-09-19 17:00:25 +00:00
..
apm Handle CAPABILITIESCHANGE event. 1999-09-11 16:00:28 +00:00
bios Handle CAPABILITIESCHANGE event. 1999-09-11 16:00:28 +00:00
boot Try to win back the "removal of most crufty code" trophy from markm: 1999-09-01 11:32:52 +00:00
conf Fix disordering introduced in my previous commit. 1999-09-13 09:45:07 +00:00
eisa $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
i386 Correction: mem.c devices are "D_MEM" (and D_MEM is added.) 1999-09-12 18:48:07 +00:00
ibcs2 This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
include Make pmap_mapdev() deal with non-page-aligned requests. 1999-09-11 20:31:32 +00:00
isa Make `ed' PC-Cards work again. It has been over two weeks that laptop 1999-09-19 07:24:07 +00:00
linux This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
pci $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
svr4 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Makefile $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00