Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
38
func
(fd *FD) Close() error {
39
if
fd.raw < 0 {
40
return
nil
41
}
42
43
return
unix.Close(fd.Disown())
44
}
45
46
func
(fd *FD) Dup() (*FD, error) {
47
if
fd.raw < 0 {
Callers
3
loadCollectionFromNativeImage
Function · 0.95
TestFD
Function · 0.95
newRingBufEventRing
Function · 0.95
Calls
2
Disown
Method · 0.95
Close
Function · 0.92
Tested by
1
TestFD
Function · 0.76