vlanproc.c (163849ea9b4c5d50fbd324692461983d18faadad) | vlanproc.c (2c8c1e7297e19bdef3c178c3ea41d898a7716e3e) |
---|---|
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> --- 126 unchanged lines hidden (view full) --- 135 * is removed, so we should not have to take care of it here... 136 */ 137} 138 139/* 140 * Create /proc/net/vlan entries 141 */ 142 | 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> --- 126 unchanged lines hidden (view full) --- 135 * is removed, so we should not have to take care of it here... 136 */ 137} 138 139/* 140 * Create /proc/net/vlan entries 141 */ 142 |
143int vlan_proc_init(struct net *net) | 143int __net_init vlan_proc_init(struct net *net) |
144{ 145 struct vlan_net *vn = net_generic(net, vlan_net_id); 146 147 vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net); 148 if (!vn->proc_vlan_dir) 149 goto err; 150 151 vn->proc_vlan_conf = proc_create(name_conf, S_IFREG|S_IRUSR|S_IWUSR, --- 179 unchanged lines hidden --- | 144{ 145 struct vlan_net *vn = net_generic(net, vlan_net_id); 146 147 vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net); 148 if (!vn->proc_vlan_dir) 149 goto err; 150 151 vn->proc_vlan_conf = proc_create(name_conf, S_IFREG|S_IRUSR|S_IWUSR, --- 179 unchanged lines hidden --- |