Scroll to navigation

SKB_TO_SGVEC(9) Linux Networking SKB_TO_SGVEC(9)

NAME

skb_to_sgvec - Fill a scatter-gather list from a socket buffer

SYNOPSIS

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

DESCRIPTION

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.

COPYRIGHT

April 2019 Kernel Hackers Manual 4.9.