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

Function dfs_devtmpfs_init

components/dfs/dfs_v2/filesystems/devfs/devtmpfs.c:651–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649};
650
651int dfs_devtmpfs_init(void)
652{
653 _default_fops = *dfs_devfs_fops();
654 _default_fops.getdents = devtmpfs_getdents;
655
656 /* register file system */
657 dfs_register(&_devtmpfs);
658
659 dfs_mount(RT_NULL, "/dev", "devtmpfs", 0, RT_NULL);
660 dfs_devfs_update();
661
662 return 0;
663}
664INIT_COMPONENT_EXPORT(dfs_devtmpfs_init);

Callers

nothing calls this directly

Calls 4

dfs_devfs_fopsFunction · 0.85
dfs_devfs_updateFunction · 0.85
dfs_registerFunction · 0.50
dfs_mountFunction · 0.50

Tested by

no test coverage detected