Cancel-safe queu with multiple requested buffers.



I have question with Cancel-safe queue problem.

I implemented a Cancle-safe queue inside my driver. In the application, it
makes a request using the overlay I/O with single buffer by calling
DeviceIoControll. So far so good and it works as I expect. However, I found
that using a signle buffer is a little bit slow in performance. I plan to
change

to use a multiple-buffer scheme. Here is my concerns

1. Can the multiple-buffer scheme improve the driver perforamce?

2. Do I need to create a different event for each buffer in application when
making the overlay I/O call? Can I use one single event for all requested
buffers?



.



Relevant Pages

  • Re: Using MMX/XMM registers and ops in x64 kernel mode thread
    ... Clients of my driver are user level processes. ... Let's say I have a packed data within my driver buffer I just received ... intermediate memory buffer and copy them to clients upon request. ...
    (microsoft.public.development.device.drivers)
  • Re: Difference between synchronous and asynchronous operation/calls (NDISPROT)
    ... In synchronous mode it seems the driver uses it's own buffers and it only ... Driver uses it's own single buffer and receives data into the buffer. ... The copy is ofcourse bad because copieing costs cpu time. ... Maybe because it issued it's own i/o completion request which is associated ...
    (microsoft.public.development.device.drivers)
  • Re: Interaction between Kernel Mode driver and user mode application
    ... app post a request with buffer which will receive data from the driver. ... The request can be ReadFile or DeviceIoControl. ... Get the buffer ptr to fill, depending on what I/O method you are using. ... Pending IOCTLs are the best idea. ...
    (microsoft.public.development.device.drivers)
  • How to read from an EvtIoRead buffer?
    ... When an application issues a readrequest to my driver, the framework ... creates a single intermediate buffer that my driver fills. ...
    (microsoft.public.development.device.drivers)
  • [NT] Vulnerability Report for Windows SMB DoS
    ... cross-platform mechanism for client systems to request file services from ... In order to exploit the vulnerability a user account is needed for the ... is therefore vulnerable to a denial of service attack. ... Later in the processing of the request, at SRV.SYS+33209h another buffer ...
    (Securiteam)