ReactOS 0.4.15-dev-7958-gcd0bb1a
filter.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for filter.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOLEAN NTAPI FsRtlIsTotalDeviceFailure (IN NTSTATUS NtStatus)
 
BOOLEAN NTAPI FsRtlIsNtstatusExpected (IN NTSTATUS NtStatus)
 
NTSTATUS NTAPI FsRtlNormalizeNtstatus (IN NTSTATUS NtStatusToNormalize, IN NTSTATUS NormalizedNtStatus)
 
PVOID NTAPI FsRtlAllocatePool (IN POOL_TYPE PoolType, IN ULONG NumberOfBytes)
 
PVOID NTAPI FsRtlAllocatePoolWithQuota (IN POOL_TYPE PoolType, IN ULONG NumberOfBytes)
 
PVOID NTAPI FsRtlAllocatePoolWithQuotaTag (IN POOL_TYPE PoolType, IN ULONG NumberOfBytes, IN ULONG Tag)
 
PVOID NTAPI FsRtlAllocatePoolWithTag (IN POOL_TYPE PoolType, IN ULONG NumberOfBytes, IN ULONG Tag)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file filter.c.

Function Documentation

◆ FsRtlAllocatePool()

PVOID NTAPI FsRtlAllocatePool ( IN POOL_TYPE  PoolType,
IN ULONG  NumberOfBytes 
)

Definition at line 116 of file filter.c.

118{
120
124
125 if (NULL == Address)
126 {
128 }
129
130 return Address;
131}
#define NULL
Definition: types.h:112
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
#define ExRaiseStatus
Definition: ntoskrnl.h:114
static WCHAR Address[46]
Definition: ping.c:68
#define IFS_POOL_TAG
Definition: tag.h:67
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
Definition: iotypes.h:1036

◆ FsRtlAllocatePoolWithQuota()

PVOID NTAPI FsRtlAllocatePoolWithQuota ( IN POOL_TYPE  PoolType,
IN ULONG  NumberOfBytes 
)

Definition at line 152 of file filter.c.

154{
156
160 if (NULL == Address)
161 {
163 }
164 return Address;
165}
#define ExAllocatePoolWithQuotaTag(a, b, c)
Definition: exfuncs.h:530

◆ FsRtlAllocatePoolWithQuotaTag()

PVOID NTAPI FsRtlAllocatePoolWithQuotaTag ( IN POOL_TYPE  PoolType,
IN ULONG  NumberOfBytes,
IN ULONG  Tag 
)

Definition at line 189 of file filter.c.

192{
194
197 Tag);
198
199 if (NULL == Address)
200 {
202 }
203
204 return Address;
205}
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4065

Referenced by FatBufferUserBuffer().

◆ FsRtlAllocatePoolWithTag()

◆ FsRtlIsNtstatusExpected()

◆ FsRtlIsTotalDeviceFailure()

BOOLEAN NTAPI FsRtlIsTotalDeviceFailure ( IN NTSTATUS  NtStatus)

Definition at line 37 of file filter.c.

38{
39 return((NT_SUCCESS(NtStatus)) ||
40 (STATUS_CRC_ERROR == NtStatus) ||
41 (STATUS_DEVICE_DATA_ERROR == NtStatus) ? FALSE : TRUE);
42}
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define STATUS_CRC_ERROR
Definition: udferr_usr.h:153
#define STATUS_DEVICE_DATA_ERROR
Definition: udferr_usr.h:159

Referenced by _Requires_lock_held_(), FatPagingFileErrorHandler(), and IopMountVolume().

◆ FsRtlNormalizeNtstatus()

NTSTATUS NTAPI FsRtlNormalizeNtstatus ( IN NTSTATUS  NtStatusToNormalize,
IN NTSTATUS  NormalizedNtStatus 
)

Definition at line 90 of file filter.c.

92{
93 return(TRUE == FsRtlIsNtstatusExpected(NtStatusToNormalize)) ?
94 NtStatusToNormalize : NormalizedNtStatus;
95}
BOOLEAN NTAPI FsRtlIsNtstatusExpected(IN NTSTATUS NtStatus)
Definition: filter.c:61

Referenced by _Requires_lock_held_(), and CdRaiseStatusEx().