aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/procfs_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/DocBook/procfs_example.c')
-rw-r--r--Documentation/DocBook/procfs_example.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/Documentation/DocBook/procfs_example.c b/Documentation/DocBook/procfs_example.c
index 7064084c1c5e..8c6396e4bf31 100644
--- a/Documentation/DocBook/procfs_example.c
+++ b/Documentation/DocBook/procfs_example.c
@@ -1,28 +1,16 @@
1/* 1/*
2 * procfs_example.c: an example proc interface 2 * procfs_example.c: an example proc interface
3 * 3 *
4 * Copyright (C) 2001, Erik Mouw (J.A.K.Mouw@its.tudelft.nl) 4 * Copyright (C) 2001, Erik Mouw (mouw@nl.linux.org)
5 * 5 *
6 * This file accompanies the procfs-guide in the Linux kernel 6 * This file accompanies the procfs-guide in the Linux kernel
7 * source. Its main use is to demonstrate the concepts and 7 * source. Its main use is to demonstrate the concepts and
8 * functions described in the guide. 8 * functions described in the guide.
9 * 9 *
10 * This software has been developed while working on the LART 10 * This software has been developed while working on the LART
11 * computing board (http://www.lart.tudelft.nl/), which is 11 * computing board (http://www.lartmaker.nl), which was sponsored
12 * sponsored by the Mobile Multi-media Communications 12 * by the Delt University of Technology projects Mobile Multi-media
13 * (http://www.mmc.tudelft.nl/) and Ubiquitous Communications 13 * Communications and Ubiquitous Communications.
14 * (http://www.ubicom.tudelft.nl/) projects.
15 *
16 * The author can be reached at:
17 *
18 * Erik Mouw
19 * Information and Communication Theory Group
20 * Faculty of Information Technology and Systems
21 * Delft University of Technology
22 * P.O. Box 5031
23 * 2600 GA Delft
24 * The Netherlands
25 *
26 * 14 *
27 * This program is free software; you can redistribute 15 * This program is free software; you can redistribute
28 * it and/or modify it under the terms of the GNU General 16 * it and/or modify it under the terms of the GNU General
@@ -189,8 +177,6 @@ static int __init init_procfs_example(void)
189 return 0; 177 return 0;
190 178
191no_symlink: 179no_symlink:
192 remove_proc_entry("tty", example_dir);
193no_tty:
194 remove_proc_entry("bar", example_dir); 180 remove_proc_entry("bar", example_dir);
195no_bar: 181no_bar:
196 remove_proc_entry("foo", example_dir); 182 remove_proc_entry("foo", example_dir);
@@ -206,7 +192,6 @@ out:
206static void __exit cleanup_procfs_example(void) 192static void __exit cleanup_procfs_example(void)
207{ 193{
208 remove_proc_entry("jiffies_too", example_dir); 194 remove_proc_entry("jiffies_too", example_dir);
209 remove_proc_entry("tty", example_dir);
210 remove_proc_entry("bar", example_dir); 195 remove_proc_entry("bar", example_dir);
211 remove_proc_entry("foo", example_dir); 196 remove_proc_entry("foo", example_dir);
212 remove_proc_entry("jiffies", example_dir); 197 remove_proc_entry("jiffies", example_dir);
@@ -222,3 +207,4 @@ module_exit(cleanup_procfs_example);
222 207
223MODULE_AUTHOR("Erik Mouw"); 208MODULE_AUTHOR("Erik Mouw");
224MODULE_DESCRIPTION("procfs examples"); 209MODULE_DESCRIPTION("procfs examples");
210MODULE_LICENSE("GPL");