Scroll to navigation

BPF_PROG_CREATE_FROM(9) Linux Networking BPF_PROG_CREATE_FROM(9)

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

struct bpf_prog ** pfp

the unattached filter that is created

struct sock_fprog * fprog

the filter program

bpf_aux_classic_check_t trans

post-classic verifier transformation handler

bool 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

July 2017 Kernel Hackers Manual 4.12