gvisorgvisor.dev/gvisor/pkg/tcpip/link/stopfd Index | Files

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

func New() (StopFD, error)

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-20250702012632-902e88ff9314 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 day ago

Tools for package owners.