freebsd-dev/sys/netatm
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
..
ipatm Convert to ANSI C function declarations. 2006-01-22 01:07:11 +00:00
sigpvc /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
spans Stop embedding struct ifnet at the top of driver softcs. Instead the 2005-06-10 16:49:24 +00:00
uni don't assume char is signed 2005-12-21 00:19:08 +00:00
atm_aal5.c Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
atm_cm.c Push the assignment of a new or updated so_qlimit from solisten() 2005-10-30 19:44:40 +00:00
atm_cm.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_device.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_if.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
atm_if.h Stop embedding struct ifnet at the top of driver softcs. Instead the 2005-06-10 16:49:24 +00:00
atm_ioctl.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_pcb.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_proto.c Change protocol switch pru_abort() API so that it returns void rather 2006-04-01 15:15:05 +00:00
atm_sap.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_sigmgr.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_signal.c Convert function declarations to ANSI C. 2006-01-22 01:04:05 +00:00
atm_socket.c Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
atm_stack.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_subr.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm_sys.h Try to unbreak the tinderbox: Cast a time_t argument to long before printing 2005-12-27 12:33:18 +00:00
atm_usrreq.c Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
atm_var.h Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
atm_vc.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
atm.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
port.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
queue.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00