usleep_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to usleep_range(9) from the Kernel API Manual β€” the sleep helper that’s lowkey all about an approximate nap time πŸ’€βœ¨ let’s get into it

✨ NAME ✨

usleep_range β€” Sleep for an approximate time. Like, it’s giving β€œnap, but make it approximate,” and honestly that’s the whole name 🫢

πŸ›Œ SYNOPSIS πŸ›Œ

void usleep_range (unsigned long min , unsigned long max );

πŸŽ€ ARGUMENTS πŸŽ€

  • min β€” Minimum time in microseconds to sleep. The floor, bestie πŸ’…
  • max β€” Maximum time in microseconds to sleep. The ceiling, no cap 🌸

πŸ’€ DESCRIPTION πŸ’€

For basic information please refer to usleep_range_state β€” that’s the page to check first, fr fr.

While the task is sleeping, it will be in the state TASK_UNINTERRUPTIBLE.

heads up bestie: TASK_UNINTERRUPTIBLE is literally the state during the sleep. Not me adding drama β€” that’s the documented vibe 😭

πŸ”— SEE ALSO πŸ”—


that’s the whole page, bestie πŸ’– this lil cutie comes from source ./include/linux, page/version usleep_range(9), and it’s dated October 2026 β€” periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from