Documentation ¶
Overview ¶
Package timerfd implements timer fds.
Index ¶
- func New(ctx context.Context, vfsObj *vfs.VirtualFilesystem, clock ktime.Clock, ...) (*vfs.FileDescription, error)
- type TimerFileDescription
- func (tfd *TimerFileDescription) Clock() ktime.Clock
- func (tfd *TimerFileDescription) Epollable() bool
- func (tfd *TimerFileDescription) EventRegister(e *waiter.Entry) error
- func (tfd *TimerFileDescription) EventUnregister(e *waiter.Entry)
- func (tfd *TimerFileDescription) GetTime() (ktime.Time, ktime.Setting)
- func (tfd *TimerFileDescription) NotifyTimer(exp uint64)
- func (tfd *TimerFileDescription) PauseTimer()
- func (tfd *TimerFileDescription) Read(ctx context.Context, dst usermem.IOSequence, opts vfs.ReadOptions) (int64, error)
- func (tfd *TimerFileDescription) Readiness(mask waiter.EventMask) waiter.EventMask
- func (tfd *TimerFileDescription) Release(context.Context)
- func (tfd *TimerFileDescription) ResumeTimer()
- func (tfd *TimerFileDescription) SetTime(s ktime.Setting) (ktime.Time, ktime.Setting)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TimerFileDescription ¶
type TimerFileDescription struct { vfs.FileDescriptionDefaultImpl vfs.DentryMetadataFileDescriptionImpl vfs.NoLockFD // contains filtered or unexported fields }
TimerFileDescription implements vfs.FileDescriptionImpl for timer fds. It also implements ktime.TimerListener.
+stateify savable
func (*TimerFileDescription) Clock ¶
func (tfd *TimerFileDescription) Clock() ktime.Clock
Clock returns the timer fd's Clock.
func (*TimerFileDescription) Epollable ¶
func (tfd *TimerFileDescription) Epollable() bool
Epollable implements FileDescriptionImpl.Epollable.
func (*TimerFileDescription) EventRegister ¶
func (tfd *TimerFileDescription) EventRegister(e *waiter.Entry) error
EventRegister implements waiter.Waitable.EventRegister.
func (*TimerFileDescription) EventUnregister ¶
func (tfd *TimerFileDescription) EventUnregister(e *waiter.Entry)
EventUnregister implements waiter.Waitable.EventUnregister.
func (*TimerFileDescription) GetTime ¶
func (tfd *TimerFileDescription) GetTime() (ktime.Time, ktime.Setting)
GetTime returns the associated Timer's setting and the time at which it was observed.
func (*TimerFileDescription) NotifyTimer ¶
func (tfd *TimerFileDescription) NotifyTimer(exp uint64)
NotifyTimer implements ktime.TimerListener.NotifyTimer.
func (*TimerFileDescription) PauseTimer ¶
func (tfd *TimerFileDescription) PauseTimer()
PauseTimer pauses the associated Timer.
func (*TimerFileDescription) Read ¶
func (tfd *TimerFileDescription) Read(ctx context.Context, dst usermem.IOSequence, opts vfs.ReadOptions) (int64, error)
Read implements vfs.FileDescriptionImpl.Read.
func (*TimerFileDescription) Readiness ¶
func (tfd *TimerFileDescription) Readiness(mask waiter.EventMask) waiter.EventMask
Readiness implements waiter.Waitable.Readiness.
func (*TimerFileDescription) Release ¶
func (tfd *TimerFileDescription) Release(context.Context)
Release implements vfs.FileDescriptionImpl.Release.
func (*TimerFileDescription) ResumeTimer ¶
func (tfd *TimerFileDescription) ResumeTimer()
ResumeTimer resumes the associated Timer.