* proc entry getting created in wrong directory?
@ 2011-09-30 18:13 ratheesh kannoth
0 siblings, 0 replies; only message in thread
From: ratheesh kannoth @ 2011-09-30 18:13 UTC (permalink / raw)
To: linux-modules, linux-c-programming
<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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-30 18:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-30 18:13 proc entry getting created in wrong directory? ratheesh kannoth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).