ndelay(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ndelay ✨

okay so you're reading a page from the Kernel API Manual (ndelay(9)) β€” welcome, bestie, you're in the right place πŸ’…


πŸŽ€ NAME πŸŽ€

ndelay β€” inserting a delay based on nanoseconds with busy waiting πŸŒ€

like, yes, the kernel will just sit there spinning while the nanoseconds tick by. no sleeping, no napping, no vibe check on the scheduler. it's giving "spin class" energy πŸ”₯


🌸 SYNOPSIS 🌸

void ndelay (unsigned long nsec );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nsec β€” the requested delay, measured in nanoseconds ⏱️✨ (it's an unsigned long, so be normal about it)

πŸ’– DESCRIPTION πŸ’–

so this page is lowkey a redirect, ngl β€” for the basics about ndelay and it's variants, you wanna go read udelay. that's the main character of this little delay family πŸ‘‘ go check it out, iykyk.


🌈 SEE ALSO 🌈

  • Kernel file ./include/asm-generic/delay.h
  • udelay(9)

and that's the whole page!! 🫢 this lil cutie lives over in ./include/asm-generic and it's dated October 2026, so like… mark your calendar bestie πŸ—“οΈβœ¨ bye ily, go blink some nanoseconds away πŸ’€πŸ₯°

πŸ“¦ where this page comes from