All of lore.kernel.org
 help / color / mirror / Atom feed
* what is spinlock depth
@ 2011-01-31 20:27 ` Sri Ram Vemulpali
  0 siblings, 0 replies; 6+ messages in thread
From: Sri Ram Vemulpali @ 2011-01-31 20:27 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I am reading spinlock code and looking at struct raw_spinlock. I found
struct lockdep_map as member.
which is defined as

struct lockdep_map {
       struct lock_class_key           *key;
       struct lock_class               *class_cache[NR_LOCKDEP_CACHING_CLASSES];
       const char                      *name;
#ifdef CONFIG_LOCK_STAT
       int                             cpu;
      unsigned long                   ip;
#endif
};

Can anyone help me explain, how this struct helps the spinlock. Why do
we need lockdepth.
Thanks for help in advance.
-- 
Regards,
Sri.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-01  6:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 20:27 what is spinlock depth Sri Ram Vemulpali
2011-01-31 20:27 ` Sri Ram Vemulpali
2011-01-31 21:06 ` Jiri Slaby
2011-02-01  5:15 ` Rajat Sharma
2011-02-01  5:15   ` Rajat Sharma
2011-02-01  6:40 ` WANG Cong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.