]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add SS_PROTOREF socket flag, which represents a strong reference by the
authorRobert Watson <rwatson@FreeBSD.org>
Wed, 15 Mar 2006 12:30:06 +0000 (12:30 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Wed, 15 Mar 2006 12:30:06 +0000 (12:30 +0000)
commit5d511d26c30307f19b8c56c8600edec254088bec
treed01babb1d0b3c9b31f290ea5a2eaeee23dabcfcb
parent897c6f17c934908790e6a189e088086c8fc5f0f6
Add SS_PROTOREF socket flag, which represents a strong reference by the
protocol to the socket.  Normally protocol references are weak: that is,
the socket layer can tear down the socket (and hence protocol state)
when it finds convenient.  This flag will allow the protocol to
explicitly declare to the socket layer that it is maintaining a
strong reference, rather than the current implicit model associated
with so_pcb pointer values and repeated attempts to possibly free the
socket.
sys/sys/socketvar.h