Lines Matching refs:netd
349 struct proc_dir_entry *netd, *net_statd; in proc_net_ns_init() local
361 netd = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in proc_net_ns_init()
362 if (!netd) in proc_net_ns_init()
365 netd->subdir = RB_ROOT; in proc_net_ns_init()
366 netd->data = net; in proc_net_ns_init()
367 netd->nlink = 2; in proc_net_ns_init()
368 netd->namelen = 3; in proc_net_ns_init()
369 netd->parent = &proc_root; in proc_net_ns_init()
370 netd->name = netd->inline_name; in proc_net_ns_init()
371 memcpy(netd->name, "net", 4); in proc_net_ns_init()
375 uid = netd->uid; in proc_net_ns_init()
379 gid = netd->gid; in proc_net_ns_init()
381 proc_set_user(netd, uid, gid); in proc_net_ns_init()
384 pde_force_lookup(netd); in proc_net_ns_init()
387 net_statd = proc_net_mkdir(net, "stat", netd); in proc_net_ns_init()
391 net->proc_net = netd; in proc_net_ns_init()
396 pde_free(netd); in proc_net_ns_init()