usleep_range(9)
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 π
- Kernel file
./include/linux/delay.h mdelay(9)usleep_range_idle(9)ssleep(9)fsleep(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms