RegisterIrpBasedNotification causes hang in my application

Hello,

My present system uses polling mode which has taken a toll on the read performance cycle of SATA HDD.

I’m trying to implement interrupt mode with code as below.

However, the system just hangs, perhaps due to the use of spinlock code.

Its a KMDF and an MFC app is used to view the output.

Any suggestions on how to debug kernel driver at runtime?

Best Regards,

Suman Kumar

PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above, and contains information confidential to Graphene Semiconductor Services (P) Ltd. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

The “code as below” seems to be missing from your email, so we cannot comment on that.

The tried and tested method of debugging a kernel driver is to set up a target machine running your driver and use another machine (the debugging ‘host’) to debug it from using windbg or kd.

This is not something quickly explained if you have not done it before. You can start by reading

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Suman Kumar Sanjeev Prasanna
Sent: 28 June 2017 14:17
To: Kernel Debugging Interest List
Subject: [windbg] RegisterIrpBasedNotification causes hang in my application

Hello,

My present system uses polling mode which has taken a toll on the read performance cycle of SATA HDD.

I’m trying to implement interrupt mode with code as below.

However, the system just hangs, perhaps due to the use of spinlock code.

Its a KMDF and an MFC app is used to view the output.

Any suggestions on how to debug kernel driver at runtime?

Best Regards,

Suman Kumar

PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above, and contains information confidential to Graphene Semiconductor Services (P) Ltd. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

WINDBG is sponsored by OSR

OSR is hiring!! Info at http://www.osr.com/careers

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at http:</http:></http:>