Documentation ¶
Overview ¶
Package fasync provides FIOASYNC related functionality.
Index ¶
- func New() fs.FileAsync
- type FileAsync
- func (a *FileAsync) Callback(e *waiter.Entry)
- func (a *FileAsync) Owner() (*kernel.Task, *kernel.ThreadGroup, *kernel.ProcessGroup)
- func (a *FileAsync) Register(w waiter.Waitable)
- func (a *FileAsync) SetOwnerProcessGroup(requester *kernel.Task, recipient *kernel.ProcessGroup)
- func (a *FileAsync) SetOwnerTask(requester *kernel.Task, recipient *kernel.Task)
- func (a *FileAsync) SetOwnerThreadGroup(requester *kernel.Task, recipient *kernel.ThreadGroup)
- func (a *FileAsync) Unregister(w waiter.Waitable)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Owner ¶
func (a *FileAsync) Owner() (*kernel.Task, *kernel.ThreadGroup, *kernel.ProcessGroup)
Owner returns who is currently getting signals. All return values will be nil if no one is set to receive signals.
func (*FileAsync) Register ¶
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 ¶
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 ¶
Unregister stops monitoring a file.
The file must be currently registered.