Home > OS >  The Linux kernel to create/proc/net/arp file where the parent directory name.net is initialized?
The Linux kernel to create/proc/net/arp file where the parent directory name.net is initialized?

Time:11-17

Initialize the arp_init () will create the/proc/net/arp file, function call relationship for roughly: arp_init - & gt; Arp_proc_init - & gt; Register_pernet_subsy... -> . -> Arp_net_init;
Arp_net_init () function creates the/proc/net/arp file, here is the.net pointer to a global variable init_net; Where not clear init_net proc_net value is assigned to the "net"?
Static int __net_init arp_net_init (struct.net * net)
{
if (! Proc_create (" arp "S_IRUGO, net - & gt; Proc_net, & amp; Arp_seq_fops))
The return - ENOMEM;
return 0;
}
  • Related