---
name: "skb_copy_bits"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_copy_bits"
---

# skb\_copy\_bits(9)

copy bits from skb to kernel buffer

## NAME

skb\_copy\_bits - copy bits from skb to kernel buffer

## SYNOPSIS

**int skb\_copy\_bits(const struct sk\_buff \*** *skb***, int** *offset***, void \*** *to***, int** *len***);**

## ARGUMENTS

*skb*

source skb

*offset*

offset in source

*to*

destination buffer

*len*

number of bytes to copy

## DESCRIPTION

Copy the specified number of bytes from the source skb to the destination buffer.

CAUTION ! : If its prototype is ever changed, check arch/{\*}/net/{\*}.S files, since it is called from BPF assembly code.

## COPYRIGHT
