parse_delay_str(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ‘€


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