Lines Matching refs:netd
348 struct proc_dir_entry *netd, *net_statd; in proc_net_ns_init() local
360 netd = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in proc_net_ns_init()
361 if (!netd) in proc_net_ns_init()
364 netd->subdir = RB_ROOT; in proc_net_ns_init()
365 netd->data = net; in proc_net_ns_init()
366 netd->nlink = 2; in proc_net_ns_init()
367 netd->namelen = 3; in proc_net_ns_init()
368 netd->parent = &proc_root; in proc_net_ns_init()
369 netd->name = netd->inline_name; in proc_net_ns_init()
370 memcpy(netd->name, "net", 4); in proc_net_ns_init()
374 uid = netd->uid; in proc_net_ns_init()
378 gid = netd->gid; in proc_net_ns_init()
380 proc_set_user(netd, uid, gid); in proc_net_ns_init()
383 pde_force_lookup(netd); in proc_net_ns_init()
386 net_statd = proc_net_mkdir(net, "stat", netd); in proc_net_ns_init()
390 net->proc_net = netd; in proc_net_ns_init()
395 pde_free(netd); in proc_net_ns_init()