Unix/Linux Go Back    

NetBSD 6.1.5 - man page for delay (netbsd section 9)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

DELAY(9)			  BSD Kernel Developer's Manual 			 DELAY(9)

     delay, DELAY -- microsecond delay

     #include <machine/param.h>

     delay(unsigned int us);

     DELAY(unsigned int us);

     Wait approximately us microseconds.

     The delay is implemented as a machine loop, preventing events other than interrupt handlers
     for unmasked interrupts to run.  DELAY() is reentrant (doesn't modify any global kernel or
     machine state) and is safe to use in interrupt or process context.

     For long delays, condition variables should be considered, however they can only be used
     from process context and their resolution is limited by the system clock frequency.

     condvar(9), hz(9), kpause(9)

BSD					  July 20, 2011 				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 03:56 PM.