MCPcopy
hub / github.com/cilium/ebpf / RawLink

Struct RawLink

link/link.go:124–127  ·  view source on GitHub ↗

RawLink is the low-level API to bpf_link. You should consider using the higher level interfaces in this package instead.

Source from the content-addressed store, hash-verified

122// You should consider using the higher level interfaces in this
123// package instead.
124type RawLink struct {
125 fd *sys.FD
126 pinnedPath string
127}
128
129func loadPinnedRawLink(fileName string, opts *ebpf.LoadPinOptions) (*RawLink, error) {
130 fd, typ, err := sys.ObjGetTyped(&sys.ObjGetAttr{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected