All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.