bpf_prog_create (9) - Linux Man Pages
bpf_prog_create: create an unattached filter
bpf_prog_create - create an unattached filter
int bpf_prog_create(struct bpf_prog
**pfp, struct sock_fprog_kern *fprog);
- the unattached filter that is created
- the filter program
Create a filter independent of any socket. We first run some sanity checks on it to make sure it does not explode on us later. If an error occurs or there is insufficient memory for the filter a negative errno code is returned. On success the return is zero.