op_ici_id()

摘要

获取 ICI 的 ID。

语法

op_ici_id (iciptr)
参数 类型 说明
iciptr Ici * 指向目标 ICI 的指针
[指向 ICI 的指针可以从两个内核过程获得:op_ici_create() 返回指向新分配 ICI 的指针(在 ICI 发送进程中),以及 op_intrpt_ici() 返回与传入中断关联的 ICI 的指针(在 ICI 接收进程中)。]

返回类型

OpT_Ici_Id

指定 ICI 的 ID。

示例

/* Get the ICI associated with the current interrupt */
iciptr = op_intrpt_ici ();

/* Get the ICI ID */
ici_id = op_ici_id (iciptr);

详情

ICI ID 的格式取决于该 ID 是全局序列化(顺序仿真中的典型方式)还是按模块序列化(并行仿真中的典型方式)。序列化方案由 op_runsim 偏好设置 “fully_serialized_event_ids“ 决定。

用途

提供了一种获取 ICI ID 的方法。

错误

  • 无。

参考

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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