MsysControl()函数

Synopsis

Control system behavior.

Format

void MsysControl(SystemId, ControlType, ControlFlag)

MIL_ID SystemId; System identifier
long ControlType; Type of event to control
long ControlValue; Flag to control event

Description

This function controls the system behavior. For example, it can be used to control where buffers allocated on the specified system will be processed. Generally, when you allocate buffers on a specific system, processing is done on that system or on the Host system if it is more appropriate. However, you can use this function to force all processing on a specific system.

The SystemId parameter specifies the identifier of the system on which to set the control.

The ControlType and ControlValue parameters specify the type of event to control and the associated value. These parameters can be set to any valid control type supported by the system (refer to the appropriate appendix) or to one of the following combinations:

ControlType ControlValue Description
M_PROCESSING_SYSTEM MIL identifier of the system to use for processing, casted to long Force the processing of buffers, allocated on the system specified by SystemId, to be performed by the system specified by the control flag.
M_DEFAULT_HOST Force the processing of buffers, allocated on the system specified by SystemId, to be performed by the default Host system.
M_DEFAULT Re-establish the default processing system selected by MIL at system allocation.

* Note, if you force processing to be performed by a specific system, even if processing compensation is enabled (see MappControl) , some operations might not execute successfully if the specific system does not completely support the requested operation.

M_NATIVE_MODE_ENTER M_DEFAULT Signal to MIL that the system is entering the system’s native mode.
M_NATIVE_MODE_LEAVE M_DEFAULT Signal to MIL that the system is exiting the system’s native mode.
M_USE_MMX Control the use of MMX code when processing is done on the specified system.
M_DEFAULT Like M_ENABLE when an MMX processor is detected, otherwise like M_DISABLE.
M_ENABLE Use the MMX opcodes to accelerate processing.
M_DISABLE Never use the MMX opcodes.

See also

MappGetError, MappHookFunction, MappControl

《MsysControl()函数》上有27条评论

评论已关闭。