pn_dev.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) pn_dev.c (ae61e8cd061d6ce9a2e2a13e081e7d936139e01e)
1/*
2 * File: pn_dev.c
3 *
4 * Phonet network device
5 *
6 * Copyright (C) 2008 Nokia Corporation.
7 *
8 * Authors: Sakari Ailus <sakari.ailus@nokia.com>

--- 317 unchanged lines hidden (view full) ---

326 INIT_LIST_HEAD(&pnn->pndevs.list);
327 mutex_init(&pnn->pndevs.lock);
328 mutex_init(&pnn->routes.lock);
329 return 0;
330}
331
332static void __net_exit phonet_exit_net(struct net *net)
333{
1/*
2 * File: pn_dev.c
3 *
4 * Phonet network device
5 *
6 * Copyright (C) 2008 Nokia Corporation.
7 *
8 * Authors: Sakari Ailus <sakari.ailus@nokia.com>

--- 317 unchanged lines hidden (view full) ---

326 INIT_LIST_HEAD(&pnn->pndevs.list);
327 mutex_init(&pnn->pndevs.lock);
328 mutex_init(&pnn->routes.lock);
329 return 0;
330}
331
332static void __net_exit phonet_exit_net(struct net *net)
333{
334 struct phonet_net *pnn = phonet_pernet(net);
335
334 remove_proc_entry("phonet", net->proc_net);
336 remove_proc_entry("phonet", net->proc_net);
337 WARN_ON_ONCE(!list_empty(&pnn->pndevs.list));
335}
336
337static struct pernet_operations phonet_net_ops = {
338 .init = phonet_init_net,
339 .exit = phonet_exit_net,
340 .id = &phonet_net_id,
341 .size = sizeof(struct phonet_net),
342};

--- 89 unchanged lines hidden ---
338}
339
340static struct pernet_operations phonet_net_ops = {
341 .init = phonet_init_net,
342 .exit = phonet_exit_net,
343 .id = &phonet_net_id,
344 .size = sizeof(struct phonet_net),
345};

--- 89 unchanged lines hidden ---