Add a comment describing SS_PROTOREF in detail. This will eventually be
in socket(9). MFC after: 3 months
This commit is contained in:
parent
7f689de232
commit
c43a4e8a83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157360
@ -208,6 +208,13 @@ extern struct mtx accept_mtx;
|
||||
#define SS_ASYNC 0x0200 /* async i/o notify */
|
||||
#define SS_ISCONFIRMING 0x0400 /* deciding to accept connection req */
|
||||
#define SS_ISDISCONNECTED 0x2000 /* socket disconnected from peer */
|
||||
/*
|
||||
* Protocols can mark a socket as SS_PROTOREF to indicate that, following
|
||||
* pru_detach, they still want the socket to persist, and will free it
|
||||
* themselves when they are done. Protocols should only ever call sofree()
|
||||
* following setting this flag in pru_detach(), and never otherwise, as
|
||||
* sofree() bypasses socket reference counting.
|
||||
*/
|
||||
#define SS_PROTOREF 0x4000 /* strong protocol reference */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user