Age | Commit message (Collapse) | Author | Files | Lines |
|
This reverts commit 32aadcb4fe2b13fce8df679f729ad24e64c746a7.
Reverting commit because a regression was discovered on some devices.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
To avoid "BABBLE" conditions.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
This patch makes code ready for other lock types like RW-locks
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Change ExecutionLevel for redirector data queue
to WdfExecutionLevelDispatch.
There is no real reason to force USB transfers exection
on PASSIVE_LEVEL and DISPATCH_LEVEL execution is definitely
faster.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
To avoid implicit CWdfRequest objects construction
and requests completion.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
WARNING: This patch breaks compilation of client code
due to changes in interface structures.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
This is a cosmetic change that unifies naming convention
in UsbDk public API.
WARNING: This change breaks compilation of client code.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
USB target will be deleted together with its parent device
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
This patch makes filter object reference counting objects and
ensures reference is help to filter objects while they are in use.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Redirection object is a refcountong object and cannot
be leter with operator delete().
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Needed to allow user mode handle creation attempts
after underlying WDF device deletion.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
This patch fixes issue reported at
https://github.com/daynix/UsbDk/issues/11
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
This commit moves processing of AddRedirect IOCTL from
IoInCallerContext callback of control device to normal
default queue DeviceIoControl callback.
This change eliminates posibility for parallel execution
of AddRedirect and other operations, particularly RemoveRedirect.
Initially AddRedirect was perfomed in IoInCallerContext callback
to open user mode handle to the device being redirected in context
of correct user mode process. This patch achieves the same goal
by storing caller's process handle in request context in
IoInCallerContext callback and duplicating handle to the original
calling process from queue's DeviceIoControl callback.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Leonid Bloch <leonid@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Needed for WoW64 clients.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
This commit fixes issues with accessing USB devices on
some USB host controllers.
Before this fix UsbDk assumed IO type NEITHER for
ReadFile/WriteFile operations performed on captured
USB device. This assumption is not true in some cases
because UsbDk creates filter devices which use the
same IO type as device being filtered, i.e. IO type
is effectively defined by USB host controller driver.
While some host controllers work in NEITHER IO mode,
others use DIRECT IO instead. When capturing device
plugged into such a controller UsbDk failed to retrieve
ReadFile/WriteFile buffers because there are different API
used different IO types and UsbDk used the wrond one.
This patch changes UsbDk DLL/Driver interface to use IOCTL
for ReadPipe/WritePipe operations. Since IO type for IOCTL
requests is determined by IOCTL code and not by target device
settings UsbDk need not consider IO type used by the host
controller being filtered.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|
|
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
|