format_delay_ms(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 by 10^(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 for str 🧚

🌈 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 πŸ”₯


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