Files
linux/rust/kernel
Alice Ryhl 48b7f4d29a rust: time: Add Ktime
Introduce a wrapper around `ktime_t` with a few different useful methods.

Rust Binder will use these bindings to compute how many milliseconds a
transaction has been active for when dumping the current state of the
Binder driver. This replicates the logic in C Binder [1].

For a usage example in Rust Binder, see [2].

ktime_get() cannot be safely called in NMI context. This requirement is not
checked by these abstractions, but it is intended that klint [3] or a
similar tool will be used to check it in the future.

Signed-off-by: Alice Ryhl <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/lkml/5ac8c0d09392290be789423f0dd78a520b830fab.1682333709.git.zhangchuang3@xiaomi.com/ [1]
Link: https://r.android.com/3004103 [2]
Link: https://rust-for-linux.com/klint [3]
2024-04-11 23:20:43 +02:00
..
2024-01-27 14:28:00 +00:00
2023-05-31 17:35:03 +02:00
2024-02-18 21:22:27 +01:00
2023-12-21 20:54:17 +01:00
2024-02-25 19:17:31 +01:00
2023-08-21 14:31:48 +02:00
2023-12-21 20:54:17 +01:00
2023-05-31 17:35:03 +02:00
2024-02-18 21:22:27 +01:00
2024-04-11 23:20:43 +02:00