Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105893687
D15706.id43458.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
D15706.id43458.diff
View Options
Index: sys/kern/uipc_socket.c
===================================================================
--- sys/kern/uipc_socket.c
+++ sys/kern/uipc_socket.c
@@ -1101,6 +1101,8 @@
drop:
if (so->so_proto->pr_usrreqs->pru_close != NULL)
(*so->so_proto->pr_usrreqs->pru_close)(so);
+ if (so->so_dtor != NULL)
+ so->so_dtor(so);
SOCK_LOCK(so);
if ((listening = (so->so_options & SO_ACCEPTCONN))) {
Index: sys/sys/socketvar.h
===================================================================
--- sys/sys/socketvar.h
+++ sys/sys/socketvar.h
@@ -111,6 +111,7 @@
int so_ts_clock; /* type of the clock used for timestamps */
uint32_t so_max_pacing_rate; /* (f) TX rate limit in bytes/s */
+ void (*so_dtor)(struct socket *so); /* (a) optional destructor */
union {
/* Regular (data flow) socket. */
struct {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 6:01 AM (2 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15567520
Default Alt Text
D15706.id43458.diff (822 B)
Attached To
Mode
D15706: socket: introduction of destructor callback
Attached
Detach File
Event Timeline
Log In to Comment