Programming Tutorial: How To Write a FreeBSD Kernel Module ( Driver )
Nice short guide for writing a kernel module for FreeBSD operating system. From the article:
FreeBSD 7.0 has already been released. If you are a real hacker, the best way to jump in and learn it is hacking together an introductory kernel module. In this article I’ll implement a very basic module that prints a message when it is loaded, and another when it is unloaded. I’ll also cover the mechanics of compiling our module using standard tools and rebuilding the stock FreeBSD kernel.
=> Writing a kernel module for FreeBSD
Related: How To Compile a Linux Kernel Modules
You may also be interested in other helpful articles:
- FreeBSD: How To List Device Drivers ( modules ) Loaded In Memory
- FreeBSD Load Device Driver / Kernel Module
- FreeBSD: How to unload (remove) device driver (module) from kernel?
- Load Linux kernel module before SCSI module using mkinitrd
- Howto: build Linux kernel module against installed kernel w/o full kernel source tree
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: freebsd kernel module, kernel module, kernel programming, Linux, linux kernel modules, operating system



Just started to learn Linux. May make comment as I progress