• Home
  • Raw
  • Download

Lines Matching refs:net

68 static int __net_init afs_net_init(struct net *net_ns)  in afs_net_init()
71 struct afs_net *net = afs_net(net_ns); in afs_net_init() local
74 net->net = net_ns; in afs_net_init()
75 net->live = true; in afs_net_init()
76 generate_random_uuid((unsigned char *)&net->uuid); in afs_net_init()
78 INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation); in afs_net_init()
79 mutex_init(&net->socket_mutex); in afs_net_init()
81 net->cells = RB_ROOT; in afs_net_init()
82 init_rwsem(&net->cells_lock); in afs_net_init()
83 INIT_WORK(&net->cells_manager, afs_manage_cells); in afs_net_init()
84 timer_setup(&net->cells_timer, afs_cells_timer, 0); in afs_net_init()
86 mutex_init(&net->cells_alias_lock); in afs_net_init()
87 mutex_init(&net->proc_cells_lock); in afs_net_init()
88 INIT_HLIST_HEAD(&net->proc_cells); in afs_net_init()
90 seqlock_init(&net->fs_lock); in afs_net_init()
91 net->fs_servers = RB_ROOT; in afs_net_init()
92 INIT_LIST_HEAD(&net->fs_probe_fast); in afs_net_init()
93 INIT_LIST_HEAD(&net->fs_probe_slow); in afs_net_init()
94 INIT_HLIST_HEAD(&net->fs_proc); in afs_net_init()
96 INIT_HLIST_HEAD(&net->fs_addresses4); in afs_net_init()
97 INIT_HLIST_HEAD(&net->fs_addresses6); in afs_net_init()
98 seqlock_init(&net->fs_addr_lock); in afs_net_init()
100 INIT_WORK(&net->fs_manager, afs_manage_servers); in afs_net_init()
101 timer_setup(&net->fs_timer, afs_servers_timer, 0); in afs_net_init()
102 INIT_WORK(&net->fs_prober, afs_fs_probe_dispatcher); in afs_net_init()
103 timer_setup(&net->fs_probe_timer, afs_fs_probe_timer, 0); in afs_net_init()
104 atomic_set(&net->servers_outstanding, 1); in afs_net_init()
113 net->sysnames = sysnames; in afs_net_init()
114 rwlock_init(&net->sysnames_lock); in afs_net_init()
117 ret = afs_proc_init(net); in afs_net_init()
122 ret = afs_cell_init(net, rootcell); in afs_net_init()
127 ret = afs_open_socket(net); in afs_net_init()
134 net->live = false; in afs_net_init()
135 afs_fs_probe_cleanup(net); in afs_net_init()
136 afs_cell_purge(net); in afs_net_init()
137 afs_purge_servers(net); in afs_net_init()
139 net->live = false; in afs_net_init()
140 afs_proc_cleanup(net); in afs_net_init()
142 afs_put_sysnames(net->sysnames); in afs_net_init()
144 net->live = false; in afs_net_init()
151 static void __net_exit afs_net_exit(struct net *net_ns) in afs_net_exit()
153 struct afs_net *net = afs_net(net_ns); in afs_net_exit() local
155 net->live = false; in afs_net_exit()
156 afs_fs_probe_cleanup(net); in afs_net_exit()
157 afs_cell_purge(net); in afs_net_exit()
158 afs_purge_servers(net); in afs_net_exit()
159 afs_close_socket(net); in afs_net_exit()
160 afs_proc_cleanup(net); in afs_net_exit()
161 afs_put_sysnames(net->sysnames); in afs_net_exit()