Re: [PATCH net-next v3 5/8] rust: time: Add wrapper for fsleep function
From: Miguel Ojeda
Date: Thu Oct 24 2024 - 13:27:11 EST
On Thu, Oct 24, 2024 at 2:22 AM FUJITA Tomonori
<fujita.tomonori@xxxxxxxxx> wrote:
>
> Do you mean msecs_to_jiffies() returns MAX_JIFFY_OFFSET ((LONG_MAX >>
> 1)-1) with a value exceeding i32::MAX milliseconds?
Yeah -- well, I was referring to its docs:
* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)
*
* - 'too large' values [that would result in larger than
* MAX_JIFFY_OFFSET values] mean 'infinite timeout' too.
So I assume `fsleep` is meant to inherit that.
Cheers,
Miguel