Messages in this thread | | | From | Davide Libenzi <> | Subject | Re: How to put something in /proc | Date | Sun, 10 Sep 2000 14:27:06 +0200 |
| |
On Sun, 10 Sep 2000, Alexander Viro wrote: > On Sun, 10 Sep 2000, Davide Libenzi wrote: > > > On Sun, 10 Sep 2000, Giuliano Pochini wrote: > > > I need to create a "file" in /proc to monitor some kernel > > > variables from user space. How can I do ? / Where can I > > > get docs ? And how can I do time measurements from > > > inside the kernel ? > > > > 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.
OK, last time i've worked with proc stuff was two years ago, I've to update but:
# find /usr/src/linux -name '*.c' -exec grep proc_register \{} \; | wc -l 119
I'm not alone :-)
- Davide
- 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/
| |