Schedules a function to be called after a specified interval.
int timeout(func, arg, ticks) int (*func)(); caddr_t arg; long ticks;
The timeout utility schedules the function pointed to by the func parameter to be called with the arg parameter after the number of timer ticks specified by the ticks parameter. Multiple pending calls to the timeout utility with the same func and arg parameters are allowed. The function called by the timeout utility must adhere to the same restrictions as a driver interrupt handler. It must not sleep.
On multiprocessor systems, the function called by the timeout utility should be interrupt-safe. Otherwise, the STR_QSAFETY flag must be set when installing the module or driver with the str_install utility.
Note: This utility must not be confused with the kernel service of the same name in the libsys.a library. STREAMS modules and drivers inherently use this version, not the libsys.a library version. No special action is required to use this version in the STREAMS environment.
The timeout utility returns an integer that identifies the request. This value may be used to withdraw the time-out request by using the untimeout utility. If the timeout table is full, the timeout utility returns a value of -1 and the request is not registered.
The timeout utility may be called from either the process or interrupt environment.
This utility is part of STREAMS Kernel Extensions.
The untimeout utility.
List of Streams Programming References in AIX Version 4.3 Communications Programming Concepts.
Understanding STREAMS Drivers and Modules in AIX Version 4.3 Communications Programming Concepts.
Understanding STREAMS Synchronization in AIX Version 4.3 Communications Programming Concepts .