PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

Secondary Interrupt Services

The functions described in this section are associated with Open Transport's secondary interrupt services.

typedef void (*OTProcessProcPtr)(void* contextInfo);

This typedef defines the deferred task callback function.

long OTCreateDeferredTask (
                     OTProcessProcPtr proc,
                     void *contextInfo);

This function creates a cookie (the returned long value) that can be used at a later time to schedule the function proc. At the time that proc is invoked, it will be passed the same contextInfo parameter that was passed to the OTCreateDeferredTask procedure.

void OTScheduleDeferredTask(long dtCookie);

This function is used to schedule the deferred procedure corresponding to the dtCookie value. It may be called multiple times before the deferred procedure actually being executed, but the deferred procedure will only be run once. Once the deferred procedure has run, subsequent calls to OTScheduleDeferredTask will cause it to be scheduled to run again.

void OTDestroyDeferredTask(long dtCookie);

This function is used to destroy any resources associated with the deferred procedure; it should be called when the procedure is no longer needed.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)