proc entry getting created in wrong directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<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-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux