* @brief Deinitialize a file structure * * @param[in,out] file Pointer to the file structure to be deinitialized */
| 326 | * @param[in,out] file Pointer to the file structure to be deinitialized |
| 327 | */ |
| 328 | void 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 |