Lines Matching refs:attr
244 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
249 if (attr->attach_flags)
252 rcdev = rc_dev_get_from_fd(attr->target_fd, true);
263 int lirc_prog_detach(const union bpf_attr *attr)
269 if (attr->attach_flags)
272 prog = bpf_prog_get_type(attr->attach_bpf_fd,
277 rcdev = rc_dev_get_from_fd(attr->target_fd, true);
291 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
293 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids);
299 if (attr->query.query_flags)
302 rcdev = rc_dev_get_from_fd(attr->query.target_fd, false);
328 if (attr->query.prog_cnt != 0 && prog_ids && cnt)
330 attr->query.prog_cnt);