|
ReactOS 0.4.17-dev-1371-g303d27d
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Functions | |
| static ULONG NTAPI | UcxTableEntriesForMinor (_In_ ULONG Minor) |
| _IRQL_requires_ (PASSIVE_LEVEL) NTSTATUS NTAPI UcxOnClassLoad(VOID) | |
| Sends a synchronous IOCTL to the specified device object. | |
| PAGED_CODE () | |
| if (ClientGlobals==NULL) | |
| if (ClassBindInfo->Version.Major !=UCX_CLASS_MAJOR_VERSION||Minor > UCX_CLASS_MINOR_VERSION) | |
| if (ClassBindInfo->FunctionTableCount !=UcxTableEntriesForMinor(Minor)) | |
| RtlCopyMemory (ClassBindInfo->FunctionTable, UcxExportTable, ClassBindInfo->FunctionTableCount *sizeof(UcxExportTable[0])) | |
| if (Globals==NULL) | |
| DPRINT ("Bound UCX 1.%lu client, globals %p\n", Minor, Globals) | |
| UNREFERENCED_PARAMETER (ComponentGlobals) | |
| DPRINT ("Unbinding client globals %p\n", *ClientGlobals) | |
Variables | |
| WDF_CLASS_LIBRARY_INFO | UcxClassLibraryInfo |
| _Outptr_ PWDF_COMPONENT_GLOBALS * | ComponentGlobals |
| PUCX_DRIVER_GLOBALS | Globals = (PUCX_DRIVER_GLOBALS)ExAllocatePoolZero(NonPagedPool, sizeof(*Globals), UCX_POOL_TAG) |
| ULONG | Minor = ClassBindInfo->Version.Minor |
| ClientGlobals = (PUCX_DRIVER_GLOBALS *)ClassBindInfo->ClassBindInfo | |
| Globals | Size = sizeof(*Globals) |
| Globals | WdfDriverGlobals = (PWDF_DRIVER_GLOBALS)ComponentGlobals |
| return | STATUS_SUCCESS |
| #define NDEBUG |
Definition at line 10 of file classlib.cpp.
| _IRQL_requires_ | ( | PASSIVE_LEVEL | ) |
Sends a synchronous IOCTL to the specified device object.
| [in] | IoControlCode | The IOCTL to send to the device. |
| [in] | DeviceObject | Pointer to the device object that will handle the IOCTL. |
| [in] | InputBuffer | Optional pointer to a buffer containing input data for the IOCTL. When specified, the buffer should be at least of InputBufferLength size. |
| [in] | InputBufferLength | Size in bytes, of the buffer pointed by InputBuffer. |
| [out] | OutputBuffer | Optional pointer to a buffer that will receive output data from the IOCTL. When specified, the buffer should be at least of OutputBufferLength size. |
| [in] | OutputBufferLength | Size in bytes, of the buffer pointed by OutputBuffer. |
| [in] | FileObject | Optional pointer to a file object that may be necessary for the IOCTL. |
Definition at line 42 of file classlib.cpp.
| DPRINT | ( | "Unbinding client globals %p\n" | , |
| * | ClientGlobals | ||
| ) |
| if | ( | ClassBindInfo->FunctionTableCount ! | = UcxTableEntriesForMinor(Minor) | ) |
Definition at line 95 of file classlib.cpp.
| if | ( | ClassBindInfo->Version.Major ! | = UCX_CLASS_MAJOR_VERSION || Minor, |
| UCX_CLASS_MINOR_VERSION | |||
| ) |
Definition at line 88 of file classlib.cpp.
| if | ( | ClientGlobals | = =NULL | ) |
Definition at line 78 of file classlib.cpp.
Definition at line 107 of file classlib.cpp.
| PAGED_CODE | ( | ) |
Referenced by _IRQL_requires_().
| RtlCopyMemory | ( | ClassBindInfo-> | FunctionTable, |
| UcxExportTable | , | ||
| ClassBindInfo->FunctionTableCount * | sizeofUcxExportTable[0] | ||
| ) |
Definition at line 29 of file classlib.cpp.
| UNREFERENCED_PARAMETER | ( | ComponentGlobals | ) |
| * ClientGlobals = (PUCX_DRIVER_GLOBALS *)ClassBindInfo->ClassBindInfo |
Definition at line 77 of file classlib.cpp.
Referenced by WdfVersionBindClass().
| _In_ PWDF_COMPONENT_GLOBALS * ComponentGlobals |
Definition at line 69 of file classlib.cpp.
Referenced by WdfVersionBind(), and WdfVersionUnbind().
| Globals = (PUCX_DRIVER_GLOBALS)ExAllocatePoolZero(NonPagedPool, sizeof(*Globals), UCX_POOL_TAG) |
Definition at line 72 of file classlib.cpp.
| Minor = ClassBindInfo->Version.Minor |
Definition at line 73 of file classlib.cpp.
Referenced by GetVersionInformationFromInfFile(), HalpDispatchPnp(), XhciRootHub::HighestUsbVersion(), if(), IsOsVersionGreaterThanOrEqualTo(), _FX_DRIVER_GLOBALS::IsVerificationEnabled(), _FX_DRIVER_GLOBALS::IsVersionGreaterThanOrEqualTo(), QueryAvailableFileSystemFormat(), RamdiskPnp(), TreeView_Set3StateCheck(), UcxTableEntriesForMinor(), USBH_FdoPnP(), USBH_FdoPower(), USBH_PdoPnP(), USBH_PdoPower(), USBPORT_FdoPnP(), USBPORT_PdoPnP(), VgaInterpretCmdStream(), WdmlibRtlIsNtDdiVersionAvailable(), and WsProcSetVersion().
| return STATUS_SUCCESS |
Definition at line 118 of file classlib.cpp.
Referenced by _IRQL_requires_().
| WDF_CLASS_LIBRARY_INFO UcxClassLibraryInfo |
Definition at line 15 of file classlib.cpp.
| Globals WdfDriverGlobals = (PWDF_DRIVER_GLOBALS)ComponentGlobals |
Definition at line 114 of file classlib.cpp.
Referenced by _IRQL_requires_max_(), _Outptr_opt_result_bytebuffer_(), _Success_(), _When_(), FxLibraryCommonRegisterClient(), FxLibraryCommonUnregisterClient(), WDF_LIBRARY_REGISTER_CLIENT(), WDF_LIBRARY_UNREGISTER_CLIENT(), WdfDriverMiniportUnload(), WdfGetDriver(), WdfGetTriageInfo(), WdfInterruptGetDevice(), WdfInterruptQueueDpcForIsr(), WdfInterruptQueueWorkItemForIsr(), WdfInterruptWdmGetInterrupt(), WdfObjectAllocateContext(), WdfObjectContextGetObject(), WdfObjectDereferenceActual(), WdfObjectGetTypedContextWorker(), WdfObjectReferenceActual(), WdfRequestSend(), WdfVerifierDbgBreakPoint(), WdfVerifierKeBugCheck(), and WdfWaitLockAcquire().