ReactOS  0.4.14-dev-98-gb0d4763
fsrtlpc.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for fsrtlpc.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

INIT_FUNCTION NTSTATUS NTAPI FsRtlInitializeWorkerThread (VOID)
 
INIT_FUNCTION BOOLEAN NTAPI FsRtlInitSystem (VOID)
 
PERESOURCE NTAPI FsRtlAllocateResource (VOID)
 

Variables

PERESOURCE FsRtlPagingIoResources
 
ULONG FsRtlPagingIoResourceSelector
 
KSEMAPHORE FsRtlpUncSemaphore
 
static const UCHAR LegalAnsiCharacterArray []
 
const UCHAR *const FsRtlLegalAnsiCharacterArray = LegalAnsiCharacterArray
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file fsrtlpc.c.

Function Documentation

◆ FsRtlAllocateResource()

PERESOURCE NTAPI FsRtlAllocateResource ( VOID  )

Definition at line 209 of file fsrtlpc.c.

210 {
211  PAGED_CODE();
212 
213  /* Return a preallocated ERESOURCE */
216 }
ULONG FsRtlPagingIoResourceSelector
Definition: fsrtlpc.c:18
#define PAGED_CODE()
Definition: video.h:57
#define FSRTL_MAX_RESOURCES
Definition: fsrtl.h:45
PERESOURCE FsRtlPagingIoResources
Definition: fsrtlpc.c:17

◆ FsRtlInitializeWorkerThread()

INIT_FUNCTION NTSTATUS NTAPI FsRtlInitializeWorkerThread ( VOID  )

Definition at line 150 of file stackovf.c.

151 {
152  ULONG_PTR i;
154  HANDLE ThreadHandle;
156 
157  /* Initialize each queue we have */
158  for (i = 0; i < FSRTLP_MAX_QUEUES; ++i)
159  {
161  NULL,
162  0,
163  NULL,
164  NULL);
165 
166  /* Initialize the queue and its associated thread and pass it the queue ID */
169  0, 0, FsRtlWorkerThread, (PVOID)i);
170  if (!NT_SUCCESS(Status))
171  {
172  return Status;
173  }
174 
175  /* Don't leak handle */
176  ZwClose(ThreadHandle);
177  }
178 
179  /* Also initialize our fallback event, set it to ensure it's already usable */
181 
182  return Status;
183 }
KEVENT StackOverflowFallbackSerialEvent
Definition: stackovf.c:34
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define FSRTLP_MAX_QUEUES
Definition: stackovf.c:23
#define THREAD_ALL_ACCESS
Definition: nt_native.h:1339
#define TRUE
Definition: types.h:120
VOID NTAPI FsRtlWorkerThread(IN PVOID StartContext)
Definition: stackovf.c:113
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
LONG NTSTATUS
Definition: precomp.h:26
uint32_t ULONG_PTR
Definition: typedefs.h:63
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
Definition: glfuncs.h:248
smooth NULL
Definition: ftsmooth.c:416
KQUEUE FsRtlWorkerQueues[FSRTLP_MAX_QUEUES]
Definition: stackovf.c:36
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24
#define KeInitializeEvent(pEvt, foo, foo2)
Definition: env_spec_w32.h:477
NTSTATUS NTAPI PsCreateSystemThread(OUT PHANDLE ThreadHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, IN HANDLE ProcessHandle, IN PCLIENT_ID ClientId, IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext)
Definition: thread.c:602
VOID NTAPI KeInitializeQueue(IN PKQUEUE Queue, IN ULONG Count OPTIONAL)
Definition: queue.c:148
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106

Referenced by FsRtlInitSystem().

◆ FsRtlInitSystem()

INIT_FUNCTION BOOLEAN NTAPI FsRtlInitSystem ( VOID  )

Definition at line 161 of file fsrtlpc.c.

162 {
163  ULONG i;
164 
165  /* Initialize the list for granted locks */
167  NULL,
168  NULL,
169  0,
170  sizeof(FILE_LOCK),
171  IFS_POOL_TAG,
172  0);
173 
177 
178  /* Allocate the Resource Buffer */
181  sizeof(ERESOURCE),
182  'eRsF');
183 
184  /* Initialize the Resources */
185  for (i = 0; i < FSRTL_MAX_RESOURCES; i++)
186  {
188  }
189 
191 }
#define ExInitializeResource
Definition: exfuncs.h:346
VOID NTAPI ExInitializePagedLookasideList(IN PPAGED_LOOKASIDE_LIST Lookaside, IN PALLOCATE_FUNCTION Allocate OPTIONAL, IN PFREE_FUNCTION Free OPTIONAL, IN ULONG Flags, IN SIZE_T Size, IN ULONG Tag, IN USHORT Depth)
Definition: lookas.c:274
PVOID NTAPI FsRtlAllocatePoolWithTag(IN POOL_TYPE PoolType, IN ULONG NumberOfBytes, IN ULONG Tag)
Definition: filter.c:229
#define MAXLONG
Definition: umtypes.h:116
PAGED_LOOKASIDE_LIST FsRtlFileLockLookasideList
Definition: filelock.c:17
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
Definition: glfuncs.h:248
INIT_FUNCTION VOID NTAPI FsRtlInitializeLargeMcbs(VOID)
Definition: largemcb.c:478
smooth NULL
Definition: ftsmooth.c:416
#define IFS_POOL_TAG
Definition: tag.h:52
VOID NTAPI KeInitializeSemaphore(IN PKSEMAPHORE Semaphore, IN LONG Count, IN LONG Limit)
Definition: semphobj.c:22
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
KSEMAPHORE FsRtlpUncSemaphore
Definition: unc.c:15
INIT_FUNCTION NTSTATUS NTAPI FsRtlInitializeWorkerThread(VOID)
Definition: stackovf.c:150
#define FSRTL_MAX_RESOURCES
Definition: fsrtl.h:45
INIT_FUNCTION VOID NTAPI FsRtlInitializeTunnels(VOID)
Definition: tunnel.c:199
ULONG ERESOURCE
Definition: env_spec_w32.h:594
unsigned int ULONG
Definition: retypes.h:1
PERESOURCE FsRtlPagingIoResources
Definition: fsrtlpc.c:17

Referenced by Phase1InitializationDiscard().

Variable Documentation

◆ FsRtlLegalAnsiCharacterArray

const UCHAR* const FsRtlLegalAnsiCharacterArray = LegalAnsiCharacterArray

Definition at line 154 of file fsrtlpc.c.

Referenced by START_TEST().

◆ FsRtlPagingIoResources

PERESOURCE FsRtlPagingIoResources

Definition at line 17 of file fsrtlpc.c.

Referenced by FsRtlAllocateResource(), and FsRtlInitSystem().

◆ FsRtlPagingIoResourceSelector

ULONG FsRtlPagingIoResourceSelector

Definition at line 18 of file fsrtlpc.c.

Referenced by FsRtlAllocateResource().

◆ FsRtlpUncSemaphore

KSEMAPHORE FsRtlpUncSemaphore

Definition at line 15 of file unc.c.

Referenced by FsRtlDeregisterUncProvider(), FsRtlInitSystem(), and FsRtlRegisterUncProvider().

◆ LegalAnsiCharacterArray

const UCHAR LegalAnsiCharacterArray[]
static

Definition at line 22 of file fsrtlpc.c.