MMIOController controls eventfd memory-mapped I/O.
| 144 | |
| 145 | // MMIOController controls eventfd memory-mapped I/O. |
| 146 | type 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, |
no outgoing calls
no test coverage detected
searching dependent graphs…