public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* what is spinlock depth
@ 2011-01-31 20:27 Sri Ram Vemulpali
  2011-01-31 21:06 ` Jiri Slaby
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sri Ram Vemulpali @ 2011-01-31 20:27 UTC (permalink / raw)
  To: Kernel-newbies, linux-kernel-mail

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] 4+ messages in thread

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

Thread overview: 4+ 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 21:06 ` Jiri Slaby
2011-02-01  5:15 ` Rajat Sharma
2011-02-01  6:40 ` WANG Cong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox