MCPcopy
hub / github.com/google/gvisor / TimerFileDescription

Struct TimerFileDescription

pkg/sentry/fsimpl/timerfd/timerfd.go:34–47  ·  view source on GitHub ↗

TimerFileDescription implements vfs.FileDescriptionImpl for timer fds. It also implements ktime.TimerListener. +stateify savable

Source from the content-addressed store, hash-verified

32//
33// +stateify savable
34type TimerFileDescription struct {
35 vfsfd vfs.FileDescription
36 vfs.FileDescriptionDefaultImpl
37 vfs.DentryMetadataFileDescriptionImpl
38 vfs.NoLockFD
39
40 events waiter.Queue
41 timer ktime.Timer
42
43 // val is the number of timer expirations since the last successful
44 // call to PRead, or SetTime. val must be accessed using atomic memory
45 // operations.
46 val atomicbitops.Uint64
47}
48
49var _ vfs.FileDescriptionImpl = (*TimerFileDescription)(nil)
50var _ ktime.Listener = (*TimerFileDescription)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected