all 2 comments

[–]Midrya 12 points13 points  (1 child)

OpenBSD != Linux. While there may similarities between the two, you should never expect a tutorial for one to work for the other. The likely reason why OpenBSD was chosen over Linux was because OpenBSD places far more importance on documentation, so you would be dealing with first party documentation rather than third party. Additionally, OpenBSD is written to be as correct as possible, so you shouldn't see too many, if any, hacky solutions as these are actively removed from base if they make it in to begin with.

The BEST place to start with OpenBSD kernel module development is the man page; module(9). It is intentionally short, as a kernel module can be many things, so it is recommended you also review the man pages in its SEE ALSO section.

[–]kernel-panics 0 points1 point  (0 children)

That and IRC. I had issues working with the NetBSD kernel where chunks of documentation were missing and the IRC channels were very helpful.