1
0

panic 579 B

12345678910111213141516171819202122232425
  1. .TH PANIC 9
  2. .SH NAME
  3. panic \- abandon hope
  4. .SH SYNOPSIS
  5. .ta \w'\fLchar* 'u
  6. .B
  7. void panic(char *fmt, ...)
  8. .SH DESCRIPTION
  9. .I Panic
  10. writes a message to the console and
  11. causes the system to give up the ghost.
  12. It enables interrupts, dumps the kernel stack,
  13. and halts the current processor;
  14. if more than one, others will gradually come to a halt.
  15. Depending on configuration settings, the platform-dependent
  16. .I exit
  17. might reboot the system.
  18. The format
  19. .I fmt
  20. and associated arguments are the same as those for
  21. .IR print (9).
  22. .I Panic
  23. adds a prefix
  24. .L "panic: "
  25. and a trailing newline.