Documentation ¶
Overview ¶
Package signalfd provides an implementation of signal file descriptors.
Index ¶
- func New(ctx context.Context, mask linux.SignalSet) (*fs.File, error)
- type SignalOperations
- func (s *SignalOperations) EventRegister(entry *waiter.Entry, _ waiter.EventMask)
- func (s *SignalOperations) EventUnregister(entry *waiter.Entry)
- func (s *SignalOperations) Mask() linux.SignalSet
- func (s *SignalOperations) Read(ctx context.Context, _ *fs.File, dst usermem.IOSequence, _ int64) (int64, error)
- func (s *SignalOperations) Readiness(mask waiter.EventMask) waiter.EventMask
- func (s *SignalOperations) Release(context.Context)
- func (s *SignalOperations) SetMask(mask linux.SignalSet)
- func (s *SignalOperations) StateFields() []string
- func (s *SignalOperations) StateLoad(stateSourceObject state.Source)
- func (s *SignalOperations) StateSave(stateSinkObject state.Sink)
- func (s *SignalOperations) StateTypeName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.