kernelthread.com

FreeBSD Loadable Kernel Module

The Towers of Hanoi as FreeBSD Loadable Kernel Module. This module implements a system call for doing Towers of Hanoi. The system call has the usual prototype:

/* * The structure hanoi_args{} is defined in the appropriate * hanoi header. */ int hanoi(struct proc *p, struct hanoi_args *uap);

A sample user application using this system call is also included in the source archive. The module was last tested on FreeBSD-3.0-980426-SNAP, which (as of 2003) is a long time ago!

hanoi-lkm-bsd.tar.gz

Download

hanoi-lkm-bsd.tar.gz