/*
* bottomhalf.c - Top and bottom half interrupt handling
*
- * Based upon the RPi example by Stefan Wendler (devnull@kaltpost.de)
- * from:
+ * Based upon the RPi example by Stefan Wendler (devnull@kaltpost.de)
+ * from:
* https://github.com/wendlers/rpi-kmod-samples
*
* Press one button to turn on a LED and another to turn it off
/*
- * chardev2.h - the header file with the ioctl definitions.
+ * chardev.h - the header file with the ioctl definitions.
*
* The declarations here have to be in a header file, because
* they need to be known both to the kernel module
+/*
+ * completions.c
+ */
#include <linux/completion.h>
#include <linux/init.h>
#include <linux/kernel.h>
+/*
+ * cryptosha256.c
+ */
#include <crypto/internal/hash.h>
#include <linux/module.h>
+/*
+ * cryptosk.c
+ */
#include <crypto/internal/skcipher.h>
#include <linux/crypto.h>
#include <linux/module.h>
+/*
+ * devicemodel.c
+ */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
+/*
+ * example_atomic.c
+ */
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
+/*
+ * example_mutex.c
+ */
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
+/*
+ * example_rwlock.c
+ */
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
+/*
+ * example_spinlock.c
+ */
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
+/*
+ * example_tasklet.c
+ */
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
/*
- * hello-sysfs.c sysfs example
+ * hello-sysfs.c sysfs example
*/
-
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kobject.h>
+/*
+ * ioctl.c
+ */
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/init.h>
-/* cat_noblock.c - open a file and display its contents, but exit rather than
- * wait for input */
-
+/*
+ * cat_noblock.c - open a file and display its contents, but exit rather than
+ * wait for input.
+ */
#include <errno.h> /* for errno */
#include <fcntl.h> /* for open */
#include <stdio.h> /* standard I/O */
#define MAX_BYTES 1024 * 4
-
int main(int argc, char *argv[])
{
int fd; /* The file descriptor for the file to read */
/*
- procfs1.c
-*/
+ * procfs1.c
+ */
#include <linux/kernel.h>
#include <linux/module.h>
-/**
+/*
* procfs2.c - create a "file" in /proc
- *
*/
#include <linux/kernel.h> /* We're doing kernel work */
/*
- procfs3.c
-*/
+ * procfs3.c
+ */
#include <linux/kernel.h>
#include <linux/module.h>
-/**
+/*
* procfs4.c - create a "file" in /proc
- * This program uses the seq_file library to manage the /proc file.
+ * This program uses the seq_file library to manage the /proc file.
*
*/
+/*
+ * sched.c
+ */
#include <linux/init.h>
#include <linux/module.h>
#include <linux/workqueue.h>