Skip to main content

Kernel logging and knotting

The printf() logging function:

 

The SP1 kernel provides a central logging facility for developers of system software to use, this can be found as the printf() function from the lib/printf.h header. 


The knot() function:

The SP1 kernel provides a knot() function used to "fuck and knot" the kernel during serious error conditions, this can be found as the knot() function from the os/knot.h header. It is important to note that this should be used sparingly as it results in the entire system screeching to a halt in quite a violent and abrupt way.