op_ici_id()
Abstract
Gets the ID of an ICI.
Syntax
op_ici_id (iciptr)
| Argument | Type | Description |
|---|---|---|
iciptr |
Ici * |
pointer to the ICI-of-interest [A pointer to an ICI can be obtained from two KPs: op_ici_create() returns a pointer to a newly allocated ICI (in an ICI-sending process), and op_intrpt_ici() returns a pointer to an ICI associated with an incoming interrupt (in an ICI-receiving process).] |
Return Type
OpT_Ici_Id
ID of the specified ICI.
Example
/* Get the ICI associated with the current interrupt */
iciptr = op_intrpt_ici ();
/* Get the ICI ID */
ici_id = op_ici_id (iciptr);
Details
The format of the ICI ID varies depending on whether the ID is serialized globally (typical in sequential simulations) or by module (typical in parallel simulations). The serialization scheme is set by the op_runsim preference “fully_serialized_event_ids“.
Purpose
Provides a way to obtain the ID of an ICI.
Errors
- None.
Reference
- Use the KP op_ici_id_str_get() to obtain a string representation of an ICI ID