format_delay_ms(9)
okay so bestie, welcome to format_delay_ms(9) from the Kernel API Manual π«Άβ¨ this one is literally about turning an integer into a delay string, and itβs giving βtiny formatting helper with main character energyβ π
πΈ NAME πΈ
format_delay_ms β format an integer value into a delay string π
β¨ SYNOPSIS β¨
int format_delay_ms (unsigned int val , int ndecimals , const char
*suffix , char *str , int size );
π ARGUMENTS π
valβ the integer value to format, scaled by10^(ndecimals)π«ndecimalsβ number of decimal to scale down πsuffixβ suffix string to format β¨strβ where to store the formatted string π«Άsizeβ the size of buffer forstrπ§
π DESCRIPTION π
okay so hereβs the vibe: it formats an integer value in val scaled down by 10^(ndecimals) with no suffix if val is divisible by 10^(ndecimals) π otherwise it formats a value in val just as it is with suffix π
and yes bestie, it returns the number of characters written into str β thatβs the whole point, periodt β¨
π₯ SEE ALSO π₯
- Kernel file
./drivers/usb/storage/usb.cπ parse_delay_str(9)π¦
mwah π this page came from ./drivers/usb/storage, dated October 2026, and itβs format_delay_ms(9) β slay and stay safe out there π
π¦ 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