aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_platform.rs
diff options
context:
space:
mode:
authorAndreas Hindborg <[email protected]>2025-03-09 15:18:57 +0000
committerAndreas Hindborg <[email protected]>2025-03-22 11:08:54 +0000
commitf93b0d8360e5e690ca82c3236ba7f7f9d6a6b5e7 (patch)
tree7aef6a7c6292e514600b5c23e89b6cba903dad29 /samples/rust/rust_driver_platform.rs
parentrust: hrtimer: add `UnsafeHrTimerPointer` (diff)
downloadkernel-f93b0d8360e5e690ca82c3236ba7f7f9d6a6b5e7.tar.gz
kernel-f93b0d8360e5e690ca82c3236ba7f7f9d6a6b5e7.zip
rust: hrtimer: add `hrtimer::ScopedHrTimerPointer`
Add the trait `ScopedHrTimerPointer` to allow safe use of stack allocated timers. Safety is achieved by pinning the stack in place while timers are running. Implement the trait for all types that implement `UnsafeHrTimerPointer`. Acked-by: Frederic Weisbecker <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Hindborg <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions