dev.c (59458f40e25915a355d8b1d701425fe9f4f9ea23) | dev.c (aaa248f6c9c81b2683db7dbb0689cd5ed1c86d88) |
---|---|
1/* 2 * NET3 Protocol independent device support routines. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 3488 unchanged lines hidden (view full) --- 3497 * to take the rtnl semaphore. 3498 */ 3499static int __init net_dev_init(void) 3500{ 3501 int i, rc = -ENOMEM; 3502 3503 BUG_ON(!dev_boot_phase); 3504 | 1/* 2 * NET3 Protocol independent device support routines. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 3488 unchanged lines hidden (view full) --- 3497 * to take the rtnl semaphore. 3498 */ 3499static int __init net_dev_init(void) 3500{ 3501 int i, rc = -ENOMEM; 3502 3503 BUG_ON(!dev_boot_phase); 3504 |
3505 net_random_init(); 3506 | |
3507 if (dev_proc_init()) 3508 goto out; 3509 3510 if (netdev_sysfs_init()) 3511 goto out; 3512 3513 INIT_LIST_HEAD(&ptype_all); 3514 for (i = 0; i < 16; i++) --- 88 unchanged lines hidden --- | 3505 if (dev_proc_init()) 3506 goto out; 3507 3508 if (netdev_sysfs_init()) 3509 goto out; 3510 3511 INIT_LIST_HEAD(&ptype_all); 3512 for (i = 0; i < 16; i++) --- 88 unchanged lines hidden --- |