kfatal - kernel fatal error function
#include <sys.h>
The kfatal() function is called by the kernel when a fatal error occurs. The error is passed in the error argument. The values for error are defined in errno.h and are prefixed with FAT_ to differentiate them from regular errors.
A default routine is provided which sets the global variable KFATAL and hangs the system. This function can be overridden with a user supplied function that does something more useful.
kfatal() never returns.