Home
last modified time | relevance | path

Searched refs:attach_fd (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/samples/hid/
H A Dhid_mouse.c83 int opt, hid_id, attach_fd; in main() local
125 attach_fd = bpf_program__fd(skel->progs.attach_prog); in main()
126 if (attach_fd < 0) { in main()
138 err = bpf_prog_test_run_opts(attach_fd, &tattr); in main()
H A Dhid_surface_dial.c95 int attach_fd, err; in attach_prog() local
101 attach_fd = bpf_program__fd(skel->progs.attach_prog); in attach_prog()
102 if (attach_fd < 0) { in attach_prog()
108 err = bpf_prog_test_run_opts(attach_fd, &tattr); in attach_prog()
/openbmc/linux/tools/testing/selftests/hid/
H A Dhid_bpf.c514 int attach_fd, err = -EINVAL; in load_programs() local
543 attach_fd = bpf_program__fd(self->skel->progs.attach_prog); in load_programs()
544 ASSERT_GE(attach_fd, 0) TH_LOG("locate attach_prog: %d", attach_fd); in load_programs()
556 err = bpf_prog_test_run_opts(attach_fd, &tattr); in load_programs()