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


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux