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

Function dfs_vnode_mgr_init

components/dfs/dfs_v1/src/dfs_file.c:45–54  ·  view source on GitHub ↗

* @brief Initialize dfs vnode manager structure, including a lock and hash tables for vnode. * */

Source from the content-addressed store, hash-verified

43 *
44 */
45void dfs_vnode_mgr_init(void)
46{
47 int i = 0;
48
49 rt_mutex_init(&dfs_fm.lock, "dfs_mgr", RT_IPC_FLAG_PRIO);
50 for (i = 0; i < DFS_VNODE_HASH_NR; i++)
51 {
52 rt_list_init(&dfs_fm.head[i]);
53 }
54}
55
56/**
57 * @brief Initialize a DFS vnode structure.

Callers 1

dfs_initFunction · 0.85

Calls 2

rt_mutex_initFunction · 0.85
rt_list_initFunction · 0.85

Tested by

no test coverage detected