Download RadiSys ARTIC960 Programmer`s Reference

Transcript
OpenSig—Open a Signal
Remarks
Processes that open a signal with a NULL EntryPoint are calling processes. Processes that
create a signal using a non-NULL EntryPoint are receiving processes.
The EntryPoint for a receiving process should be a handler that accepts three parameters:
•
SigHanID
•
A pointer to a parameter block
•
A parameter block size
It should also return a flag as the function value indicating what the kernel should do next.
0
The kernel should call the rest of the receiving processes in the chain.
1
The kernel should give control back to the calling process immediately.
For normal processes, when the handler is called, memory protection is turned on if global
memory protection is enabled. For device drivers and subsystems, the state of memory
protection depends on the OptionWord specified in CreateDev.
118
ARTIC960 Programmer’s Reference