parse_delay_str(9)
π NAME π
Okay bestie, welcome to the parse_delay_str(9) page from the Kernel API Manual πΈ β the name tea is literally: parse_delay_str β parse an unsigned decimal integer delay. No cap. π
β¨ SYNOPSIS β¨
int parse_delay_str (const char *str , int ndecimals , const char
*suffix , unsigned int *val );
π ARGUMENTS π
strβ the string you're parsing, bestie. π«Άndecimalsβ the number of decimal to scale up. β¨suffixβ the suffix string to parse. π¦valβ where the parsed value gets stored. π
π₯ DESCRIPTION π₯
So here's the whole vibe: you're parsing an unsigned decimal value in str, and it can optionally end with suffix. If str ends with suffix, the parsed value is stored in val just as it is β iconic, no scaling, periodt. Otherwise, the value is stored scaled up by 10^(ndecimal). π
It returns 0 on success, and a negative error code otherwise. That's the whole mood. π
π SEE ALSO π
- Kernel file
./drivers/usb/storage/usb.c format_delay_ms(9)
That's the page, bestie! π«Ά Source/version sign-off: ./drivers/usb/storage, dated October 2026, for parse_delay_str(9). π
π¦ 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