diff --git a/examples/bottomhalf.c b/examples/bottomhalf.c index e04ea57..64d9873 100644 --- a/examples/bottomhalf.c +++ b/examples/bottomhalf.c @@ -1,8 +1,8 @@ /* * 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 diff --git a/examples/chardev.h b/examples/chardev.h index e67a09a..136ffed 100644 --- a/examples/chardev.h +++ b/examples/chardev.h @@ -1,5 +1,5 @@ /* - * 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 diff --git a/examples/completions.c b/examples/completions.c index 88c7be9..b3b472e 100644 --- a/examples/completions.c +++ b/examples/completions.c @@ -1,3 +1,6 @@ +/* + * completions.c + */ #include #include #include diff --git a/examples/cryptosha256.c b/examples/cryptosha256.c index 598aa39..63c5484 100644 --- a/examples/cryptosha256.c +++ b/examples/cryptosha256.c @@ -1,3 +1,6 @@ +/* + * cryptosha256.c + */ #include #include diff --git a/examples/cryptosk.c b/examples/cryptosk.c index 6dfca32..c5ec7b1 100644 --- a/examples/cryptosk.c +++ b/examples/cryptosk.c @@ -1,3 +1,6 @@ +/* + * cryptosk.c + */ #include #include #include diff --git a/examples/devicemodel.c b/examples/devicemodel.c index 6b742fb..cc2cd59 100644 --- a/examples/devicemodel.c +++ b/examples/devicemodel.c @@ -1,3 +1,6 @@ +/* + * devicemodel.c + */ #include #include #include diff --git a/examples/example_atomic.c b/examples/example_atomic.c index 51d7408..48fb004 100644 --- a/examples/example_atomic.c +++ b/examples/example_atomic.c @@ -1,3 +1,6 @@ +/* + * example_atomic.c + */ #include #include #include diff --git a/examples/example_mutex.c b/examples/example_mutex.c index 935c748..d63ccee 100644 --- a/examples/example_mutex.c +++ b/examples/example_mutex.c @@ -1,3 +1,6 @@ +/* + * example_mutex.c + */ #include #include #include diff --git a/examples/example_rwlock.c b/examples/example_rwlock.c index 231f48b..bca5218 100644 --- a/examples/example_rwlock.c +++ b/examples/example_rwlock.c @@ -1,3 +1,6 @@ +/* + * example_rwlock.c + */ #include #include #include diff --git a/examples/example_spinlock.c b/examples/example_spinlock.c index e40eb35..0d0d88e 100644 --- a/examples/example_spinlock.c +++ b/examples/example_spinlock.c @@ -1,3 +1,6 @@ +/* + * example_spinlock.c + */ #include #include #include diff --git a/examples/example_tasklet.c b/examples/example_tasklet.c index 12645fa..372db15 100644 --- a/examples/example_tasklet.c +++ b/examples/example_tasklet.c @@ -1,3 +1,6 @@ +/* + * example_tasklet.c + */ #include #include #include diff --git a/examples/hello-sysfs.c b/examples/hello-sysfs.c index 49bf6ba..f764e67 100644 --- a/examples/hello-sysfs.c +++ b/examples/hello-sysfs.c @@ -1,7 +1,6 @@ /* - * hello-sysfs.c sysfs example + * hello-sysfs.c sysfs example */ - #include #include #include diff --git a/examples/ioctl.c b/examples/ioctl.c index 73af12b..f847500 100644 --- a/examples/ioctl.c +++ b/examples/ioctl.c @@ -1,3 +1,6 @@ +/* + * ioctl.c + */ #include #include #include diff --git a/examples/other/cat_noblock.c b/examples/other/cat_noblock.c index d427bd0..42117cd 100644 --- a/examples/other/cat_noblock.c +++ b/examples/other/cat_noblock.c @@ -1,6 +1,7 @@ -/* 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 /* for errno */ #include /* for open */ #include /* standard I/O */ @@ -9,7 +10,6 @@ #define MAX_BYTES 1024 * 4 - int main(int argc, char *argv[]) { int fd; /* The file descriptor for the file to read */ diff --git a/examples/procfs1.c b/examples/procfs1.c index 42432d8..ff88e21 100644 --- a/examples/procfs1.c +++ b/examples/procfs1.c @@ -1,6 +1,6 @@ /* - procfs1.c -*/ + * procfs1.c + */ #include #include diff --git a/examples/procfs2.c b/examples/procfs2.c index 6e4d4f9..1379a9f 100644 --- a/examples/procfs2.c +++ b/examples/procfs2.c @@ -1,6 +1,5 @@ -/** +/* * procfs2.c - create a "file" in /proc - * */ #include /* We're doing kernel work */ diff --git a/examples/procfs3.c b/examples/procfs3.c index d56d11e..0906bec 100644 --- a/examples/procfs3.c +++ b/examples/procfs3.c @@ -1,6 +1,6 @@ /* - procfs3.c -*/ + * procfs3.c + */ #include #include diff --git a/examples/procfs4.c b/examples/procfs4.c index e2dc57c..cad389b 100644 --- a/examples/procfs4.c +++ b/examples/procfs4.c @@ -1,6 +1,6 @@ -/** +/* * 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. * */ diff --git a/examples/sched.c b/examples/sched.c index 3f94bc2..a6a7bcd 100644 --- a/examples/sched.c +++ b/examples/sched.c @@ -1,3 +1,6 @@ +/* + * sched.c + */ #include #include #include