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

Function sosend

freebsd/kern/uipc_socket.c:1804–1821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802}
1803
1804int
1805sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
1806 struct mbuf *top, struct mbuf *control, int flags, struct thread *td)
1807{
1808 int error;
1809
1810 CURVNET_SET(so->so_vnet);
1811 if (!SOLISTENING(so))
1812 error = so->so_proto->pr_usrreqs->pru_sosend(so, addr, uio,
1813 top, control, flags, td);
1814 else {
1815 m_freem(top);
1816 m_freem(control);
1817 error = ENOTCONN;
1818 }
1819 CURVNET_RESTORE();
1820 return (error);
1821}
1822
1823/*
1824 * The part of soreceive() that implements reading non-inline out-of-band

Callers 4

kern_senditFunction · 0.85
soo_writeFunction · 0.85
soaio_process_jobFunction · 0.85
ng_ksocket_rcvdataFunction · 0.85

Calls 1

m_freemFunction · 0.70

Tested by

no test coverage detected