Lines Matching defs:net
29 #include <net/net_namespace.h>
30 #include <net/netns/generic.h>
60 * VLAN creates its own directory /proc/net/vlan with the folowing
67 * Generic /proc/net/vlan/<file> file and inode operations
92 * /proc/net/vlan/<device> file and inode operations
189 * Clean up /proc/net/vlan entries
192 void vlan_proc_cleanup(struct net *net)
194 struct vlan_net *vn = net_generic(net, vlan_net_id);
200 proc_net_remove(net, name_root);
208 * Create /proc/net/vlan entries
211 int __net_init vlan_proc_init(struct net *net)
213 struct vlan_net *vn = net_generic(net, vlan_net_id);
215 vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net);
227 vlan_proc_cleanup(net);
267 * The following few functions build the content of /proc/net/vlan/config
270 /* start read of /proc/net/vlan/config */
275 struct net *net = seq_file_net(seq);
282 for_each_netdev_rcu(net, dev) {
296 struct net *net = seq_file_net(seq);
302 dev = net_device_entry(&net->dev_base_head);
304 for_each_netdev_continue_rcu(net, dev) {
322 struct net *net = seq_file_net(seq);
323 struct vlan_net *vn = net_generic(net, vlan_net_id);