ReactOS 0.4.16-dev-336-gb667d82
|
#include <ntifs.h>
#include <mountdev.h>
#include <ntddvol.h>
#include <ntdddisk.h>
#include <ndk/psfuncs.h>
#include <ndk/section_attribs.h>
#include <ioevent.h>
#include <stdio.h>
#include <debug/driverdbg.h>
#include "debug.h"
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Classes | |
struct | _DISK_GEOMETRY_EX_INTERNAL |
union | _BASIC_VOLUME_UNIQUE_ID |
struct | _FDO_EXTENSION |
struct | _PARTITION_EXTENSION |
Macros | |
#define | TAG_PARTMGR 'MtrP' |
#define | DMIO_ID_SIGNATURE (*(ULONGLONG*)"DMIO:ID:") |
Typedefs | |
typedef struct _DISK_GEOMETRY_EX_INTERNAL | DISK_GEOMETRY_EX_INTERNAL |
typedef struct _DISK_GEOMETRY_EX_INTERNAL * | PDISK_GEOMETRY_EX_INTERNAL |
typedef union _BASIC_VOLUME_UNIQUE_ID | BASIC_VOLUME_UNIQUE_ID |
typedef union _BASIC_VOLUME_UNIQUE_ID * | PBASIC_VOLUME_UNIQUE_ID |
typedef struct _FDO_EXTENSION | FDO_EXTENSION |
typedef struct _FDO_EXTENSION * | PFDO_EXTENSION |
typedef struct _PARTITION_EXTENSION | PARTITION_EXTENSION |
typedef struct _PARTITION_EXTENSION * | PPARTITION_EXTENSION |
typedef union _BASIC_VOLUME_UNIQUE_ID BASIC_VOLUME_UNIQUE_ID |
typedef struct _FDO_EXTENSION FDO_EXTENSION |
typedef union _BASIC_VOLUME_UNIQUE_ID * PBASIC_VOLUME_UNIQUE_ID |
typedef struct _FDO_EXTENSION * PFDO_EXTENSION |
typedef struct _PARTITION_EXTENSION * PPARTITION_EXTENSION |
C_ASSERT | ( | RTL_FIELD_SIZE(BASIC_VOLUME_UNIQUE_ID, Gpt) | = =0x18 | ) |
C_ASSERT | ( | RTL_FIELD_SIZE(BASIC_VOLUME_UNIQUE_ID, Mbr) | = =0x0C | ) |
Definition at line 5 of file utils.c.
NTSTATUS IssueSyncIoControlRequest | ( | _In_ UINT32 | IoControlCode, |
_In_ PDEVICE_OBJECT | DeviceObject, | ||
_In_ PVOID | InputBuffer, | ||
_In_ ULONG | InputBufferLength, | ||
_In_ PVOID | OutputBuffer, | ||
_In_ ULONG | OutputBufferLength, | ||
_In_ BOOLEAN | InternalDeviceIoControl | ||
) |
Definition at line 19 of file utils.c.
Referenced by FdoHandleStartDevice(), FdoIoctlDiskGetDriveGeometryEx(), PartMgrRefreshDiskData(), and VolumeDeleteMountPoints().
NTSTATUS PartitionCreateDevice | ( | _In_ PDEVICE_OBJECT | FDObject, |
_In_ PPARTITION_INFORMATION_EX | PartitionEntry, | ||
_In_ UINT32 | OnDiskNumber, | ||
_In_ PARTITION_STYLE | PartitionStyle, | ||
_Out_ PDEVICE_OBJECT * | PDO | ||
) |
Definition at line 15 of file partition.c.
Referenced by PartMgrUpdatePartitionDevices().
NTSTATUS PartitionHandleDeviceControl | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PIRP | Irp | ||
) |
Definition at line 563 of file partition.c.
Referenced by PartMgrDeviceControl().
NTSTATUS PartitionHandlePnp | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PIRP | Irp | ||
) |
Definition at line 499 of file partition.c.
Referenced by PartMgrPnp().
NTSTATUS PartitionHandleRemove | ( | _In_ PPARTITION_EXTENSION | PartExt, |
_In_ BOOLEAN | FinalRemove | ||
) |
Definition at line 276 of file partition.c.
Referenced by FdoHandleSurpriseRemoval(), PartitionHandlePnp(), and PartMgrUpdatePartitionDevices().
FORCEINLINE VOID PartMgrAcquireLayoutLock | ( | _In_ PFDO_EXTENSION | FDOExtension | ) |
Definition at line 202 of file partmgr.h.
Referenced by FdoHandleDeviceRelations(), FdoIoctlDiskCreateDisk(), FdoIoctlDiskDeleteDriveLayout(), FdoIoctlDiskGetDriveGeometryEx(), FdoIoctlDiskGetDriveLayout(), FdoIoctlDiskGetDriveLayoutEx(), FdoIoctlDiskGetPartitionInfo(), FdoIoctlDiskGetPartitionInfoEx(), FdoIoctlDiskSetDriveLayout(), FdoIoctlDiskSetDriveLayoutEx(), FdoIoctlDiskUpdateProperties(), PartitionHandleDeviceControl(), and PartitionHandleQueryId().
FORCEINLINE VOID PartMgrReleaseLayoutLock | ( | _In_ PFDO_EXTENSION | FDOExtension | ) |
Definition at line 212 of file partmgr.h.
Referenced by FdoHandleDeviceRelations(), FdoIoctlDiskCreateDisk(), FdoIoctlDiskDeleteDriveLayout(), FdoIoctlDiskGetDriveGeometryEx(), FdoIoctlDiskGetDriveLayout(), FdoIoctlDiskGetDriveLayoutEx(), FdoIoctlDiskGetPartitionInfo(), FdoIoctlDiskGetPartitionInfoEx(), FdoIoctlDiskSetDriveLayout(), FdoIoctlDiskSetDriveLayoutEx(), FdoIoctlDiskUpdateProperties(), PartitionHandleDeviceControl(), and PartitionHandleQueryId().
Definition at line 187 of file partmgr.h.
Referenced by FdoIoctlDiskCreateDisk(), FdoIoctlDiskSetDriveLayout(), FdoIoctlDiskSetDriveLayoutEx(), PartitionHandleDeviceControl(), and ScsiPortDeviceControl().
Definition at line 172 of file partmgr.h.
Referenced by FdoIoctlDiskGetDriveLayout(), FdoIoctlDiskGetDriveLayoutEx(), FdoIoctlDiskGetPartitionInfo(), FdoIoctlDiskGetPartitionInfoEx(), PartitionHandleDeviceControl(), and ScsiPortDeviceControl().