diff options
| author | Andreas Hindborg <[email protected]> | 2025-03-09 15:18:57 +0000 |
|---|---|---|
| committer | Andreas Hindborg <[email protected]> | 2025-03-22 11:08:54 +0000 |
| commit | f93b0d8360e5e690ca82c3236ba7f7f9d6a6b5e7 (patch) | |
| tree | 7aef6a7c6292e514600b5c23e89b6cba903dad29 /lib/vsprintf.c | |
| parent | rust: hrtimer: add `UnsafeHrTimerPointer` (diff) | |
| download | kernel-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 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions
