Writing Device Drivers

Driver Context

The driver context determines which kernel routines the driver is permitted to call. There are four contexts in which driver code executes:

The manual pages in section 9F document the allowable contexts for each function. For example, in kernel context the driver must not call copyin(9F).