[PATCH v1 0/2] Add read_poll_timeout_atomic support

From: FUJITA Tomonori
Date: Thu Aug 21 2025 - 00:04:21 EST


Add a helper function, read_poll_timeout_atomic() to poll periodically
until a condition is met or a timeout is reached.

Unlike read_poll_timeout(), read_poll_timeout_atomic() performs
busy-wait so it can be used in an atomic context.

This patchset can be applied on top of the read_poll_timeout patchset (v3) [1].

[1] https://lore.kernel.org/lkml/20250821002055.3654160-1-fujita.tomonori@xxxxxxxxx/

FUJITA Tomonori (2):
rust: add udelay() function
rust: Add read_poll_timeout_atomic function

rust/helpers/time.c | 5 +++
rust/kernel/io/poll.rs | 90 ++++++++++++++++++++++++++++++++++++++-
rust/kernel/time/delay.rs | 34 +++++++++++++++
3 files changed, 128 insertions(+), 1 deletion(-)


base-commit: a3b971f57db41ef1c68f842cd3c2c00b3df54ce4
--
2.43.0