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

Function dfs_lock

components/dfs/dfs_v2/src/dfs.c:158–168  ·  view source on GitHub ↗

* this function will lock device file system. * * @note please don't invoke it on ISR. */

Source from the content-addressed store, hash-verified

156 * @note please don't invoke it on ISR.
157 */
158rt_err_t dfs_lock(void)
159{
160 rt_err_t result = -RT_EBUSY;
161
162 while (result == -RT_EBUSY)
163 {
164 result = rt_mutex_take(&fslock, RT_WAITING_FOREVER);
165 }
166
167 return result;
168}
169
170/**
171 * this function will unlock device file system.

Callers 12

dfs_mnt_dev_lookupFunction · 0.70
dfs_mnt_lookupFunction · 0.70
dfs_mnt_unrefFunction · 0.70
dfs_mnt_get_mounted_pathFunction · 0.70
dfs_mnt_has_child_mntFunction · 0.70
dfs_mnt_listFunction · 0.70
dfs_mnt_foreachFunction · 0.70
chdirFunction · 0.70
setcwdFunction · 0.70
getcwdFunction · 0.70
dfs_remountFunction · 0.70
dfs_dentry_dumpFunction · 0.70

Calls 1

rt_mutex_takeFunction · 0.85

Tested by

no test coverage detected