30 Sep 2011 20:13
proc entry getting created in wrong directory?
ratheesh kannoth <ratheesh.ksz <at> gmail.com>
2011-09-30 18:13:38 GMT
2011-09-30 18:13:38 GMT
<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 majordomo <at> vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
RSS Feed