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.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s