freebsd-nq/sys
Robert Watson bc725eafc7 Chance protocol switch method pru_detach() so that it returns void
rather than an error.  Detaches do not "fail", they other occur or
the protocol flags SS_PROTOREF to take ownership of the socket.

soclose() no longer looks at so_pcb to see if it's NULL, relying
entirely on the protocol to decide whether it's time to free the
socket or not using SS_PROTOREF.  so_pcb is now entirely owned and
managed by the protocol code.  Likewise, no longer test so_pcb in
other socket functions, such as soreceive(), which have no business
digging into protocol internals.

Protocol detach routines no longer try to free the socket on detach,
this is performed in the socket code if the protocol permits it.

In rts_detach(), no longer test for rp != NULL in detach, and
likewise in other protocols that don't permit a NULL so_pcb, reduce
the incidence of testing for it during detach.

netinet and netinet6 are not fully updated to this change, which
will be in an upcoming commit.  In their current state they may leak
memory or panic.

MFC after:	3 months
2006-04-01 15:42:02 +00:00
..
alpha Use the read_cycle_count() function recently added for cpu_ticks() for 2006-03-28 21:20:12 +00:00
amd64 Add kbdmux(4) to GENERIC on amd64 2006-03-31 23:04:48 +00:00
arm Implement pmap_object_init_pt() the way it is on sparc64/alpha, by doing 2006-03-26 22:03:43 +00:00
boot Remove the USB keyboard hack now that KBDMUX is enabled by default. Allow 2006-03-31 21:36:17 +00:00
bsm Update src/sys/bsm for OpenBSM 1.0 alpha 5 changes: 2006-03-04 16:54:21 +00:00
cam Add reference to PR to TOSHIBA TransMemory quirk entry. 2006-03-18 21:13:14 +00:00
coda CODA_COMPAT_5 may not be defined unconditionally in the coda5 module. 2006-02-27 12:04:13 +00:00
compat Annotate uses of fgetsock() with indications that they should rely 2006-04-01 15:25:01 +00:00
conf Add the MacIO attachment for scc(4). 2006-04-01 04:53:08 +00:00
contrib Loopback pf_norm.c rev. 1.106 from OpenBSD: 2006-03-25 21:15:25 +00:00
crypto
ddb Clean up the way we handle auxiliary commands for a given ddb command 2006-03-07 22:17:06 +00:00
dev Fix some of the previus changes 'better'. 2006-04-01 07:12:18 +00:00
doc
fs - Add a bogus vhold/vdrop around vgone() in devfs_revoke. Without this 2006-03-31 23:37:29 +00:00
gdb add support for copying console messages to a remote gdb 2006-03-23 23:06:14 +00:00
geom Revert previous change, as I fixed MD5(9). 2006-03-30 18:50:00 +00:00
gnu Update a DB_SET to DB_FUNC I missed yesterday. 2006-03-08 15:47:48 +00:00
i4b Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
i386 Add kbdmux(4) to GENERIC 2006-03-31 19:03:37 +00:00
ia64 Close some races between procfs/ptrace and exit(2): 2006-02-22 18:57:50 +00:00
isa Committed the xbox syscons(8)-able console driver. 2006-03-03 14:52:57 +00:00
isofs/cd9660 When encountering a ISO_SUSP_CFLAG_ROOT element in Rock Ridge 2006-03-13 22:32:33 +00:00
kern Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
libkern Convert function declarations to ANSI C. 2006-01-22 00:46:40 +00:00
modules Build the scc(4) module with EBus and SBus attachments for sparc64 2006-04-01 04:54:47 +00:00
net Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
net80211 implement set(IEEE80211_IOC_STA_STATS) for hostapd; for 2006-03-27 05:22:35 +00:00
netatalk Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netatm Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netgraph Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netinet Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netinet6 Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netipsec Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netipx Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netkey Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netnatm Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netncp In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error' 2006-01-14 11:40:32 +00:00
netsmb Retire NETSMBCRYPTO as a kernel option and make its functionality 2006-03-05 22:52:17 +00:00
nfs
nfs4client Use nfs4_disconnect for connections opened with nfs4_connect. 2006-01-19 22:48:31 +00:00
nfsclient - Busy the filesystem in nfs_statfs to prevent us from creating a new 2006-04-01 01:15:23 +00:00
nfsserver - Release the references acquired by VOP_GETWRITEMOUNT and vfs_getvfs(). 2006-03-31 03:54:20 +00:00
opencrypto Fix memory leak which occurs when crypto.ko module is unloaded. 2006-03-28 08:33:30 +00:00
pc98 Don't allow userland to set hardware watch points on kernel memory at all. 2006-03-14 16:13:55 +00:00
pccard I don't believe these are used at all, and can be safely removed 2006-01-15 06:49:28 +00:00
pci Add support for RTL8111B chip, that can be found on some mainboards, 2006-03-22 07:33:03 +00:00
posix4 mqueue.h has been superceded by sys/mqueue.h thanks to David Xu's work. 2005-11-28 02:58:30 +00:00
powerpc Add a dummy implementation of bus_space_map(). 2006-03-31 01:39:50 +00:00
rpc Fix up some cut-n-paste damage and some out-of-date comments. 2006-01-20 15:20:41 +00:00
security Don't call vn_finished_write() if vn_start_write() failed. 2006-03-19 20:43:07 +00:00
sparc64 Add scc(4). 2006-03-30 18:40:25 +00:00
sys Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
tools Fix a leftover "iwi_boot" string. 2006-01-30 16:32:08 +00:00
ufs - Release the references acquired by VOP_GETWRITEMOUNT and vfs_getvfs(). 2006-03-31 03:54:20 +00:00
vm MFP4: Support for profiling dynamically loaded objects. 2006-03-26 12:20:54 +00:00
Makefile Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00