Messages in this thread Patch in this message |  | | Date | Sun, 10 Sep 2000 21:21:12 +1100 | From | Andrew Morton <> | Subject | Re: How to put something in /proc |
| |
Alexander Viro wrote: > > > Search for proc_register() inside the kernel sources. > > _Don't_ > > proc_register() is dead. Use create_proc_read_entry() instead. > > Folks, support of the static procfs entries is gone and it will not be > back. Any initializer for struct proc_dir_entry is a LARTable offense. So > is kmalloc(sizeof(struct proc_dir_entry),...) and its ilk. You do it - you > suffer.
Sigh.
--- linux-2.4.0-test8/fs/proc/generic.c Thu Aug 24 21:07:24 2000 +++ linux-akpm/fs/proc/generic.c Sun Sep 10 21:20:45 2000 @@ -346,6 +346,13 @@ lookup: proc_lookup, }; +/* + * _Don't_ + * + * proc_register() is dead. Use create_proc_read_entry() instead. + * + */ + static int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp) { int i; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |