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

# bpf\_prog\_create\_from\_user(9)

create an unattached filter from user buffer

## NAME

bpf\_prog\_create\_from\_user - create an unattached filter from user buffer

## SYNOPSIS

**int bpf\_prog\_create\_from\_user(struct bpf\_prog \*\*** *pfp***, struct sock\_fprog \*** *fprog***, bpf\_aux\_classic\_check\_t** *trans***, bool** *save\_orig***);**

## ARGUMENTS

*pfp*

the unattached filter that is created

*fprog*

the filter program

*trans*

post-classic verifier transformation handler

*save\_orig*

save classic BPF program

## DESCRIPTION

This function effectively does the same as **bpf\_prog\_create**, only that it builds up its insns buffer from user space provided buffer. It also allows for passing a bpf\_aux\_classic\_check\_t handler.

## COPYRIGHT
