We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4005fa6 commit d1f29beCopy full SHA for d1f29be
ARCHITECTURE.md
@@ -78,3 +78,9 @@ tend to use bpf_link to do so. Older hooks unfortunately use a combination of
78
syscalls, netlink messages, etc. Adding support for a new link type should not
79
pull in large dependencies like netlink, so XDP programs or tracepoints are
80
out of scope.
81
+
82
+Each bpf_link_type has one corresponding Go type, e.g. `link.tracing` corresponds
83
+to BPF_LINK_TRACING. In general, these types should be unexported as long as they
84
+don't export methods outside of the Link interface. Each Go type may have multiple
85
+exported constructors. For example `AttachTracing` and `AttachLSM` create a
86
+tracing link, but are distinct functions since they may require different arguments.
0 commit comments