Re: BUG() Calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Usman S. Ansari (uansari@yahoo.com) wrote:
> I see BUG() call in Linux kernel at various places. When any of these lines of
> code are executed it prints kernel crash message alone with 
> 
> kernel BUG at filename:line number!
> 
> What does this means ?

it means you hit code that is broken, and continuing will only cause
more problems.  the developer expects certain conditions, and those
conditions have been violated.  it's like an assert....

assert(condition)
	BUG();

cheers,
-chris
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux