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/


!Locks dont list all informations

Maximilian_SchuehrerMaximilian_Schuehrer Member - All Emails Posts: 1
Hello everybody,

Problem:
Kernel-mode
when i type !locks i get one line of output:
9036 total locks


when i type the process id: !locks PRID i get:

NumberOfSharedWaiters = 262145
1 total locks.


Shouldn?t there more information about the waiters / locks ?


Greetings
Max

Comments

  • Mark_RoddyMark_Roddy Member - All Emails Posts: 4,367
    If a lock is not currently held you get this:
    !locks 0xfffff80048437c78

    Resource @ 0xfffff80048437c78 Available
    1 total locks

    I the lock is being held you get this:
    !locks nt!CmpRegistryLock

    Resource @ nt!CmpRegistryLock (0xfffff8021be1f380) Shared 2 owning
    threads
    Contention Count = 4529
    Threads: ffffab09262b7080-02<*> ffffab0935464080-01<*>

    Mark Roddy


    On Fri, Aug 24, 2018 at 10:12 AM [email protected] <
    [email protected]> wrote:

    > Hello everybody,
    >
    > Problem:
    > Kernel-mode
    > when i type !locks i get one line of output:
    > 9036 total locks
    >
    >
    > when i type the process id: !locks PRID i get:
    >
    > NumberOfSharedWaiters = 262145
    > 1 total locks.
    >
    >
    > Shouldn´t there more information about the waiters / locks ?
    >
    >
    > Greetings
    > Max
    >
    >
    > ---
    > 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 <
    > http://www.osronline.com/page.cfm?name=ListServer&gt;
    >
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!
Internals & Software Drivers 30 Nov 2020 LIVE ONLINE
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Developing Minifilters Early 2021 LIVE ONLINE