Create ProcFS entry in /proc/net
I try to create an entry inside /proc/net from a kernel module, like this: struct file *filp = filp_open("/proc/net", O_RDONLY, 0); struct proc_dir_entry *parent = PDE(filp->f_dentry->d_inode); filp_close(filp, NULL); proc_file = create_proc_entry("test", 0644, parent); Crudely taken from here Why does it create my entry like /proc/test instead of /proc/net/test ? (Note: I'd like too use create_proc_entry , not proc_create .) In recent kernels you won't find create_proc_entry() anymore, it's been removed completely. Take a look at https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git