~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to net/socket.c

  • Committer: Bazaar Package Importer
  • Author(s): John Rigby, John Rigby
  • Date: 2011-01-08 18:34:41 UTC
  • Revision ID: james.westby@ubuntu.com-20110108183441-002wttt2gz2sah4b
Tags: 2.6.37-1002.5
[ John Rigby ]

* rebase to new upstreams: 
  v2.6.37 final
  Ubuntu-2.6.37-12.28
* Clean up lintian errors and warnings
  - LP: #697317

Show diffs side-by-side

added added

removed removed

Lines of Context:
732
732
        return ret;
733
733
}
734
734
 
 
735
/**
 
736
 * kernel_recvmsg - Receive a message from a socket (kernel space)
 
737
 * @sock:       The socket to receive the message from
 
738
 * @msg:        Received message
 
739
 * @vec:        Input s/g array for message data
 
740
 * @num:        Size of input s/g array
 
741
 * @size:       Number of bytes to read
 
742
 * @flags:      Message flags (MSG_DONTWAIT, etc...)
 
743
 *
 
744
 * On return the msg structure contains the scatter/gather array passed in the
 
745
 * vec argument. The array is modified so that it consists of the unfilled
 
746
 * portion of the original array.
 
747
 *
 
748
 * The returned value is the total number of bytes received, or an error.
 
749
 */
735
750
int kernel_recvmsg(struct socket *sock, struct msghdr *msg,
736
751
                   struct kvec *vec, size_t num, size_t size, int flags)
737
752
{