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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com