推迟网络的初始化

在文件net\ipv4\af_inet.c中,更改如下,推迟网络的初始化

+ #ifdef CONFIG_DELAY_NETWORK
+ deferred_initcall(inet_init);   // 重点是这个,deferred_initcall() 延迟初始化
+ #else
fs_initcall(inet_init);
+ #endif

猜你喜欢

转载自blog.csdn.net/deggfg/article/details/81509963