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-20250726022846-8a89a2fab4a2 (latest)
Published
Jul 26, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
2 days ago

Tools for package owners.