Lines Matching refs:attr
248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
253 if (attr->attach_flags)
256 rcdev = rc_dev_get_from_fd(attr->target_fd, true);
267 int lirc_prog_detach(const union bpf_attr *attr)
273 if (attr->attach_flags)
276 prog = bpf_prog_get_type(attr->attach_bpf_fd,
281 rcdev = rc_dev_get_from_fd(attr->target_fd, true);
295 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
297 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids);
303 if (attr->query.query_flags)
306 rcdev = rc_dev_get_from_fd(attr->query.target_fd, false);
332 if (attr->query.prog_cnt != 0 && prog_ids && cnt)
334 attr->query.prog_cnt);