INTRO(9)INTRO(9)
NAME
intro – introduction to kernel functions
DESCRIPTION
This section of the manual describes the functions publicly available to the authors of kernel code, particularly device drivers (real and virtual). This section will eventually be much expanded, but this makes a start.
The
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h"
#include "../ip/ip.h"
#include "io.h"
#include "ureg.h"
There might also be specific include files needed by drivers on particular platforms or to use specialised kernel interfaces. The easiest method is to check the source of likely-looking drivers nearby.