dtrace_sleep - DTrace-specific sleep
cc [ flag... ] file... -ldtrace [ library... ] #include <dtrace.h> void dtrace_sleep(dtrace_hdl_t *dtp)
The calling thread is suspended from execution for a period of time determined by the values of the statusrate, aggrate, and switchrate arguments. See the dtrace_setopt(3DTRACE) man page for more information. The dtrace_sleep() function might return prior to the determined timeout if any traced process encounters an interesting event such as death of the process or the loading of a shared library by the process.
The dtrace_sleep() function has no return value, although it sets the DTrace error number to indicate a failure. See the dtrace_errno(3DTRACE) man page for more information.
The dtrace_sleep() function will fail if:
The DTrace handle is NULL.
See the libdtrace(3LIB) man page for an example of using the dtrace_sleep() function.
See attributes(7) for descriptions of the following attributes: