ReactOS 0.4.16-dev-550-g2186ce3
|
#include <ntifs.h>
#include <stdio.h>
#include <ntoskrnl/include/internal/hdl.h>
#include <sacmsg.h>
Go to the source code of this file.
Classes | |
struct | _SAC_MEMORY_ENTRY |
struct | _SAC_MEMORY_LIST |
struct | _SAC_MESSAGE_ENTRY |
struct | _SAC_CHANNEL_ID |
struct | _SAC_CHANNEL_LOCK |
struct | _SAC_CELL_DATA |
struct | _SAC_VTUTF8_SCREEN |
struct | _SAC_STATIC_ESCAPE_STRING |
struct | _SAC_CHANNEL |
struct | _SAC_CHANNEL_ATTRIBUTES |
struct | _SAC_MACHINE_INFO |
struct | _SAC_DEVICE_EXTENSION |
#define ChannelInitializeEvent | ( | Channel, | |
Attributes, | |||
x | |||
) |
#define ChannelLockAttributes | ( | x | ) | SacAcquireLock(&x->ChannelAttributeLock); |
#define ChannelLockCreates | ( | ) | SacAcquireLock(&ChannelCreateLock); |
#define ChannelLockIBuffer | ( | x | ) | SacAcquireLock(&x->ChannelIBufferLock); |
#define ChannelLockOBuffer | ( | x | ) | SacAcquireLock(&x->ChannelOBufferLock); |
#define ChannelSlotLock | ( | x | ) | SacAcquireLock(&ChannelSlotLock[x]); |
#define ChannelSlotUnlock | ( | x | ) | SacReleaseLock(&ChannelSlotLock[x]); |
#define ChannelUnlockAttributes | ( | x | ) | SacReleaseLock(&x->ChannelAttributeLock); |
#define ChannelUnlockCreates | ( | ) | SacReleaseLock(&ChannelCreateLock); |
#define ChannelUnlockIBuffer | ( | x | ) | SacReleaseLock(&x->ChannelIBufferLock); |
#define ChannelUnlockOBuffer | ( | x | ) | SacReleaseLock(&x->ChannelOBufferLock); |
#define CHECK_ALLOCATION | ( | x | ) | CHECK_PARAMETER_WITH_STATUS(x, STATUS_NO_MEMORY) |
#define CHECK_PARAMETER | ( | x | ) | CHECK_PARAMETER_WITH_STATUS(x, STATUS_INVALID_PARAMETER) |
#define CHECK_PARAMETER1 | ( | x | ) | CHECK_PARAMETER_WITH_STATUS(x, STATUS_INVALID_PARAMETER_1) |
#define CHECK_PARAMETER2 | ( | x | ) | CHECK_PARAMETER_WITH_STATUS(x, STATUS_INVALID_PARAMETER_2) |
#define CHECK_PARAMETER3 | ( | x | ) | CHECK_PARAMETER_WITH_STATUS(x, STATUS_INVALID_PARAMETER_3) |
#define CHECK_PARAMETER4 | ( | x | ) | CHECK_PARAMETER_WITH_STATUS(x, STATUS_INVALID_PARAMETER_4) |
#define MAX_UTF8_ENCODE_BLOCK_LENGTH (Utf8ConversionBufferSize / 3 - 1) |
#define SacFreePool | ( | Pointer | ) | MyFreePool((PVOID*)(&Pointer)) |
typedef struct _SAC_CELL_DATA * PSAC_CELL_DATA |
typedef struct _SAC_CHANNEL * PSAC_CHANNEL |
typedef NTSTATUS(NTAPI * PSAC_CHANNEL_CREATE) (IN struct _SAC_CHANNEL *Channel) |
typedef NTSTATUS(NTAPI * PSAC_CHANNEL_DESTROY) (IN struct _SAC_CHANNEL *Channel) |
typedef ULONG(NTAPI * PSAC_CHANNEL_IBUFFER_LENGTH) (IN struct _SAC_CHANNEL *Channel) |
typedef struct _SAC_CHANNEL_ID * PSAC_CHANNEL_ID |
typedef NTSTATUS(NTAPI * PSAC_CHANNEL_IREAD) (IN struct _SAC_CHANNEL *Channel, IN PCHAR Buffer, IN ULONG BufferSize, IN PULONG ReturnBufferSize) |
typedef WCHAR(NTAPI * PSAC_CHANNEL_IREAD_LAST) (IN struct _SAC_CHANNEL *Channel) |
typedef struct _SAC_CHANNEL_LOCK * PSAC_CHANNEL_LOCK |
typedef NTSTATUS(NTAPI * PSAC_CHANNEL_OFLUSH) (IN struct _SAC_CHANNEL *Channel) |
typedef enum _SAC_CHANNEL_STATUS * PSAC_CHANNEL_STATUS |
typedef struct _SAC_DEVICE_EXTENSION * PSAC_DEVICE_EXTENSION |
typedef struct _SAC_MACHINE_INFO * PSAC_MACHINE_INFO |
typedef struct _SAC_MEMORY_ENTRY * PSAC_MEMORY_ENTRY |
typedef struct _SAC_MEMORY_LIST * PSAC_MEMORY_LIST |
typedef struct _SAC_MESSAGE_ENTRY * PSAC_MESSAGE_ENTRY |
typedef struct _SAC_VTUTF8_SCREEN * PSAC_VTUTF8_SCREEN |
typedef enum _SAC_ANSI_COMMANDS SAC_ANSI_COMMANDS |
typedef enum _SAC_ANSI_DISPATCH SAC_ANSI_DISPATCH |
typedef struct _SAC_CELL_DATA SAC_CELL_DATA |
typedef struct _SAC_CHANNEL SAC_CHANNEL |
typedef struct _SAC_CHANNEL_ID SAC_CHANNEL_ID |
typedef struct _SAC_CHANNEL_LOCK SAC_CHANNEL_LOCK |
typedef enum _SAC_CHANNEL_TYPE SAC_CHANNEL_TYPE |
typedef struct _SAC_MACHINE_INFO SAC_MACHINE_INFO |
typedef struct _SAC_MEMORY_ENTRY SAC_MEMORY_ENTRY |
typedef struct _SAC_MEMORY_LIST SAC_MEMORY_LIST |
typedef enum _SAC_POST_COMMANDS SAC_POST_COMMANDS |
Definition at line 214 of file sacdrv.h.
Definition at line 245 of file sacdrv.h.
Definition at line 1373 of file sacdrv.h.
C_ASSERT | ( | sizeof(SAC_CELL_DATA) | = =6 | ) |
NTSTATUS NTAPI ChanMgrCloseChannel | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 593 of file chanmgr.c.
Referenced by ChanMgrCloseChannelsWithFileObject(), and ConMgrWorkerProcessEvents().
NTSTATUS NTAPI ChanMgrCreateChannel | ( | OUT PSAC_CHANNEL * | Channel, |
IN PSAC_CHANNEL_ATTRIBUTES | Attributes | ||
) |
Definition at line 345 of file chanmgr.c.
Referenced by ConMgrInitialize().
NTSTATUS NTAPI ChanMgrGetByHandle | ( | IN SAC_CHANNEL_ID | ChannelId, |
OUT PSAC_CHANNEL * | TargetChannel | ||
) |
Definition at line 202 of file chanmgr.c.
Referenced by ChanMgrGetByHandleAndFileObject(), ConMgrInitialize(), and ConMgrResetCurrentChannel().
NTSTATUS NTAPI ChanMgrGetNextActiveChannel | ( | IN PSAC_CHANNEL | CurrentChannel, |
IN PULONG | TargetIndex, | ||
OUT PSAC_CHANNEL * | TargetChannel | ||
) |
Definition at line 521 of file chanmgr.c.
Referenced by ConMgrAdvanceCurrentChannel().
Definition at line 118 of file chanmgr.c.
Referenced by InitializeGlobalData().
NTSTATUS NTAPI ChanMgrReleaseChannel | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 243 of file chanmgr.c.
Referenced by ChanMgrCloseChannelsWithFileObject(), ChanMgrGetByHandleAndFileObject(), ChanMgrGetChannelCount(), ChanMgrGetNextActiveChannel(), ChanMgrIsUniqueName(), ConMgrSetCurrentChannel(), ConMgrShutdown(), and ConMgrWorkerProcessEvents().
Definition at line 144 of file chanmgr.c.
Referenced by FreeGlobalData().
NTSTATUS NTAPI ChannelClearRedrawEvent | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 198 of file channel.c.
Referenced by ConMgrSetCurrentChannel().
NTSTATUS NTAPI ChannelClose | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 558 of file channel.c.
Referenced by ChanMgrCloseChannel(), and ConMgrShutdown().
NTSTATUS NTAPI ChannelCreate | ( | IN PSAC_CHANNEL | Channel, |
IN PSAC_CHANNEL_ATTRIBUTES | Attributes, | ||
IN SAC_CHANNEL_ID | ChannelId | ||
) |
Definition at line 457 of file channel.c.
Referenced by ChanMgrCreateChannel().
NTSTATUS NTAPI ChannelDestroy | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 77 of file channel.c.
Referenced by RawChannelDestroy(), and VTUTF8ChannelDestroy().
FORCEINLINE ULONG ChannelGetFlags | ( | IN PSAC_CHANNEL | Channel | ) |
FORCEINLINE LONG ChannelGetIndex | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 1353 of file sacdrv.h.
Referenced by ChanMgrGetChannelIndex(), and ChanMgrReleaseChannel().
Definition at line 297 of file channel.c.
Referenced by ChanMgrGetChannelByName().
FORCEINLINE BOOLEAN ChannelHasNewIBufferData | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 1361 of file sacdrv.h.
Referenced by ChanMgrReapChannels(), RawChannelIRead(), and VTUTF8ChannelIRead().
Definition at line 209 of file channel.c.
Referenced by ConMgrDisplayCurrentChannel(), and ConMgrSetCurrentChannel().
ULONG NTAPI ChannelIBufferLength | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 163 of file channel.c.
Referenced by ConMgrSerialPortConsumer().
NTSTATUS NTAPI ChannelIRead | ( | IN PSAC_CHANNEL | Channel, |
IN PCHAR | Buffer, | ||
IN ULONG | BufferSize, | ||
IN OUT PULONG | ResultBufferSize | ||
) |
Definition at line 131 of file channel.c.
Referenced by ConMgrSerialPortConsumer().
WCHAR NTAPI ChannelIReadLast | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 150 of file channel.c.
Referenced by ConMgrSerialPortConsumer().
BOOLEAN NTAPI ChannelIsActive | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 250 of file channel.c.
Referenced by ChanMgrCloseChannel(), ChanMgrGetChannelCount(), ChanMgrGetNextActiveChannel(), ChanMgrReleaseChannel(), and ChannelDereferenceToZeroByIndex().
BOOLEAN NTAPI ChannelIsEqual | ( | IN PSAC_CHANNEL | Channel, |
IN PSAC_CHANNEL_ID | ChannelId | ||
) |
Definition at line 25 of file channel.c.
Referenced by ChanMgrGetByHandle(), and ConMgrIsWriteEnabled().
Definition at line 116 of file channel.c.
Referenced by ConMgrSerialPortConsumer().
NTSTATUS NTAPI ChannelOFlush | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 103 of file channel.c.
Referenced by ConMgrDisplayCurrentChannel().
Definition at line 87 of file channel.c.
Referenced by SacPutString().
NTSTATUS NTAPI ChannelSetRedrawEvent | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 176 of file channel.c.
Referenced by ConMgrDisplayCurrentChannel().
NTSTATUS NTAPI ConMgrFlushData | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 139 of file conmgr.c.
Referenced by RawChannelOEcho(), RawChannelOFlush(), VTUTF8ChannelAnsiDispatch(), VTUTF8ChannelOEcho(), and VTUTF8ChannelOFlush().
Definition at line 888 of file conmgr.c.
Referenced by ChanMgrCloseChannel().
Definition at line 163 of file conmgr.c.
Referenced by InitializeDeviceData().
BOOLEAN NTAPI ConMgrIsWriteEnabled | ( | IN PSAC_CHANNEL | Channel | ) |
Definition at line 155 of file conmgr.c.
Referenced by ConMgrChannelClose(), RawChannelOWrite(), and VTUTF8ChannelOWrite().
Definition at line 372 of file conmgr.c.
Referenced by FreeGlobalData().
Definition at line 252 of file conmgr.c.
Referenced by DoRebootCommand().
VOID NTAPI ConMgrWorkerProcessEvents | ( | IN PSAC_DEVICE_EXTENSION | DeviceExtension | ) |
Definition at line 835 of file conmgr.c.
Referenced by WorkerProcessEvents().
Definition at line 111 of file conmgr.c.
Referenced by RawChannelOEcho(), RawChannelOFlush(), VTUTF8ChannelAnsiDispatch(), VTUTF8ChannelOEcho(), and VTUTF8ChannelOFlush().
Definition at line 53 of file dispatch.c.
Definition at line 21 of file dispatch.c.
Referenced by DriverEntry().
Definition at line 29 of file dispatch.c.
Referenced by DriverEntry().
Definition at line 484 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 491 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 466 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 409 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 529 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 438 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 459 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 498 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 445 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 477 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 420 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 452 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 355 of file concmd.c.
Referenced by ConMgrWorkerProcessEvents().
Definition at line 564 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 431 of file concmd.c.
Referenced by ConMgrProcessInputLine().
Definition at line 571 of file concmd.c.
Referenced by ConMgrProcessInputLine().
VOID NTAPI FreeDeviceData | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 147 of file data.c.
Referenced by UnloadHandler().
Definition at line 100 of file data.c.
Referenced by DriverEntry(), and UnloadHandler().
Definition at line 1156 of file util.c.
Referenced by FreeGlobalData().
Definition at line 62 of file memory.c.
Referenced by FreeGlobalData().
Definition at line 981 of file util.c.
Referenced by InitializeGlobalData().
Definition at line 139 of file util.c.
Definition at line 1233 of file util.c.
Referenced by PrintHelpMessage().
Definition at line 1008 of file util.c.
Referenced by InitializeGlobalData().
Definition at line 1062 of file util.c.
Referenced by InitializeGlobalData().
BOOLEAN NTAPI InitializeDeviceData | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 216 of file data.c.
Referenced by DriverEntry().
BOOLEAN NTAPI InitializeGlobalData | ( | IN PUNICODE_STRING | RegistryPath, |
IN PDRIVER_OBJECT | DriverObject | ||
) |
Definition at line 374 of file data.c.
Referenced by DriverEntry().
Definition at line 692 of file util.c.
Referenced by InitializeGlobalData().
Definition at line 23 of file memory.c.