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

Function fstab_mnt_init

components/drivers/core/mnt.c:152–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150INIT_ENV_EXPORT(rootfs_mnt_init);
151
152static int fstab_mnt_init(void)
153{
154 mkdir("/mnt", 0755);
155
156#ifdef RT_USING_FINSH
157 /* Try mount by table */
158 msh_exec_script("fstab.sh", 16);
159#endif
160
161#ifdef RT_USING_DFS_PROCFS
162 mkdir("/proc", 0755);
163 dfs_mount(RT_NULL, "/proc", "procfs", 0, RT_NULL);
164#endif
165
166 LOG_I("File system initialization done");
167
168 return 0;
169}
170INIT_FS_EXPORT(fstab_mnt_init);

Callers

nothing calls this directly

Calls 3

msh_exec_scriptFunction · 0.85
mkdirFunction · 0.50
dfs_mountFunction · 0.50

Tested by

no test coverage detected