RtDisablePortIo
RtDisablePortIo disables direct I/O port access from user context.
Syntax
BOOL RtDisablePortIo(
PUCHAR StartPort,
ULONG nNumberOfBytes
);
Parameters
StartPort
The first port to have direct I/O permissions disabled by this call. Each I/O space address points to a single byte. For ports that represent 2-byte or 4-byte locations, the appropriate number of I/O space addresses (two and four, respectively) must be disabled.
nNumberOfBytes
An unsigned 32-bit integer indicating the number of addresses/bytes to disable, starting at StartPort.
Return Value
If the function succeeds, it returns TRUE. If invalid parameters are specified, it returns FALSE.
Remarks
RtDisablePortIo disables direct port I/O access for ports from the user context.
This function currently has no impact on Process determinism. This call is a NO-OP (no operation) when issued from Process applications.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Rtapi.h | rtkrnl.lib |
See Also: