13ccadd4b0
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 |
||
---|---|---|
.. | ||
imgact_linux.c | ||
linux_dummy.c | ||
linux_file.c | ||
linux_genassym.c | ||
linux_ioctl.c | ||
linux_ipc.c | ||
linux_locore.s | ||
linux_mib.c | ||
linux_mib.h | ||
linux_misc.c | ||
linux_proto.h | ||
linux_signal.c | ||
linux_socket.c | ||
linux_stats.c | ||
linux_syscall.h | ||
linux_sysent.c | ||
linux_sysvec.c | ||
linux_util.c | ||
linux_util.h | ||
linux.h | ||
Makefile | ||
syscalls.conf | ||
syscalls.master |