MCPcopy
hub / github.com/google/gvisor / Enabled

Method Enabled

pkg/eventfd/eventfd.go:150–150  ·  view source on GitHub ↗

Enabled returns true if writing to the associated MMIO address can succeed. This is inherently racy, so if the memory-mapped write faults, the eventfd will fall back to writing using a syscall.

()

Source from the content-addressed store, hash-verified

148 // succeed. This is inherently racy, so if the memory-mapped write faults,
149 // the eventfd will fall back to writing using a syscall.
150 Enabled() bool
151
152 // Close is called when the associated Eventfd is closed.
153 Close(ev Eventfd)

Callers 7

WriteMethod · 0.65
MMIOWriteMethod · 0.65
ExecuteMethod · 0.65
runMethod · 0.65
startSubcontainerMethod · 0.65
ValidateMethod · 0.65
GetOverlay2Method · 0.65

Implementers 8

ioeventfdMMIOControllerpkg/sentry/platform/kvm/ioeventfd.go
testInterfacepkg/tcpip/network/ip_test.go
endpointpkg/tcpip/network/ipv6/ipv6.go
endpointpkg/tcpip/network/ipv4/ipv4.go
endpointpkg/tcpip/network/arp/arp.go
fwdTestNetworkEndpointpkg/tcpip/stack/forwarding_test.go
fakeNetworkEndpointpkg/tcpip/stack/stack_test.go
testIPv6Endpointpkg/tcpip/stack/nic_test.go

Calls

no outgoing calls

Tested by

no test coverage detected