op_intrpt_enable_all()

Abstract

Permits delivery of all classes of interrupts to the invoking process, for an indefinite period.

Syntax

op_intrpt_enable_all ()
Argument Type Description
no arguments

Return Type

void

no return value

Example

Excerpt from: example model (models/std/eth_net); process model (eth_mac); state (FRM_END); enter execs.

/* enable all interrupts */
op_intrpt_enable_all ();

/* deallocate the frame stored for retransmission purposes */
op_pk_destroy (current_frame);

Details

By default, all interrupts are enabled. They can only be disabled by calls to the KP op_intrpt_disable(). Disabling a class of interrupts does not cause interrupts of that class to be removed from the event list; it only masks its delivery to the invoking process. Thus, if the interrupts that were disabled are later enabled before their scheduled time of delivery, they will in fact be delivered to the invoking process.

Purpose

Provides a mechanism to re-enable all interrupts that have been previously disabled via the KP op_intrpt_disable(). This is useful when several classes of interrupts have been disabled by a process, and some condition occurs which allows the process to clear the masks and enable all interrupts. Interrupts can be consecutively disabled and enabled any number of times.

Errors

  • Program Abort: KP requires process context.

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