Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
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/
2: kd> !locks FFFF9609741B9510
Resource @ 0xffff9609741b9510 Exclusively owned
Contention Count = 4
NumberOfSharedWaiters = 2
Threads: ffff9609741da080-01<> ffff96096edda140-01<> ffff960975c48080-01
1 total locks
This Command shows that resource @ 0xffff9609741b9510 is exclusively owned,
does this mean this lock is owned by thread at the same time right now?
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! | ||
Writing WDF Drivers | 12 September 2022 | Live, Online |
Internals & Software Drivers | 23 October 2022 | Live, Online |
Kernel Debugging | 14 November 2022 | Live, Online |
Developing Minifilters | 5 December 2022 | Live, Online |
Comments
ffff9609741da080-01<> ffff96096edda140-01<>
I don't really understand what you're asking. The resource is owned by one thread, and two others are waiting for it.
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
Thx @Tim_Roberts for your answering,
actually in this line Threads: ffff9609741da080-01<> ffff96096edda140-01<> ffff960975c48080-01 there are two asterisks in the <>s
and according to MSDN explanation from this https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/-locks---kdext--locks-
If a thread is followed by "", that thread is one of the owners of the lock, so thread ffff9609741da080 and thread ffff96096edda140 are the owner of the locks, correct?
i don't what happens to the posting, it always remove some of symbols, let me try to post a picture

Is this your lock? What kind of a lock is it? An exclusive lock should only have one owner.
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.