ReactOS
0.4.15-dev-4863-gba0d16f
|
#include "disk.h"
Go to the source code of this file.
Macros | |
#define | DiskGeometryGuid 0 |
#define | SmartStatusGuid 1 |
#define | SmartDataGuid 2 |
#define | SmartPerformFunction 3 |
#define | AllowDisallowPerformanceHit 1 |
#define | EnableDisableHardwareFailurePrediction 2 |
#define | EnableDisableFailurePredictionPolling 3 |
#define | GetFailurePredictionCapability 4 |
#define | EnableOfflineDiags 5 |
#define | SmartEventGuid 4 |
#define | SmartThresholdsGuid 5 |
#define | ScsiInfoExceptionsGuid 6 |
#define | DiskReadSmartData(FdoExtension, SrbControl, BufferSize) |
#define | DiskReadSmartThresholds(FdoExtension, SrbControl, BufferSize) |
#define | DiskReadSmartStatus(FdoExtension, SrbControl, BufferSize) |
#define | DiskGetIdentifyData(FdoExtension, SrbControl, BufferSize) |
Variables | |
IO_WORKITEM_ROUTINE | DiskReregWorker |
IO_COMPLETION_ROUTINE | DiskInfoExceptionComplete |
SINGLE_LIST_ENTRY | DiskReregHead |
KSPIN_LOCK | DiskReregSpinlock |
LONG | DiskReregWorkItems |
GUIDREGINFO | DiskWmiFdoGuidList [] |
GUID | DiskPredictFailureEventGuid = WMI_STORAGE_PREDICT_FAILURE_EVENT_GUID |
#define DiskGetIdentifyData | ( | FdoExtension, | |
SrbControl, | |||
BufferSize | |||
) |
#define DiskReadSmartData | ( | FdoExtension, | |
SrbControl, | |||
BufferSize | |||
) |
#define DiskReadSmartStatus | ( | FdoExtension, | |
SrbControl, | |||
BufferSize | |||
) |
#define DiskReadSmartThresholds | ( | FdoExtension, | |
SrbControl, | |||
BufferSize | |||
) |
NTSTATUS DiskDetectFailurePrediction | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PFAILURE_PREDICTION_METHOD | FailurePredictCapability, | ||
BOOLEAN | ScsiAddressAvailable | ||
) |
Definition at line 2230 of file diskwmi.c.
Referenced by DiskInitFdo().
|
static |
Definition at line 293 of file diskwmi.c.
Referenced by DiskEnableDisableFailurePrediction().
_inline NTSTATUS DiskDisableSmartAttributeAutosave | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 337 of file diskwmi.c.
NTSTATUS DiskEnableDisableFailurePrediction | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
BOOLEAN | Enable | ||
) |
Definition at line 1126 of file diskwmi.c.
Referenced by DiskEnableDisableFailurePredictPolling(), DiskFdoExecuteWmiMethod(), DiskIoctlEnableFailurePrediction(), and DiskWmiFunctionControl().
NTSTATUS DiskEnableDisableFailurePredictPolling | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
BOOLEAN | Enable, | ||
ULONG | PollTimeInSeconds | ||
) |
Definition at line 1193 of file diskwmi.c.
Referenced by DiskFdoExecuteWmiMethod(), DiskInitFdo(), and DiskWmiFunctionControl().
NTSTATUS DiskEnableInfoExceptions | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
_In_ BOOLEAN | Enable | ||
) |
Definition at line 979 of file diskwmi.c.
Referenced by DiskIoctlEnableFailurePrediction().
|
static |
Definition at line 271 of file diskwmi.c.
Referenced by DiskDetectFailurePrediction(), and DiskEnableDisableFailurePrediction().
_inline NTSTATUS DiskEnableSmartAttributeAutosave | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 315 of file diskwmi.c.
|
static |
Definition at line 359 of file diskwmi.c.
Referenced by DiskFdoExecuteWmiMethod().
NTSTATUS NTAPI DiskFdoExecuteWmiMethod | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | MethodId, | ||
IN ULONG | InBufferSize, | ||
IN ULONG | OutBufferSize, | ||
IN PUCHAR | Buffer | ||
) |
Definition at line 3045 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoQueryWmiDataBlock | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | BufferAvail, | ||
OUT PUCHAR | Buffer | ||
) |
Definition at line 2638 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoQueryWmiRegInfo | ( | IN PDEVICE_OBJECT | DeviceObject, |
OUT ULONG * | RegFlags, | ||
OUT PUNICODE_STRING | InstanceName | ||
) |
Definition at line 2479 of file diskwmi.c.
Referenced by DiskFdoQueryWmiRegInfoEx(), and DriverEntry().
NTSTATUS NTAPI DiskFdoQueryWmiRegInfoEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
OUT ULONG * | RegFlags, | ||
OUT PUNICODE_STRING | InstanceName, | ||
OUT PUNICODE_STRING | MofName | ||
) |
Definition at line 2577 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoSetWmiDataBlock | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | BufferSize, | ||
IN PUCHAR | Buffer | ||
) |
Definition at line 2869 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoSetWmiDataItem | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | DataItemId, | ||
IN ULONG | BufferSize, | ||
IN PUCHAR | Buffer | ||
) |
Definition at line 2975 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS DiskGetIdentifyInfo | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PBOOLEAN | SupportSmart | ||
) |
Definition at line 813 of file diskwmi.c.
Referenced by DiskDetectFailurePrediction().
NTSTATUS DiskGetModePage | ( | _In_ PDEVICE_OBJECT | Fdo, |
_In_ UCHAR | PageMode, | ||
_In_ UCHAR | PageControl, | ||
_In_ PMODE_PARAMETER_HEADER | ModeData, | ||
_Inout_ PULONG | ModeDataSize, | ||
_Out_ PVOID * | PageData | ||
) |
Definition at line 903 of file diskwmi.c.
Referenced by DiskEnableInfoExceptions().
NTSTATUS DiskInfoExceptionCheck | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 1922 of file diskwmi.c.
Referenced by DiskDetectFailurePrediction().
NTSTATUS NTAPI DiskInfoExceptionComplete | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PVOID | Context | ||
) |
Definition at line 1648 of file diskwmi.c.
Definition at line 1560 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS DiskPerformSmartCommand | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN ULONG | SrbControlCode, | ||
IN UCHAR | Command, | ||
IN UCHAR | Feature, | ||
IN UCHAR | SectorCount, | ||
IN UCHAR | SectorNumber, | ||
IN OUT PSRB_IO_CONTROL | SrbControl, | ||
OUT PULONG | BufferSize | ||
) |
Definition at line 476 of file diskwmi.c.
Referenced by DiskDisableSmart(), DiskDisableSmartAttributeAutosave(), DiskEnableSmart(), DiskEnableSmartAttributeAutosave(), DiskExecuteSmartDiagnostics(), DiskReadSmartLog(), and DiskWriteSmartLog().
NTSTATUS DiskPostReregisterRequest | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 1577 of file diskwmi.c.
Referenced by DiskInfoExceptionComplete().
NTSTATUS DiskReadFailurePredictData | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PSTORAGE_FAILURE_PREDICT_DATA | DiskSmartData | ||
) |
Definition at line 1327 of file diskwmi.c.
Referenced by DiskIoctlPredictFailure().
NTSTATUS DiskReadFailurePredictStatus | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PSTORAGE_FAILURE_PREDICT_STATUS | DiskSmartStatus | ||
) |
Definition at line 1251 of file diskwmi.c.
Referenced by DiskDetectFailurePrediction(), and DiskIoctlPredictFailure().
NTSTATUS DiskReadFailurePredictThresholds | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PSTORAGE_FAILURE_PREDICT_THRESHOLDS | DiskSmartThresholds | ||
) |
Definition at line 1417 of file diskwmi.c.
Referenced by DiskFdoQueryWmiDataBlock().
NTSTATUS DiskReadSmartLog | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN UCHAR | SectorCount, | ||
IN UCHAR | LogAddress, | ||
OUT PUCHAR | Buffer | ||
) |
Definition at line 379 of file diskwmi.c.
Referenced by DiskFdoExecuteWmiMethod().
Definition at line 1499 of file diskwmi.c.
NTSTATUS DiskSendFailurePredictIoctl | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PSTORAGE_PREDICT_FAILURE | checkFailure | ||
) |
Definition at line 854 of file diskwmi.c.
Referenced by DiskDetectFailurePrediction(), and DiskFdoQueryWmiDataBlock().