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

Method Close

internal/sys/fd_other.go:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (fd *FD) Close() error {
39 if fd.raw < 0 {
40 return nil
41 }
42
43 return unix.Close(fd.Disown())
44}
45
46func (fd *FD) Dup() (*FD, error) {
47 if fd.raw < 0 {

Callers 3

TestFDFunction · 0.95
newRingBufEventRingFunction · 0.95

Calls 2

DisownMethod · 0.95
CloseFunction · 0.92

Tested by 1

TestFDFunction · 0.76