op_pro_equal()

Abstract

Compares two process handles to determine if they are equal.

Syntax

op_pro_equal (h1, h2)
Argument Type Description
h1 Prohandle First process handle.
h2 Prohandle Second process handle.

Return Type

Boolean

OPC_TRUE if the two process handles are equal; OPC_FALSE otherwise.

Example

/* Determine if the current process is a root */
is_root = op_pro_equal ( op_pro_self(), op_pro_root(objid));

Details

None.

Purpose

Provides a way to compare two process handles and determine if they are equal. To be equal, they must be valid and have matching fields.

Errors

  • Program Abort: KP requires process context.
  • Program Abort: Segmentation violation. (due to a malformed process handle)

Reference

  • None.

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