skb_to_sgvec(9)

skb_to_sgvec9

Fill a scatter-gather list from a socket buffer

Usage

int skb_to_sgvec(struct sk_buff * skb, struct scatterlist * sg, int offset, int len);

Arguments

skb

Socket buffer containing the buffers to be mapped

sg

The scatter-gather list to map into

offset

The offset into the buffer's contents to start mapping

len

Length of buffer space to be mapped

Overview

Fill the specified scatter-gather list with mappings/pointers into a region of the buffer space attached to a socket buffer. Returns either the number of scatterlist items used, or -EMSGSIZE if the contents could not fit.

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