Hello, I'm creating a simple module to send data over a network connection. This module needs some configuration done from userspace software the info it needs is a table of the following pseudoform:
minor_number;pid;IP-address
I also need an interface for adding and removing minor numbers from a list. An interface for reading the info from userspace would be a nice bonus.
Some questions:
1. I've looked at sysfs, but the docs says it _should_ only take one variable, i need three, would my table be acceptable?
2. The module creates a character device. When adding sysfs entries should I create new kobjects and if so, who should parent them? or should I use the struct cdev?
3. How do I get the current cdev structure before any open or read/writes have taken place?
4. Could this be done better using ioctls, got any good tutorials or intro-docs on ioctls?
5. Am I correct in assuming that proc is depreceated (for 2.6+)
Wbr Jon Ãyvind Kjellman
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/