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

Struct Program

prog.go:236–247  ·  view source on GitHub ↗

Program represents BPF program loaded into the kernel. It is not safe to close a Program which is used by other goroutines.

Source from the content-addressed store, hash-verified

234//
235// It is not safe to close a Program which is used by other goroutines.
236type Program struct {
237 // Contains the output of the kernel verifier if enabled,
238 // otherwise it is empty.
239 VerifierLog string
240
241 fd *sys.FD
242 name string
243 pinnedPath string
244 typ ProgramType
245
246 btf *btf.Handle
247}
248
249// NewProgram creates a new Program.
250//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected