vlanproc.c (dca3a783400a18e2bf4503b1d4a85c4d0ca1a7e4) | vlanproc.c (d9dda78bad879595d8c4220a067fc029d6484a16) |
---|---|
1/****************************************************************************** 2 * vlanproc.c VLAN Module. /proc filesystem interface. 3 * 4 * This module is completely hardware-independent and provides 5 * access to the router using Linux /proc filesystem. 6 * 7 * Author: Ben Greear, <greearb@candelatech.com> coppied from wanproc.c 8 * by: Gene Kozin <genek@compuserve.com> --- 79 unchanged lines hidden (view full) --- 88}; 89 90/* 91 * /proc/net/vlan/<device> file and inode operations 92 */ 93 94static int vlandev_seq_open(struct inode *inode, struct file *file) 95{ | 1/****************************************************************************** 2 * vlanproc.c VLAN Module. /proc filesystem interface. 3 * 4 * This module is completely hardware-independent and provides 5 * access to the router using Linux /proc filesystem. 6 * 7 * Author: Ben Greear, <greearb@candelatech.com> coppied from wanproc.c 8 * by: Gene Kozin <genek@compuserve.com> --- 79 unchanged lines hidden (view full) --- 88}; 89 90/* 91 * /proc/net/vlan/<device> file and inode operations 92 */ 93 94static int vlandev_seq_open(struct inode *inode, struct file *file) 95{ |
96 return single_open(file, vlandev_seq_show, PDE(inode)->data); | 96 return single_open(file, vlandev_seq_show, PDE_DATA(inode)); |
97} 98 99static const struct file_operations vlandev_fops = { 100 .owner = THIS_MODULE, 101 .open = vlandev_seq_open, 102 .read = seq_read, 103 .llseek = seq_lseek, 104 .release = single_release, --- 225 unchanged lines hidden --- | 97} 98 99static const struct file_operations vlandev_fops = { 100 .owner = THIS_MODULE, 101 .open = vlandev_seq_open, 102 .read = seq_read, 103 .llseek = seq_lseek, 104 .release = single_release, --- 225 unchanged lines hidden --- |