Documentation ¶
Overview ¶
Package signalfd provides basic signalfd file implementations.
Index ¶
- func New(vfsObj *vfs.VirtualFilesystem, target *kernel.Task, mask linux.SignalSet, ...) (*vfs.FileDescription, error)
- type SignalFileDescription
- func (sfd *SignalFileDescription) Epollable() bool
- func (sfd *SignalFileDescription) EventRegister(e *waiter.Entry) error
- func (sfd *SignalFileDescription) EventUnregister(e *waiter.Entry)
- func (sfd *SignalFileDescription) Mask() linux.SignalSet
- func (sfd *SignalFileDescription) NotifyEvent(mask waiter.EventMask)
- func (sfd *SignalFileDescription) Read(ctx context.Context, dst usermem.IOSequence, _ vfs.ReadOptions) (int64, error)
- func (sfd *SignalFileDescription) Readiness(mask waiter.EventMask) waiter.EventMask
- func (sfd *SignalFileDescription) RegisterFileAsyncHandler(fd *vfs.FileDescription) error
- func (sfd *SignalFileDescription) Release(context.Context)
- func (sfd *SignalFileDescription) SetMask(mask linux.SignalSet)
- func (sfd *SignalFileDescription) StateFields() []string
- func (sfd *SignalFileDescription) StateLoad(stateSourceObject state.Source)
- func (sfd *SignalFileDescription) StateSave(stateSinkObject state.Sink)
- func (sfd *SignalFileDescription) StateTypeName() string
- func (sfd *SignalFileDescription) UnregisterFileAsyncHandler(fd *vfs.FileDescription)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SignalFileDescription ¶
type SignalFileDescription struct { vfs.FileDescriptionDefaultImpl vfs.DentryMetadataFileDescriptionImpl vfs.NoLockFD vfs.NoAsyncEventFD // contains filtered or unexported fields }
SignalFileDescription implements vfs.FileDescriptionImpl for signal fds.
+stateify savable
func (*SignalFileDescription) Epollable ¶
func (sfd *SignalFileDescription) Epollable() bool
Epollable implements FileDescriptionImpl.Epollable.
func (*SignalFileDescription) EventRegister ¶
func (sfd *SignalFileDescription) EventRegister(e *waiter.Entry) error
EventRegister implements waiter.Waitable.EventRegister.
func (*SignalFileDescription) EventUnregister ¶
func (sfd *SignalFileDescription) EventUnregister(e *waiter.Entry)
EventUnregister implements waiter.Waitable.EventUnregister.
func (*SignalFileDescription) Mask ¶
func (sfd *SignalFileDescription) Mask() linux.SignalSet
Mask returns the signal mask.
func (*SignalFileDescription) NotifyEvent ¶
func (sfd *SignalFileDescription) NotifyEvent(mask waiter.EventMask)
NotifyEvent implements waiter.EventListener.NotifyEvent.
func (*SignalFileDescription) Read ¶
func (sfd *SignalFileDescription) Read(ctx context.Context, dst usermem.IOSequence, _ vfs.ReadOptions) (int64, error)
Read implements vfs.FileDescriptionImpl.Read.
func (*SignalFileDescription) Readiness ¶
func (sfd *SignalFileDescription) Readiness(mask waiter.EventMask) waiter.EventMask
Readiness implements waiter.Waitable.Readiness.
func (*SignalFileDescription) RegisterFileAsyncHandler ¶
func (sfd *SignalFileDescription) RegisterFileAsyncHandler(fd *vfs.FileDescription) error
RegisterFileAsyncHandler implements vfs.FileDescriptionImpl.RegisterFileAsyncHandler.
func (*SignalFileDescription) Release ¶
func (sfd *SignalFileDescription) Release(context.Context)
Release implements vfs.FileDescriptionImpl.Release.
func (*SignalFileDescription) SetMask ¶
func (sfd *SignalFileDescription) SetMask(mask linux.SignalSet)
SetMask sets the signal mask.
func (*SignalFileDescription) StateFields ¶
func (sfd *SignalFileDescription) StateFields() []string
func (*SignalFileDescription) StateLoad ¶
func (sfd *SignalFileDescription) StateLoad(stateSourceObject state.Source)
+checklocksignore
func (*SignalFileDescription) StateSave ¶
func (sfd *SignalFileDescription) StateSave(stateSinkObject state.Sink)
+checklocksignore
func (*SignalFileDescription) StateTypeName ¶
func (sfd *SignalFileDescription) StateTypeName() string
func (*SignalFileDescription) UnregisterFileAsyncHandler ¶
func (sfd *SignalFileDescription) UnregisterFileAsyncHandler(fd *vfs.FileDescription)
UnregisterFileAsyncHandler implements vfs.FileDescriptionImpl.UnregisterFileAsyncHandler.