aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <[email protected]>2025-06-17 14:41:55 +0000
committerAndreas Hindborg <[email protected]>2025-06-30 11:22:05 +0000
commitd4b29ddf82a458935f1bd4909b8a7a13df9d3bdc (patch)
tree8fe619c1e1df33ff74132570bb7cebe099c13efd /rust/helpers/helpers.c
parentrust: time: Seal the HrTimerMode trait (diff)
downloadkernel-d4b29ddf82a458935f1bd4909b8a7a13df9d3bdc.tar.gz
kernel-d4b29ddf82a458935f1bd4909b8a7a13df9d3bdc.zip
rust: time: Add wrapper for fsleep() function
Add a wrapper for fsleep(), flexible sleep functions in include/linux/delay.h which typically deals with hardware delays. The kernel supports several sleep functions to handle various lengths of delay. This adds fsleep(), automatically chooses the best sleep method based on a duration. fsleep() can only be used in a nonatomic context. This requirement is not checked by these abstractions, but it is intended that klint [1] or a similar tool will be used to check it in the future. Link: https://rust-for-linux.com/klint [1] Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Fiona Behrens <[email protected]> Tested-by: Daniel Almeida <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Signed-off-by: FUJITA Tomonori <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Hindborg <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions