AcxCircuitStopIo 宏 (acxcircuit.h)

AcxCircuitStopIo 函数用于向操作系统发出信号,以暂时停止线路 I/O。 这允许驱动程序在短时间内运行时间敏感任务,并在时间敏感代码执行完成后恢复 IO。

语法

void AcxCircuitStopIo(
   Circuit,
   Flags
);

参数

Circuit

现有的 ACXCIRCUIT 线路对象。 有关 ACX 对象的详细信息,请参阅 ACX 对象的摘要

Flags

停止 由ACX_STOP_IO_FLAGS枚举定义的 IO 标志。 目前未定义任何标志,因此请将此项设置为 AcxStopIoNoFlags

返回值

备注

不建议使用此版本的停止 IO 调用,而是使用 AcxCircuitStopIoWithTag 宏 ,因为它通过使用标记提供其他诊断信息。

示例

示例用法如下所示。

    // Temporarily disable this circuit's I/Os while we are updating the 
    // formats. This thread cannot be an I/O dispatched thread else we deadlock.
    //
    status = AcxCircuitStopIo(circuit, AcxStopIoNoFlags);

ACX 要求

最低 ACX 版本: 1.0

有关 ACX 版本的详细信息,请参阅 ACX 版本概述

要求

要求
Header acxcircuit.h
IRQL PASSIVE_LEVEL

另请参阅