signalfd

package
v0.0.0-...-f7ad032 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 3

Documentation

Overview

Package signalfd provides basic signalfd file implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(vfsObj *vfs.VirtualFilesystem, target *kernel.Task, mask linux.SignalSet, flags uint32) (*vfs.FileDescription, error)

New creates a new signal fd.

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

Mask returns the signal mask.

func (*SignalFileDescription) NotifyEvent

func (sfd *SignalFileDescription) NotifyEvent(mask waiter.EventMask)

NotifyEvent implements waiter.EventListener.NotifyEvent.

func (*SignalFileDescription) Read

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) UnregisterFileAsyncHandler

func (sfd *SignalFileDescription) UnregisterFileAsyncHandler(fd *vfs.FileDescription)

UnregisterFileAsyncHandler implements vfs.FileDescriptionImpl.UnregisterFileAsyncHandler.

Jump to

Keyboard shortcuts

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