MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sodisconnect

Function sodisconnect

freebsd/kern/uipc_socket.c:1361–1373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361int
1362sodisconnect(struct socket *so)
1363{
1364 int error;
1365
1366 if ((so->so_state & SS_ISCONNECTED) == 0)
1367 return (ENOTCONN);
1368 if (so->so_state & SS_ISDISCONNECTING)
1369 return (EALREADY);
1370 VNET_SO_ASSERT(so);
1371 error = (*so->so_proto->pr_usrreqs->pru_disconnect)(so);
1372 return (error);
1373}
1374
1375#define SBLOCKWAIT(f) (((f) & MSG_DONTWAIT) ? 0 : SBL_WAIT)
1376

Callers 2

socloseFunction · 0.85
soconnectatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected