User: Password:
|
|
Subscribe / Log in / New account

Calls to panic in the kernel.

Calls to panic in the kernel.

Posted Jul 22, 2003 3:23 UTC (Tue) by StevenCole (guest, #3068)
Parent article: 2003 Kernel Summit: High Availability

Lars pointed out that there are over 1200 calls to panic() in the kernel.
A panic which shouldn't happen gives programmers the opportunity to write a message which should (almost) never see the light of day. Some examples:

From drivers/message/fusion/mptlan.c:

panic("Damn it Jim! I'm a doctor, not a programmer! "
                "Oh, wait a sec, I am a programmer. "
                "And, who's Jim?!?!\n"
                "Arrgghh! We've done it again!\n");

From drivers/scsi/aha1542.c:

panic("Foooooooood fight!");
In the recent past, kernel/suspend.c had this:
if (pos%PAGE_SIZE) panic("Sorry, dave, I can't let you do that!\n");


(Log in to post comments)


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds