Go to the source code of this file.
|
| NTSTATUS NTAPI | RawChannelCreate (IN PSAC_CHANNEL Channel) |
| |
| NTSTATUS NTAPI | RawChannelDestroy (IN PSAC_CHANNEL Channel) |
| |
| FORCEINLINE BOOLEAN | ChannelHasNewOBufferData (IN PSAC_CHANNEL Channel) |
| |
| NTSTATUS NTAPI | RawChannelORead (IN PSAC_CHANNEL Channel, IN PCHAR Buffer, IN ULONG BufferSize, OUT PULONG ByteCount) |
| |
| NTSTATUS NTAPI | RawChannelOEcho (IN PSAC_CHANNEL Channel, IN PCHAR String, IN ULONG Length) |
| |
| NTSTATUS NTAPI | RawChannelOWrite2 (IN PSAC_CHANNEL Channel, IN PCHAR String, IN ULONG Size) |
| |
| NTSTATUS NTAPI | RawChannelOFlush (IN PSAC_CHANNEL Channel) |
| |
| NTSTATUS NTAPI | RawChannelOWrite (IN PSAC_CHANNEL Channel, IN PCHAR String, IN ULONG Length) |
| |
| ULONG NTAPI | RawChannelGetIBufferIndex (IN PSAC_CHANNEL Channel) |
| |
| VOID NTAPI | RawChannelSetIBufferIndex (IN PSAC_CHANNEL Channel, IN ULONG BufferIndex) |
| |
| NTSTATUS NTAPI | RawChannelIRead (IN PSAC_CHANNEL Channel, IN PCHAR Buffer, IN ULONG BufferSize, IN PULONG ReturnBufferSize) |
| |
| NTSTATUS NTAPI | RawChannelIBufferIsFull (IN PSAC_CHANNEL Channel, OUT PBOOLEAN BufferStatus) |
| |
| ULONG NTAPI | RawChannelIBufferLength (IN PSAC_CHANNEL Channel) |
| |
| WCHAR NTAPI | RawChannelIReadLast (IN PSAC_CHANNEL Channel) |
| |
| NTSTATUS NTAPI | RawChannelIWrite (IN PSAC_CHANNEL Channel, IN PCHAR Buffer, IN ULONG BufferSize) |
| |
◆ ChannelHasNewOBufferData()
◆ RawChannelCreate()
Definition at line 17 of file rawchan.c.
18{
20
21
24
25
28
29
31 Channel->OBufferFirstGoodIndex = 0;
35}
#define SacAllocatePool(Length, Tag)
#define SAC_RAW_IBUFFER_SIZE
#define SAC_RAW_OBUFFER_SIZE
#define CHECK_ALLOCATION(x)
#define CHECK_PARAMETER(x)
Referenced by ChannelInitializeVTable().
◆ RawChannelDestroy()
◆ RawChannelGetIBufferIndex()
◆ RawChannelIBufferIsFull()
◆ RawChannelIBufferLength()
◆ RawChannelIRead()
Definition at line 246 of file rawchan.c.
250{
255
256
258
259
261 {
262
264 }
265 else
266 {
267
269 ASSERT(CopyChars <= Channel->ChannelInputBufferLength(
Channel));
270
271
273
274
277
278
280 {
281
285 }
286
287
289 }
290
291
293}
#define STATUS_INVALID_BUFFER_SIZE
VOID NTAPI RawChannelSetIBufferIndex(IN PSAC_CHANNEL Channel, IN ULONG BufferIndex)
#define CHECK_PARAMETER_WITH_STATUS(Condition, Status)
FORCEINLINE BOOLEAN ChannelHasNewIBufferData(IN PSAC_CHANNEL Channel)
_In_ DWORD _In_ DWORD ReturnBufferSize
#define RtlCopyMemory(Destination, Source, Length)
#define RtlMoveMemory(Destination, Source, Length)
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Referenced by ChannelInitializeVTable().
◆ RawChannelIReadLast()
◆ RawChannelIWrite()
Definition at line 343 of file rawchan.c.
346{
353
354
358
359
362 {
364 }
365
366
368
369
371
372
374 {
376 }
377
378
380}
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI RawChannelIBufferIsFull(IN PSAC_CHANNEL Channel, OUT PBOOLEAN BufferStatus)
#define ChannelSetEvent(Channel, x)
#define SAC_CHANNEL_FLAG_HAS_NEW_DATA_EVENT
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
_In_ WDFCOLLECTION _In_ ULONG Index
Referenced by ChannelInitializeVTable().
◆ RawChannelOEcho()
Definition at line 115 of file rawchan.c.
118{
120
123
125 {
128 }
129
131}
NTSTATUS NTAPI ConMgrWriteData(IN PSAC_CHANNEL Channel, IN PVOID Buffer, IN ULONG BufferLength)
NTSTATUS NTAPI ConMgrFlushData(IN PSAC_CHANNEL Channel)
_In_ ULONG _In_ ULONG _In_ ULONG Length
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Referenced by ChannelInitializeVTable(), and RawChannelOWrite().
◆ RawChannelOFlush()
Definition at line 172 of file rawchan.c.
173{
178
180 {
183
185
188 }
189
191}
FORCEINLINE BOOLEAN ChannelHasNewOBufferData(IN PSAC_CHANNEL Channel)
NTSTATUS NTAPI RawChannelORead(IN PSAC_CHANNEL Channel, IN PCHAR Buffer, IN ULONG BufferSize, OUT PULONG ByteCount)
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _In_ LARGE_INTEGER ByteCount
Referenced by ChannelInitializeVTable().
◆ RawChannelORead()
Definition at line 58 of file rawchan.c.
62{
65
70
72
74 {
76
78 {
80
82 Channel->OBufferFirstGoodIndex = NextIndex;
83
84 if (NextIndex ==
Channel->OBufferIndex)
85 {
87 break;
88 }
89
91
93 }
94 }
95 else
96 {
98 }
99
101 {
103 }
104
106 {
108 }
109
111}
#define CHECK_PARAMETER3(x)
#define CHECK_PARAMETER4(x)
long __cdecl _InterlockedExchange(_Interlocked_operand_ long volatile *_Target, long _Value)
#define STATUS_NO_DATA_DETECTED
Referenced by ChannelInitializeVTable(), and RawChannelOFlush().
◆ RawChannelOWrite()
Definition at line 195 of file rawchan.c.
198{
201
203 {
205 }
206
208}
BOOLEAN NTAPI ConMgrIsWriteEnabled(IN PSAC_CHANNEL Channel)
NTSTATUS NTAPI RawChannelOWrite2(IN PSAC_CHANNEL Channel, IN PCHAR String, IN ULONG Size)
NTSTATUS NTAPI RawChannelOEcho(IN PSAC_CHANNEL Channel, IN PCHAR String, IN ULONG Length)
Referenced by ChannelInitializeVTable().
◆ RawChannelOWrite2()
Definition at line 135 of file rawchan.c.
138{
141
144
146
148 {
151 {
153 }
154
156
158
160 Channel->OBufferIndex = NextIndex;
161
162 if (Overflow)
Channel->OBufferFirstGoodIndex = NextIndex;
163 }
164
166
168}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Referenced by RawChannelOWrite().
◆ RawChannelSetIBufferIndex()