package stopfd
import "gvisor.dev/gvisor/pkg/tcpip/link/stopfd"
Package stopfd provides an type that can be used to signal the stop of a dispatcher.
Index ¶
Types ¶
type StopFD ¶
type StopFD struct { EFD int }
StopFD is an eventfd used to signal the stop of a dispatcher.
+stateify savable
func New ¶
New returns a new, initialized StopFD.
func (*StopFD) Stop ¶
func (sf *StopFD) Stop()
Stop writes to the eventfd and notifies the dispatcher to stop. It does not block.
Source Files ¶
stopfd.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 hours ago –
Tools for package owners.