proc entry getting created in wrong directory?
ratheesh kannoth <[email protected]> Fri, 30 Sep 2011 23:43:38 +0530
| Newsgroups | gmane.linux.c-programming,gmane.linux.kernel.modules |
|---|---|
| Message-ID | <CAGZFCEFAUqjoD7cPNSzY10cksBkqB20_r0aP5Hw3o1SNSPTKwg@mail.gmail.com> |
<linux 2.6.38 kernel>
struct file *filp = filp_open("/proc/net/stat", O_RDONLY, 0);
proc_dir_entry = PDE(filp->f_path.dentry->d_inode);
proc_entry = create_proc_entry( "fortune", 0644, proc_dir_entry );
"fortune" is getting created in /proc dir, why so ?
-ratheesh
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html