MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / proc_net_init

Function proc_net_init

components/dfs/dfs_v2/filesystems/procfs/proc_net.c:90–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88};
89
90int proc_net_init(void)
91{
92 struct proc_dentry *dentry;
93
94 dentry = proc_mkdir("net", NULL);
95 if (!dentry)
96 return -1;
97
98 proc_release(dentry);
99
100 dentry = proc_create_data("net/route", 0, NULL, NULL, NULL);
101 if (dentry)
102 {
103 dentry->seq_ops = &seq_ops;
104 }
105 proc_release(dentry);
106
107 return 0;
108}
109INIT_ENV_EXPORT(proc_net_init);

Callers

nothing calls this directly

Calls 3

proc_mkdirFunction · 0.85
proc_releaseFunction · 0.85
proc_create_dataFunction · 0.85

Tested by

no test coverage detected