ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | FxContextHeader |
Macros | |
#define | FX_CONTEXT_HEADER_SIZE FIELD_OFFSET(FxContextHeader, Context) |
#define | COMPUTE_RAW_OBJECT_SIZE(_rawObjectSize) ((USHORT) WDF_ALIGN_SIZE_UP(_rawObjectSize, MEMORY_ALLOCATION_ALIGNMENT)) |
#define | COMPUTE_OBJECT_SIZE(_rawObjectSize, _extraSize) (COMPUTE_RAW_OBJECT_SIZE(_rawObjectSize) + (USHORT) WDF_ALIGN_SIZE_UP(_extraSize, MEMORY_ALLOCATION_ALIGNMENT)) |
#define COMPUTE_OBJECT_SIZE | ( | _rawObjectSize, | |
_extraSize | |||
) | (COMPUTE_RAW_OBJECT_SIZE(_rawObjectSize) + (USHORT) WDF_ALIGN_SIZE_UP(_extraSize, MEMORY_ALLOCATION_ALIGNMENT)) |
Definition at line 107 of file fxhandle.h.
#define COMPUTE_RAW_OBJECT_SIZE | ( | _rawObjectSize | ) | ((USHORT) WDF_ALIGN_SIZE_UP(_rawObjectSize, MEMORY_ALLOCATION_ALIGNMENT)) |
Definition at line 100 of file fxhandle.h.
#define FX_CONTEXT_HEADER_SIZE FIELD_OFFSET(FxContextHeader, Context) |
Definition at line 98 of file fxhandle.h.
_Must_inspect_result_ NTSTATUS FxCalculateObjectTotalSize | ( | __in PFX_DRIVER_GLOBALS | FxDriverGlobals, |
__in USHORT | RawObjectSize, | ||
__in USHORT | ExtraSize, | ||
__in_opt PWDF_OBJECT_ATTRIBUTES | Attributes, | ||
__out size_t * | Total | ||
) |
Definition at line 147 of file handleapi.cpp.
Referenced by FxObjectAllocateContext(), FxObjectHandleAlloc(), FxLookasideList::InitializeLookaside(), and VfAllocateContext().
_Must_inspect_result_ NTSTATUS FxCalculateObjectTotalSize2 | ( | __in PFX_DRIVER_GLOBALS | FxDriverGlobals, |
__in USHORT | RawObjectSize, | ||
__in USHORT | ExtraSize, | ||
__in size_t | ContextSize, | ||
__out size_t * | Total | ||
) |
Definition at line 73 of file handleapi.cpp.
Referenced by FxCalculateObjectTotalSize(), and FxDevice::Initialize().
VOID FxContextHeaderInit | ( | __in FxContextHeader * | Header, |
__in FxObject * | Object, | ||
__in_opt PWDF_OBJECT_ATTRIBUTES | Attributes | ||
) |
Definition at line 248 of file handleapi.cpp.
Referenced by FxObjectAllocateContext(), FxObjectAndHandleHeaderInit(), and VfAddContextToHandle().
size_t FxGetContextSize | ( | __in_opt PWDF_OBJECT_ATTRIBUTES | Attributes | ) |
Definition at line 38 of file handleapi.cpp.
Referenced by FxCalculateObjectTotalSize(), and FxDevice::Initialize().
_Must_inspect_result_ NTSTATUS FxObjectAllocateContext | ( | __in FxObject * | Object, |
__in PWDF_OBJECT_ATTRIBUTES | Attributes, | ||
__in BOOLEAN | AllowCallbacksOnly, | ||
__deref_opt_out PVOID * | Context | ||
) |
Definition at line 397 of file handleapi.cpp.
Referenced by FxPkgGeneral::OnCreate(), and FxUsbInterface::UpdatePipeAttributes().
PVOID FxObjectAndHandleHeaderInit | ( | __in PFX_DRIVER_GLOBALS | FxDriverGlobals, |
__in PVOID | AllocationStart, | ||
__in USHORT | ObjectSize, | ||
__in_opt PWDF_OBJECT_ATTRIBUTES | Attributes, | ||
__in FxObjectType | ObjectType | ||
) |
Definition at line 292 of file handleapi.cpp.
Referenced by FxDevice::AllocateRequestMemory(), FxObjectHandleAlloc(), FxMemoryBufferFromPoolLookaside::operator new(), and FxMemoryBufferFromLookaside::operator new().
Definition at line 240 of file fxhandle.h.
Referenced by FxUsbDevice::IsObjectDisposedOnRemove().
PVOID FxObjectHandleAlloc | ( | __in PFX_DRIVER_GLOBALS | FxDriverGlobals, |
__in POOL_TYPE | PoolType, | ||
__in size_t | Size, | ||
__in ULONG | Tag, | ||
__in_opt PWDF_OBJECT_ATTRIBUTES | Attributes, | ||
__in USHORT | ExtraSize, | ||
__in FxObjectType | ObjectType | ||
) |
Definition at line 163 of file handleapi.cpp.
VOID __inline FxObjectHandleCreate | ( | __in FxObject * | Object, |
__out PWDFOBJECT | Handle | ||
) |
Definition at line 176 of file fxhandle.h.
Referenced by FxObject::Commit().
VOID __inline FxObjectHandleGetGlobals | ( | __in PFX_DRIVER_GLOBALS | CallersGlobals, |
__in WDFOBJECT | Handle, | ||
__out PFX_DRIVER_GLOBALS * | ObjectGlobals | ||
) |
Definition at line 453 of file fxhandle.h.
Referenced by if().
__inline VOID FxObjectHandleGetPtr | ( | __in PFX_DRIVER_GLOBALS | FxDriverGlobals, |
__in WDFOBJECT | Handle, | ||
__in WDFTYPE | Type, | ||
__out PVOID * | PPObject | ||
) |
Definition at line 283 of file fxhandle.h.
Referenced by FxObjectHandleGetPtrAndGlobals().
VOID __inline FxObjectHandleGetPtrAndGlobals | ( | __in PFX_DRIVER_GLOBALS | CallersGlobals, |
__in WDFOBJECT | Handle, | ||
__in WDFTYPE | Type, | ||
__out PVOID * | PPObject, | ||
__out PFX_DRIVER_GLOBALS * | ObjectGlobals | ||
) |
Definition at line 414 of file fxhandle.h.
Referenced by FxObjectHandleGetGlobals().
__inline VOID FxObjectHandleGetPtrOffset | ( | __in PFX_DRIVER_GLOBALS | FxDriverGlobals, |
__in WDFOBJECT | Handle, | ||
__in WDFTYPE | Type, | ||
__out PVOID * | PPObject, | ||
__out PWDFOBJECT_OFFSET | Offset | ||
) |
Definition at line 345 of file fxhandle.h.
VOID FxObjectHandleGetPtrQI | ( | __in FxObject * | Object, |
__out PVOID * | PPObject, | ||
__in WDFOBJECT | Handle, | ||
__in WDFTYPE | Type, | ||
__in WDFOBJECT_OFFSET | Offset | ||
) |
Definition at line 347 of file handleapi.cpp.
Referenced by FxObjectHandleGetPtr(), and FxObjectHandleGetPtrOffset().