patch-2.3.48 linux/net/wanrouter/wanproc.c
Next file: linux/CREDITS
Previous file: linux/net/sched/sch_dsmark.c
Back to the patch index
Back to the overall index
- Lines: 82
- Date:
Sat Feb 26 20:33:10 2000
- Orig file:
v2.3.47/linux/net/wanrouter/wanproc.c
- Orig date:
Thu Feb 10 17:11:25 2000
diff -u --recursive --new-file v2.3.47/linux/net/wanrouter/wanproc.c linux/net/wanrouter/wanproc.c
@@ -95,25 +95,11 @@
static struct inode_operations router_inode =
{
- &router_fops,
- NULL, /* create */
- NULL, /* lookup */
- NULL, /* link */
- NULL, /* unlink */
- NULL, /* symlink */
- NULL, /* mkdir */
- NULL, /* rmdir */
- NULL, /* mknod */
- NULL, /* rename */
- NULL, /* readlink */
- NULL, /* follow_link */
- NULL, /* truncate */
- router_proc_perms, /* permission */
- NULL /* revalidate */
+ permission: router_proc_perms,
};
/*
- * /proc/net/router/<device> file and inode operations
+ * /proc/net/router/<device> file operations
*/
static struct file_operations wandev_fops =
@@ -122,25 +108,6 @@
ioctl: wanrouter_ioctl,
};
-static struct inode_operations wandev_inode =
-{
- &wandev_fops,
- NULL, /* create */
- NULL, /* lookup */
- NULL, /* link */
- NULL, /* unlink */
- NULL, /* symlink */
- NULL, /* mkdir */
- NULL, /* rmdir */
- NULL, /* mknod */
- NULL, /* rename */
- NULL, /* readlink */
- NULL, /* follow_link */
- NULL, /* truncate */
- router_proc_perms, /* permission */
- NULL /* revalidate */
-};
-
/*
* /proc/net/router
*/
@@ -175,12 +142,14 @@
p = create_proc_entry("config",0,proc_router);
if (!p)
goto fail_config;
- p->ops = &router_inode;
+ p->proc_fops = &router_fops;
+ p->proc_iops = &router_inode;
p->get_info = config_get_info;
p = create_proc_entry("status",0,proc_router);
if (!p)
goto fail_stat;
- p->ops = &router_inode;
+ p->proc_fops = &router_fops;
+ p->proc_iops = &router_inode;
p->get_info = status_get_info;
return 0;
fail_stat:
@@ -214,7 +183,8 @@
wandev->dent = create_proc_entry(wandev->name, 0, proc_router);
if (!wandev->dent)
return -ENOMEM;
- wandev->dent->ops = &wandev_inode;
+ wandev->dent->proc_fops = &wandev_fops;
+ wandev->dent->proc_iops = &router_inode;
wandev->dent->get_info = wandev_get_info;
wandev->dent->data = wandev;
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)