Lines Matching +full:sig +full:- +full:dir
1 // SPDX-License-Identifier: GPL-2.0-only
4 * This is a pure HID-BPF example, and should be considered as such:
36 static void int_exit(int sig) in int_exit() argument
48 "This program will upload and attach a HID-BPF program to the given device.\n" in usage()
52 "Hit Ctrl-C to unbind the program and reset the device\n"); in usage()
57 const char *str_id, *dir; in get_hid_id() local
62 snprintf(uevent, sizeof(uevent) - 1, "%s/uevent", path); in get_hid_id()
66 return -ENOENT; in get_hid_id()
70 dir = basename((char *)path); in get_hid_id()
72 str_id = dir + sizeof("0003:0001:0A37."); in get_hid_id()
85 .retval = -1, in main()
92 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
114 return -1; in main()
125 attach_fd = bpf_program__fd(skel->progs.attach_prog); in main()
131 bpf_object__for_each_program(prog, *skel->skeleton->obj) { in main()
136 args.retval = -1; in main()