Writing a NetBSD kernel module

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 successive read expect a cryptographically-secure pseudorandom permutation of the original byte string.

IF you’ve always wanted to learn how to write a NetBSD driver, here’s a great starting point.

3 Comments

  1. 2022-04-07 9:11 pm
    • 2022-04-08 3:03 pm
    • 2022-04-11 1:20 pm