Querry on writing to the proc file system.

From: Vinay Vernekar (vinay.vernekar@wipro.com)
Date: Fri Jul 14 2000 - 10:00:08 EST


Hello,
I have developed a "modular" driver for a network device in which I have to show the stats through '/proc/stats' file in the proc file system.
In the init_module I did -
static proc_dir_entry *ent;
ent = create_proc_entry("adsl", 0, 0);
ent->read_proc = adsl_read;

adsl_read is -
int adsl_read(char *buf, char **start, off_t offset, int len, int unused)
{
 I will do -
 len = sprintf(buf, .....);
return len;
}

After I compile and load the module. I don't find any entry in /proc as it should be. Can anybody please suggest what is wrong..
Thanks in advance.
Regards
Vinay

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:21 EST