TimerFileDescription implements vfs.FileDescriptionImpl for timer fds. It also implements ktime.TimerListener. +stateify savable
| 32 | // |
| 33 | // +stateify savable |
| 34 | type 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 | |
| 49 | var _ vfs.FileDescriptionImpl = (*TimerFileDescription)(nil) |
| 50 | var _ ktime.Listener = (*TimerFileDescription)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected