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


  

SendSoftwareInterrupt

OSStatus SendSoftwareInterrupt(
                     SoftwareInterruptID softwareInterrupt,
                     const void *p2);
--> softwareInterrupt
Software interrupt ID.
--> p2
First parameter to be passed to the handler.
DESCRIPTION

SendSoftwareInterrupt causes a task to run a software interrupt. It can be called from any execution level and acts as an asynchronous function.

IMPORTANT

Currently, SendSoftwareInterrupt calls the user back at the same execution level. In future versions of Mac OS it can be used to force execution of code that can't be called at interrupt level.

EXECUTION CONTEXT

SendSoftwareInterrupt may be called from task level or secondary interrupt level but not from hardware interrupt level.

RESULT CODES
noErr 0 No error
qErr -1 Queue element not found
paramErr -50 Bad parameter

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