Iam facing this strange problem where in i use IoCallDriver sending
an Irp allocated by IoAllocateIrp. This call doesn’t return at all. And the
system neither hangs nor crashes. Only the driver stops functioning. What
might be the problem?
Thanks,
Sesha.
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************
When you say IoCallDriver does not return, do you imply that your thread is
blocked or do you say that your IRP never got completed ? In the first case
you can look at the stack trace to which lower driver blocked your thread.
In the second case, its quite possible your IRP is queued and the lower
driver never got around to completing it. You have to figure out the driver
and go from there.
–
Nar Ganapathy
Windows Core OS group
This posting is provided “AS IS” with no warranties, and confers no rights.
“Seshagiri_Babu” wrote in message
news:xxxxx@ntdev…
>
> Iam facing this strange problem where in i use IoCallDriver sending
> an Irp allocated by IoAllocateIrp. This call doesn’t return at all. And
the
> system neither hangs nor crashes. Only the driver stops functioning. What
> might be the problem?
>
> Thanks,
> Sesha.
>
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
> distribution or forwarding of any or all of the contents in this message
is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
>
>
>
>
Sesha,
I’ve done this quite successfully to call the IOCTLs of one driver from
another. One difference though: I used the more specialized
IoBuildDeviceIoControlRequest() instead of IoAllocIrp(). That worked like a
charm. Of course, you don’t have that option, if you’re not trying to call
an IOCTL.
“Seshagiri_Babu” wrote in message
news:xxxxx@ntdev…
>
> Iam facing this strange problem where in i use IoCallDriver sending
> an Irp allocated by IoAllocateIrp. This call doesn’t return at all. And
the
> system neither hangs nor crashes. Only the driver stops functioning. What
> might be the problem?
>
> Thanks,
> Sesha.
>
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
> distribution or forwarding of any or all of the contents in this message
is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
>
>
>
>
> another. One difference though: I used the more specialized
IoBuildDeviceIoControlRequest() instead of IoAllocIrp(). That
worked like a
Note that IoBuildDeviceIoControlRequest will link the IRP to a current
thread, and IoAllocateIrp will not.
Max
Hi Joe,
Iam trying to send IOCTL to the other driver. The main advantage
with IoAllocateIrp is u can reuse it. For ex, in my case i’ll will be
passing read requests to the COM port. If one request is pending, i don’t
need to send one more. So in the entire readin life time only one Irp will
suffice. Hence IoAllocateIrp will work fine in THIS case.
From: Joel Corley[SMTP:xxxxx@enseo.com]
Reply To: NT Developers Interest List
Sent: 2002"N8OEZ2"? 2:53
To: NT Developers Interest List
Subject: [ntdev] Re: IoCallDriver doesn’t return
Sesha,
I’ve done this quite successfully to call the IOCTLs of one driver from
another. One difference though: I used the more specialized
IoBuildDeviceIoControlRequest() instead of IoAllocIrp(). That worked like
a
charm. Of course, you don’t have that option, if you’re not trying to
call
an IOCTL.
“Seshagiri_Babu” wrote in message
> news:xxxxx@ntdev…
> >
> > Iam facing this strange problem where in i use IoCallDriver sending
> > an Irp allocated by IoAllocateIrp. This call doesn’t return at all. And
> the
> > system neither hangs nor crashes. Only the driver stops functioning.
> What
> > might be the problem?
> >
> > Thanks,
> > Sesha.
> >
>
> > This email (including any attachments) is intended for the sole use of
> the
> > intended recipient/s and may contain material that is CONFIDENTIAL AND
> > PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
> or
> > distribution or forwarding of any or all of the contents in this message
> is
> > STRICTLY PROHIBITED. If you are not the intended recipient, please
> contact
> > the sender by email and delete all copies; your cooperation in this
> regard
> > is appreciated.
> >
>
> >
> >
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@satyam.com
> To unsubscribe send a blank email to %%email.unsub%%
>
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.