jidong xiao wrote:
> Hi,all
> 
> Can anyone kindly explain the usage of kdb_event?Thank you very much!
> I saw this varible is used only in two places, inside kdb_printf() and
> kdb(), kdb_event is incremented and decremented. But I have no idea
> why do we need to use it in these two circumstance.

KDB modifies <linux/console.h> in this way:
#ifdef  CONFIG_KDB
#include <linux/kdb.h>
#define WARN_CONSOLE_UNLOCKED() WARN_ON(!is_console_locked() &&
!oops_in_progress && !atomic_read(&kdb_event))
#else   /* !CONFIG_KDB */
#define WARN_CONSOLE_UNLOCKED() WARN_ON(!is_console_locked() &&
!oops_in_progress)
#endif  /* CONFIG_KDB */

The counter of kdb_event affects the value of WARN_CONSOLE_UNLOCKED().

Thanks,
 - jay

> 
> Regards
> Jason
> ---------------------------
> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

Reply via email to