NetBSD/sys
ad c743ad7159 File descriptor changes, discussed on tech-kern:
- Redo reference counting to be sane.  LWPs accessing files take a short
  term reference on the local file descriptor.  This is the most common
  case.  While a file is in a process descriptor table, a reference is
  held to the file.  The file reference count only changes during control
  operations like open() or close().  Code that comes at files from an
  unusual direction (i.e. foreign to the process) like procfs or sysctl
  takes a reference on the file (f_count), and not on a descriptor.

- Remove knowledge of reference counting and locking from most code that
  deals with files.

- Make the usual case of file descriptor lookup lockless.

- Make kqueue MP and MT safe. PR kern/38098, PR kern/38137.

- Fix numerous file handling bugs, and bugs in the descriptor code that
  affected multithreaded processes.

- Split descriptor system calls out into sys_descrip.c.

- A few stylistic changes: KNF, remove unused casts now that caddr_t is
  gone. Replace dumb gotos with loop control in a few places.

- Don't do redundant pointer passing (struct proc, lwp, filedesc *) unless
  the routine is likely to be inlined.  Most of the time it's about the
  current process.
2008-03-21 21:53:35 +00:00
..
altq Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants, 2008-01-20 18:09:03 +00:00
arch Split device_t/softc for ichlpcib(4) and all hpet consumers, plus 2008-03-21 13:25:27 +00:00
coda when queueing a message back to Venus, prioritise signals by inserting 2008-03-21 18:02:39 +00:00
compat v_interlock is a kmutex_t now, simple_lock() -> mutex_enter(). 2008-03-07 00:03:39 +00:00
conf Add a 'maxcpus' global. 2008-03-15 14:55:22 +00:00
contrib/dev/ath Use BUILDSYMLINKS from <bsd.files.mk> instead of custom copy rules 2008-01-17 01:13:01 +00:00
crypto use __KERNEL_RCSID() 2007-12-11 23:31:07 +00:00
ddb Fix help string for "w" - it is "write" not "watch". 2008-02-21 02:07:45 +00:00
dev use devsw_name2chr() to look up the major number of the midi device as 2008-03-21 19:33:24 +00:00
dist Welcome to 4.99.55: 2008-03-01 14:16:49 +00:00
fs Welcome to 4.99.55: 2008-03-01 14:16:49 +00:00
gdbscripts +cpus 2008-02-20 21:01:23 +00:00
ipkdb Improve chances of having this file compiled. 2007-11-24 14:20:41 +00:00
kern File descriptor changes, discussed on tech-kern: 2008-03-21 21:53:35 +00:00
lib when the char being searched for is not found strchr() must return NULL 2008-03-21 10:24:13 +00:00
lkm MKMAN does not belong in source makefiles. Use NOMAN. 2008-03-10 01:22:05 +00:00
miscfs sprinkle KERNEL_LOCK for socket. 2008-02-11 23:53:32 +00:00
modules Add an example on how to handle the incoming properties during module load. 2008-03-02 11:19:30 +00:00
net whitespace '\t' -> ' ' 2008-03-15 11:45:18 +00:00
net80211 s/MUTEX_DRIVER/MUTEX_DEFAULT/ 2008-02-13 16:04:03 +00:00
netatalk Make one call to rtcache_lookup() out of calls to rtcache_setdst() 2008-01-28 18:28:31 +00:00
netbt move the updating of num_cmd_pkts to its own function, mostly so that 2008-03-17 09:16:17 +00:00
netinet Set scope on IPv6 multicast address to give carp a chance to work for IPv6, too. 2008-03-15 16:44:03 +00:00
netinet6 Use ip6_clearpktopts() to destroy the IPv6 PCB's in6p_outputopts, 2008-03-20 20:32:00 +00:00
netipsec Fix build of FAST_IPSEC after the change of ip_newid prototype 2008-02-10 21:42:20 +00:00
netisdn Add missing ';' to fix a compile error, which was introduced in the 2008-03-01 18:59:45 +00:00
netiso Don't lock the socket to set/clear FNONBLOCK. Just set it atomically. 2008-02-06 21:57:53 +00:00
netkey s/DIGAGNOSTIC/DIAGNOSTIC/ 2008-01-13 10:45:19 +00:00
netnatm Use struct initializers. No functional change. 2007-12-07 19:46:18 +00:00
netsmb selclear() while exiting netsmb's custom copy of select(). PR kern/38123. 2008-03-05 18:09:57 +00:00
nfs desupport link/unlink of directories. noted by Elad Efrat. 2008-03-08 08:03:46 +00:00
opencrypto From Darran Hunt: you can't just specify the "wrong" underlying algorithm 2008-02-28 09:29:10 +00:00
rump Add lwp_unsleep from kern/kern_lwp.c so that this builds. ok ad@ 2008-03-19 00:40:34 +00:00
secmodel Remove include of sys/pset.h in sys/lwp.h header. 2008-03-09 15:39:14 +00:00
stand
sys File descriptor changes, discussed on tech-kern: 2008-03-21 21:53:35 +00:00
ufs Make MFS MP-safe. Needed because of the funny tricks it plays. 2008-02-21 14:10:57 +00:00
uvm Swap sysctl -d description of vm.filemin and vm.execmin. Noted by 2008-03-07 08:44:51 +00:00
Makefile