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

Function unp_shutdown

freebsd/kern/uipc_usrreq.c:1945–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1943 "List of active local seqpacket sockets");
1944
1945static void
1946unp_shutdown(struct unpcb *unp)
1947{
1948 struct unpcb *unp2;
1949 struct socket *so;
1950
1951 UNP_PCB_LOCK_ASSERT(unp);
1952
1953 unp2 = unp->unp_conn;
1954 if ((unp->unp_socket->so_type == SOCK_STREAM ||
1955 (unp->unp_socket->so_type == SOCK_SEQPACKET)) && unp2 != NULL) {
1956 so = unp2->unp_socket;
1957 if (so != NULL)
1958 socantrcvmore(so);
1959 }
1960}
1961
1962static void
1963unp_drop(struct unpcb *unp)

Callers 2

uipc_sendFunction · 0.85
uipc_shutdownFunction · 0.85

Calls 1

socantrcvmoreFunction · 0.85

Tested by

no test coverage detected