Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.3-rc3 18 lines 377 B view raw
1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2022 Benjamin Tissoires 3 */ 4 5#include "vmlinux.h" 6#include <bpf/bpf_helpers.h> 7#include <bpf/bpf_tracing.h> 8#include "hid_bpf_attach.h" 9#include "hid_bpf_helpers.h" 10 11SEC("syscall") 12int attach_prog(struct attach_prog_args *ctx) 13{ 14 ctx->retval = hid_bpf_attach_prog(ctx->hid, 15 ctx->prog_fd, 16 0); 17 return 0; 18}