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

Function dfs_file_deinit

components/dfs/dfs_v2/src/dfs_file.c:328–334  ·  view source on GitHub ↗

* @brief Deinitialize a file structure * * @param[in,out] file Pointer to the file structure to be deinitialized */

Source from the content-addressed store, hash-verified

326 * @param[in,out] file Pointer to the file structure to be deinitialized
327 */
328void dfs_file_deinit(struct dfs_file *file)
329{
330 if (file)
331 {
332 rt_mutex_detach(&file->pos_lock);
333 }
334}
335
336/**
337 * @brief Decrement reference count and release file resources when count reaches zero

Callers 8

test_dfs_closeFunction · 0.85
test_dfs_renameFunction · 0.85
mkdirFunction · 0.85
dfs_file_accessFunction · 0.85
lsFunction · 0.85
catFunction · 0.85
copyfileFunction · 0.85
copydirFunction · 0.85

Calls 1

rt_mutex_detachFunction · 0.85

Tested by 2

test_dfs_closeFunction · 0.68
test_dfs_renameFunction · 0.68