op_ici_id_str_get()

摘要

获取 ICI ID 的字符串表示。

语法

op_ici_id_str_get (iciptr, buffer)
参数 类型 说明
iciptr Ici * 指向目标 ICI 的指针
[指向 ICI 的指针可以从两个内核过程获得:op_ici_create() 返回指向新分配 ICI 的指针(在 ICI 发送进程中),以及 op_intrpt_ici() 返回与传入中断关联的 ICI 的指针(在 ICI 接收进程中)。]
buffer char * 指向用于存放 ICI ID 字符串表示的区域的指针(必须足够大以容纳该字符串)。

返回类型

void

无返回值。

示例

char			ici_id_str[20];

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

/* Get the ICI ID as a string */
op_ici_id_str_get (iciptr, ici_id_str);

详情

如果仿真采用基于模块的 ID 生成方式,buffer 中返回的字符串由创建该 ICI 的模块 ID 以及该模块内的创建序号组成。否则,它就只是全局 ICI 创建序号。

用途

提供了一种获取规范 ICI ID 字符串表示的方法,无论 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