## NAME

kfatal - kernel fatal error function

## SYNOPSIS

#include <sys.h>

int kfatal( unsigned long error );

## DESCRIPTION

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.

## RETURN VALUES

kfatal() never returns.

#### Home page (Kernel)

## < Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2018 >