ReactOS  0.4.13-dev-73-gcfe54aa
pxe.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const DEVVTBLPxeMount (ULONG DeviceId)
 
BOOLEAN PxeInit (VOID)
 

Function Documentation

◆ PxeInit()

BOOLEAN PxeInit ( VOID  )

Definition at line 371 of file pxe.c.

372 {
373  static BOOLEAN Initialized = FALSE;
374  static BOOLEAN Success = FALSE;
375 
376  // Do initialization only once
377  if (Initialized)
378  return Success;
379  Initialized = TRUE;
380 
381  // Check if PXE is available
382  if (GetPxeStructure() && GetCachedInfo())
383  {
384  FsRegisterDevice("net(0)", &PxeDiskVtbl);
385  Success = TRUE;
386  }
387 
388  return Success;
389 }
#define TRUE
Definition: types.h:120
static const DEVVTBL PxeDiskVtbl
Definition: pxe.c:344
static BOOLEAN GetCachedInfo(VOID)
Definition: pxe.c:352
unsigned char BOOLEAN
VOID FsRegisterDevice(CHAR *Prefix, const DEVVTBL *FuncTable)
Definition: fs.c:441
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:74

Referenced by PcDiskGetBootPath().

◆ PxeMount()

const DEVVTBL* PxeMount ( ULONG  DeviceId)

Definition at line 307 of file pxe.c.

308 {
309  if (GetPxeStructure() == NULL)
310  return NULL;
311  return &PxeVtbl;
312 }
static const DEVVTBL PxeVtbl
Definition: pxe.c:299
smooth NULL
Definition: ftsmooth.c:416
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:74

Referenced by ArcOpen().