[source navigation] [diff markup] [identifier search] [freetext search] [file search]

Oldlinux Cross Reference
Linux/kernel/panic.c

Version: [1.0] [0.99.11] [0.99] [0.98] [0.97] [0.96a] [0.95] [0.12] [0.11] [0.01]
Architecture: [i386]

  1 /*
  2  *  linux/kernel/panic.c
  3  *
  4  *  (C) 1991  Linus Torvalds
  5  */
  6 
  7 /*
  8  * This function is used through-out the kernel (includeinh mm and fs)
  9  * to indicate a major problem.
 10  */
 11 #include <linux/kernel.h>
 12 #include <linux/sched.h>
 13 
 14 void sys_sync(void);    /* it's really int */
 15 
 16 volatile void panic(const char * s)
 17 {
 18         printk("Kernel panic: %s\n\r",s);
 19         if (current == task[0])
 20                 printk("In swapper task - not syncing\n\r");
 21         else
 22                 sys_sync();
 23         for(;;);
 24 }
 25 

[source navigation] [diff markup] [identifier search] [freetext search] [file search]

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.