Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


RegisterIrpBasedNotification causes hang in my application

OSR_Community_UserOSR_Community_User Member Posts: 110,217
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).

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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: [email protected] [mailto:[email protected]] 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

    To unsubscribe, visit the List Server section of OSR Online at
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA