signalfd

package
v0.0.0-...-4bf4b70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package signalfd provides an implementation of signal file descriptors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, mask linux.SignalSet) (*fs.File, error)

New creates a new signalfd object with the supplied mask.

Types

type SignalOperations

type SignalOperations struct {
	fsutil.FileNoopRelease          `state:"nosave"`
	fsutil.FilePipeSeek             `state:"nosave"`
	fsutil.FileNotDirReaddir        `state:"nosave"`
	fsutil.FileNoIoctl              `state:"nosave"`
	fsutil.FileNoFsync              `state:"nosave"`
	fsutil.FileNoMMap               `state:"nosave"`
	fsutil.FileNoSplice             `state:"nosave"`
	fsutil.FileNoWrite              `state:"nosave"`
	fsutil.FileNoopFlush            `state:"nosave"`
	fsutil.FileUseInodeUnstableAttr `state:"nosave"`
	// contains filtered or unexported fields
}

SignalOperations represent a file with signalfd semantics.

+stateify savable

func (*SignalOperations) EventRegister

func (s *SignalOperations) EventRegister(entry *waiter.Entry, _ waiter.EventMask)

EventRegister implements waiter.Waitable.EventRegister.

func (*SignalOperations) EventUnregister

func (s *SignalOperations) EventUnregister(entry *waiter.Entry)

EventUnregister implements waiter.Waitable.EventUnregister.

func (*SignalOperations) Mask

func (s *SignalOperations) Mask() linux.SignalSet

Mask returns the signal mask.

func (*SignalOperations) Read

func (s *SignalOperations) Read(ctx context.Context, _ *fs.File, dst usermem.IOSequence, _ int64) (int64, error)

Read implements fs.FileOperations.Read.

func (*SignalOperations) Readiness

func (s *SignalOperations) Readiness(mask waiter.EventMask) waiter.EventMask

Readiness implements waiter.Waitable.Readiness.

func (*SignalOperations) Release

func (s *SignalOperations) Release(context.Context)

Release implements fs.FileOperations.Release.

func (*SignalOperations) SetMask

func (s *SignalOperations) SetMask(mask linux.SignalSet)

SetMask sets the signal mask.

func (*SignalOperations) StateFields

func (s *SignalOperations) StateFields() []string

func (*SignalOperations) StateLoad

func (s *SignalOperations) StateLoad(stateSourceObject state.Source)

func (*SignalOperations) StateSave

func (s *SignalOperations) StateSave(stateSinkObject state.Sink)

func (*SignalOperations) StateTypeName

func (s *SignalOperations) StateTypeName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL