freebsd-nq/sys/netatalk
Robert Watson a152f8a361 Change semantics of socket close and detach. Add a new protocol switch
function, pru_close, to notify protocols that the file descriptor or
other consumer of a socket is closing the socket.  pru_abort is now a
notification of close also, and no longer detaches.  pru_detach is no
longer used to notify of close, and will be called during socket
tear-down by sofree() when all references to a socket evaporate after
an earlier call to abort or close the socket.  This means detach is now
an unconditional teardown of a socket, whereas previously sockets could
persist after detach of the protocol retained a reference.

This faciliates sharing mutexes between layers of the network stack as
the mutex is required during the checking and removal of references at
the head of sofree().  With this change, pru_detach can now assume that
the mutex will no longer be required by the socket layer after
completion, whereas before this was not necessarily true.

Reviewed by:	gnn
2006-07-21 17:11:15 +00:00
..
aarp.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
aarp.h
at_control.c
at_extern.h
at_proto.c
at_rmx.c
at_var.h
at.h
COPYRIGHT Update global copyright statement for netatalk, as I claim copyright 2006-06-08 22:13:52 +00:00
ddp_input.c
ddp_output.c
ddp_pcb.c Modify netatalk to ensure, and assert, that pcb's remain attached to 2006-03-17 20:40:17 +00:00
ddp_pcb.h
ddp_usrreq.c Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
ddp_var.h
ddp.h
endian.h
phase2.h