fasync

package
v0.0.0-...-522126a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package fasync provides FIOASYNC related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() fs.FileAsync

New creates a new FileAsync.

Types

type FileAsync

type FileAsync struct {
	// contains filtered or unexported fields
}

FileAsync sends signals when the registered file is ready for IO.

+stateify savable

func (*FileAsync) Callback

func (a *FileAsync) Callback(e *waiter.Entry)

Callback sends a signal.

func (*FileAsync) Owner

Owner returns who is currently getting signals. All return values will be nil if no one is set to receive signals.

func (*FileAsync) Register

func (a *FileAsync) Register(w waiter.Waitable)

Register sets the file which will be monitored for IO events.

The file must not be currently registered.

func (*FileAsync) SetOwnerProcessGroup

func (a *FileAsync) SetOwnerProcessGroup(requester *kernel.Task, recipient *kernel.ProcessGroup)

SetOwnerProcessGroup sets the owner (who will receive signals) to a specified process group. Only this owner will receive signals.

func (*FileAsync) SetOwnerTask

func (a *FileAsync) SetOwnerTask(requester *kernel.Task, recipient *kernel.Task)

SetOwnerTask sets the owner (who will receive signals) to a specified task. Only this owner will receive signals.

func (*FileAsync) SetOwnerThreadGroup

func (a *FileAsync) SetOwnerThreadGroup(requester *kernel.Task, recipient *kernel.ThreadGroup)

SetOwnerThreadGroup sets the owner (who will receive signals) to a specified thread group. Only this owner will receive signals.

func (*FileAsync) Unregister

func (a *FileAsync) Unregister(w waiter.Waitable)

Unregister stops monitoring a file.

The file must be currently registered.

Jump to

Keyboard shortcuts

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