kernel_recvmsg(9)

kernel_recvmsg9

Receive a message from a socket (kernel space)

Usage

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

Arguments

sock

The socket to receive the message from

msg

Received message

vec

Input s/g array for message data

num

Size of input s/g array

size

Number of bytes to read

flags

Message flags (MSG_DONTWAIT, etc...)

Overview

On return the msg structure contains the scatter/gather array passed in the vec argument. The array is modified so that it consists of the unfilled portion of the original array.

The returned value is the total number of bytes received, or an error.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.