1KERNEL_RECVMSG(9)              Linux Networking              KERNEL_RECVMSG(9)
2
3
4

NAME

6       kernel_recvmsg - Receive a message from a socket (kernel space)
7

SYNOPSIS

9       int kernel_recvmsg(struct socket * sock, struct msghdr * msg,
10                          struct kvec * vec, size_t num, size_t size,
11                          int flags);
12

ARGUMENTS

14       sock
15           The socket to receive the message from
16
17       msg
18           Received message
19
20       vec
21           Input s/g array for message data
22
23       num
24           Size of input s/g array
25
26       size
27           Number of bytes to read
28
29       flags
30           Message flags (MSG_DONTWAIT, etc...)
31

DESCRIPTION

33       On return the msg structure contains the scatter/gather array passed in
34       the vec argument. The array is modified so that it consists of the
35       unfilled portion of the original array.
36
37       The returned value is the total number of bytes received, or an error.
38
40Kernel Hackers Manual 3.10         June 2019                 KERNEL_RECVMSG(9)
Impressum