diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-03-26 17:05:09 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-03-26 17:05:09 +0000 |
commit | b6cc16f9a0d30b54f6be4b2f7b7b6b38686a2f3c (patch) | |
tree | bf2139fec6569333e181a798c3a3a0391bc84fbc /sys/kern/uipc_sockbuf.c | |
parent | 359932b59233a3579a9815d7a1bca842ba8fdf5c (diff) | |
download | FreeBSD-src-b6cc16f9a0d30b54f6be4b2f7b7b6b38686a2f3c.zip FreeBSD-src-b6cc16f9a0d30b54f6be4b2f7b7b6b38686a2f3c.tar.gz |
Following movement of functions from uipc_socket2.c to uipc_socket.c and
uipc_sockbuf.c, clean up and update comments.
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r-- | sys/kern/uipc_sockbuf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 2293eef..381632c 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -980,8 +980,8 @@ sbdroprecord(struct sockbuf *sb) } /* - * Create a "control" mbuf containing the specified data - * with the specified type for presentation on a socket buffer. + * Create a "control" mbuf containing the specified data with the specified + * type for presentation on a socket buffer. */ struct mbuf * sbcreatecontrol(p, size, type, level) @@ -1014,10 +1014,11 @@ sbcreatecontrol(p, size, type, level) } /* - * This does the same for sockbufs. 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. + * 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. */ void sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) |