net: update comments of "struct msghdr" with the more accurate RFC3542 ones
authorFX Le Bail <fx.lebail@yahoo.com>
Wed, 22 Jan 2014 04:39:46 +0000 (05:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 05:57:05 +0000 (21:57 -0800)
Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/socket.h

index 5d488a65ad20222b780f73838bcde6dabfa37935..8e98297f1388c80d3d5d6208c70f7c39a36e1c7f 100644 (file)
@@ -45,13 +45,13 @@ struct linger {
  */
  
 struct msghdr {
-       void    *       msg_name;       /* Socket name                  */
-       int             msg_namelen;    /* Length of name               */
-       struct iovec *  msg_iov;        /* Data blocks                  */
-       __kernel_size_t msg_iovlen;     /* Number of blocks             */
-       void    *       msg_control;    /* Per protocol magic (eg BSD file descriptor passing) */
-       __kernel_size_t msg_controllen; /* Length of cmsg list */
-       unsigned int    msg_flags;
+       void            *msg_name;      /* ptr to socket address structure */
+       int             msg_namelen;    /* size of socket address structure */
+       struct iovec    *msg_iov;       /* scatter/gather array */
+       __kernel_size_t msg_iovlen;     /* # elements in msg_iov */
+       void            *msg_control;   /* ancillary data */
+       __kernel_size_t msg_controllen; /* ancillary data buffer length */
+       unsigned int    msg_flags;      /* flags on received message */
 };
 
 /* For recvmmsg/sendmmsg */