---
name: "dev_change_xdp_fd"
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/dev_change_xdp_fd"
---

# dev\_change\_xdp\_fd(9)

set or clear a bpf program for a device rx path

## NAME

dev\_change\_xdp\_fd - set or clear a bpf program for a device rx path

## SYNOPSIS

**int dev\_change\_xdp\_fd(struct net\_device \*** *dev***, int** *fd***);**

## ARGUMENTS

*dev*

device

*fd*

new program fd or negative value to clear

## DESCRIPTION

Set or clear a bpf program for a device

## COPYRIGHT
