#include <sys/types.h> #include <sys/ddi.h>clock_t drv_usectohz(clock_t microsecs);
Architecture independent level 1 (DDI/DKI).
drv_usectohz() is a portable interface for drivers to make calls to timeout(9F) and delay(9F) and remain binary compatible should the driver object file be used on a system with a different clock speed (a different number of ticks in a second).
The value returned is the number of system clock ticks equivalent to the microsecs argument. No error value is returned. If the clock tick equivalent to microsecs is too large to be represented as a clock_t, then the maximum clock_t value will be returned.
drv_usectohz() can be called from user or interrupt context.