Code

The first part of this page contains references to code I’ve created that is free. Hopefully you will find it to be useful.

list_example.c Example usage of the linux/list.h linked list implementation provided with the Linux kernel. This one has been tested against 2.6.12. This example takes the form of a kernel module, which you can learn more about from The Linux Kernel Module Programming Guide.

dev_notifier.c Example usage of device event notifiers, as well as internet-specific IPv4 event notifiers.

sysfshello.c Example usage of sysfs.

The second part of this page contains reminders for useful examples other have created.

Procfs Example:
/usr/src/linux/Documentation/DocBook/procfs_example.c
Currently available online here.

Leave a Reply

You must be logged in to post a comment.