!locks for mutexes

MessageI think not. I suspect that !locks traverses the system global list of ERESOURCEs to find interesting ones. But unlike ERESOURCEs, mutexes are not linked into a global list. They can exist anywhere in memory, and I don’t know of any way to find them.

Carl
“Ken Galipeau” wrote in message news:xxxxx@ntfsd…
Is there an equivalent to the !locks command for Mutexes?

Thanks,
Ken

Just for my understanding is there actually a global list of ERESOURCES
or does it traverse the entire object table looking for synchronization
events that are ERESOURCES… If there is a global list, how does one
get a pointer to this list specifically… Thanks

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Carl Appellof
Sent: Monday, April 07, 2003 2:46 PM
To: File Systems Developers
Subject: [ntfsd] Re: !locks for mutexes

I think not.? I suspect that !locks traverses the system global list of
ERESOURCEs to find interesting ones.? But unlike ERESOURCEs, mutexes are
not linked into a global list.? They can exist anywhere in memory, and I
don’t know of any way to find them.
?
Carl
“Ken Galipeau” wrote in message news:xxxxx@ntfsd…
Is there an equivalent to the !locks command for Mutexes?
?
Thanks,
Ken

You are currently subscribed to ntfsd as: xxxxx@systemexposure.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

There is a global list of ERESOURCE objects (there’s a field in the
ERESOURCE structure for that list.)

If you initialize an ERESOURCE, you now have the global list of resources -
that’s one of the nice properties of a circular list - you can start
anywhere on the circle and walk it until you find the end.

The DANGER here is that even though you have the list, you don’t have the
LOCK to protect the list. So you can walk it post-mortem, but you cannot
safely walk it at run-time.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: LISTS [mailto:xxxxx@systemexposure.com]
Sent: Monday, April 07, 2003 9:46 PM
To: File Systems Developers
Subject: [ntfsd] Re: !locks for mutexes

Just for my understanding is there actually a global list of ERESOURCES
or does it traverse the entire object table looking for synchronization
events that are ERESOURCES… If there is a global list, how does one
get a pointer to this list specifically… Thanks

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Carl Appellof
Sent: Monday, April 07, 2003 2:46 PM
To: File Systems Developers
Subject: [ntfsd] Re: !locks for mutexes

I think not.? I suspect that !locks traverses the system global list of
ERESOURCEs to find interesting ones.? But unlike ERESOURCEs, mutexes are
not linked into a global list.? They can exist anywhere in memory, and I
don’t know of any way to find them.
?
Carl
“Ken Galipeau” wrote in message news:xxxxx@ntfsd…
Is there an equivalent to the !locks command for Mutexes?
?
Thanks,
Ken

You are currently subscribed to ntfsd as: xxxxx@systemexposure.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Take a look at the ERESOURCE structure.

The list head is not exported, but it is reasonably easy to get pointers into the middle of it.

-----Original Message-----
From: LISTS [mailto:xxxxx@systemexposure.com]
Sent: Monday, April 07, 2003 6:46 PM
To: File Systems Developers

Just for my understanding is there actually a global list of ERESOURCES
or does it traverse the entire object table looking for synchronization
events that are ERESOURCES… If there is a global list, how does one
get a pointer to this list specifically… Thanks

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Carl Appellof
Sent: Monday, April 07, 2003 2:46 PM
To: File Systems Developers
Subject: [ntfsd] Re: !locks for mutexes

I think not.? I suspect that !locks traverses the system global list of
ERESOURCEs to find interesting ones.? But unlike ERESOURCEs, mutexes are
not linked into a global list.? They can exist anywhere in memory, and I
don’t know of any way to find them.
?
Carl
“Ken Galipeau” wrote in message news:xxxxx@ntfsd…
Is there an equivalent to the !locks command for Mutexes?
?
Thanks,
Ken

You are currently subscribed to ntfsd as: xxxxx@systemexposure.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com