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

Interface MMIOController

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

MMIOController controls eventfd memory-mapped I/O.

Source from the content-addressed store, hash-verified

144
145// MMIOController controls eventfd memory-mapped I/O.
146type MMIOController interface {
147 // Enabled returns true if writing to the associated MMIO address can
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)
154}
155
156// EnableMMIO causes future calls to ev.Write() to use memory-mapped writes to
157// addr, subject to ctrl. EnableMMIO cannot be called concurrently with Write,

Callers 11

WriteMethod · 0.65
MMIOWriteMethod · 0.65
ExecuteMethod · 0.65
runMethod · 0.65
startSubcontainerMethod · 0.65
ValidateMethod · 0.65
GetOverlay2Method · 0.65
TestReadWriteFunction · 0.65
TestWaitFunction · 0.65
CreateFunction · 0.65
CloseMethod · 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…