patch-2.3.25 linux/net/decnet/dn_dev.c
Next file: linux/net/decnet/dn_fib.c
Previous file: linux/net/decnet/af_decnet.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Thu Oct 28 14:34:44 1999
- Orig file:
v2.3.24/linux/net/decnet/dn_dev.c
- Orig date:
Thu Aug 26 13:05:45 1999
diff -u --recursive --new-file v2.3.24/linux/net/decnet/dn_dev.c linux/net/decnet/dn_dev.c
@@ -1214,13 +1214,6 @@
return(len);
}
-static struct proc_dir_entry proc_net_decnet_dev = {
- PROC_NET_DN_DEV, 10, "decnet_dev",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- decnet_dev_get_info
-};
-
#endif /* CONFIG_PROC_FS */
#ifdef CONFIG_RTNETLINK
@@ -1271,7 +1264,7 @@
#endif /* CONFIG_RTNETLINK */
#ifdef CONFIG_PROC_FS
- proc_net_register(&proc_net_decnet_dev);
+ proc_net_create("decnet_dev", 0, decnet_dev_get_info);
#endif /* CONFIG_PROC_FS */
#ifdef CONFIG_SYSCTL
@@ -1303,7 +1296,7 @@
#endif /* CONFIG_SYSCTL */
#ifdef CONFIG_PROC_FS
- proc_net_unregister(PROC_NET_DN_DEV);
+ proc_net_remove("decnet_dev");
#endif /* CONFIG_PROC_FS */
dn_dev_devices_off();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)