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 版本概述

要求

要求 价值
标头 acxcircuit.h
IRQL PASSIVE_LEVEL

另请参阅