Lines Matching refs:primer
2731 void bpf_link_cleanup(struct bpf_link_primer *primer) in bpf_link_cleanup() argument
2733 primer->link->prog = NULL; in bpf_link_cleanup()
2734 bpf_link_free_id(primer->id); in bpf_link_cleanup()
2735 fput(primer->file); in bpf_link_cleanup()
2736 put_unused_fd(primer->fd); in bpf_link_cleanup()
2857 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer) in bpf_link_prime() argument
2880 primer->link = link; in bpf_link_prime()
2881 primer->file = file; in bpf_link_prime()
2882 primer->fd = fd; in bpf_link_prime()
2883 primer->id = id; in bpf_link_prime()
2887 int bpf_link_settle(struct bpf_link_primer *primer) in bpf_link_settle() argument
2891 primer->link->id = primer->id; in bpf_link_settle()
2894 fd_install(primer->fd, primer->file); in bpf_link_settle()
2896 return primer->fd; in bpf_link_settle()