Kernel modules are object files used to extend an operating system’s kernel functionality at run time. In this post, we’ll look at implementing a simple character device driver as a kernel module in NetBSD. Once it is loaded, userspace processes will be able to write an arbitrary byte string to the device, and on every…