NAME | SYNOPSIS | FEATURES | DESCRIPTION | EXTENDED DESCRIPTION | Allowed Calling Contexts | ATTRIBUTES | SEE ALSO
#include <dki/dki.h>void usecBusyWait(unsigned int micro);
DKI
Provides precise busy wait services.
Device drivers may use precise busy wait services to wait for a very short time. Note that busy wait means that the caller waits without releasing the CPU, as if executing a busy loop. Typically, this service may be used by a driver to comply with a specific timing of its device (accessing a serial ROM), or to wait for a command to complete on the device before starting another one (resetting a device).
usecBusyWait waits for at least micro micro-seconds, before returning. Note that micro must be in the range of 1 .. 1000. Behavior is unpredictable for values out of that range.
The following table specifies the contexts in which a caller is allowed to invoke each service:
Services | Base level | DKI thread | Interrupt | Blocking |
usecBusyWait | + | + | + | - |
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | EXTENDED DESCRIPTION | Allowed Calling Contexts | ATTRIBUTES | SEE ALSO