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

Function sbtoxsockbuf

freebsd/kern/uipc_sockbuf.c:1779–1792  ·  view source on GitHub ↗

* This does the same for socket buffers that sotoxsocket does for sockets: * generate an user-format data structure describing the socket buffer. Note * that the xsockbuf structure, since it is always embedded in a socket, does * not include a self pointer nor a length. We make this entry point public * in case some other mechanism needs it. */

Source from the content-addressed store, hash-verified

1777 * in case some other mechanism needs it.
1778 */
1779void
1780sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb)
1781{
1782
1783 xsb->sb_cc = sb->sb_ccc;
1784 xsb->sb_hiwat = sb->sb_hiwat;
1785 xsb->sb_mbcnt = sb->sb_mbcnt;
1786 xsb->sb_mcnt = sb->sb_mcnt;
1787 xsb->sb_ccnt = sb->sb_ccnt;
1788 xsb->sb_mbmax = sb->sb_mbmax;
1789 xsb->sb_lowat = sb->sb_lowat;
1790 xsb->sb_flags = sb->sb_flags;
1791 xsb->sb_timeo = sb->sb_timeo;
1792}
1793
1794/* This takes the place of kern.maxsockbuf, which moved to kern.ipc. */
1795static int dummy;

Callers 1

sotoxsocketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected