* @brief Lock an address space for thread-safe operations * * @param[in,out] aspace Pointer to the address space structure to be locked * * @return Always returns 0 indicating success * * @note The lock must be released using dfs_aspace_unlock() * @see dfs_aspace_unlock() */
| 1182 | * @see dfs_aspace_unlock() |
| 1183 | */ |
| 1184 | static int dfs_aspace_lock(struct dfs_aspace *aspace) |
| 1185 | { |
| 1186 | rt_mutex_take(&aspace->lock, RT_WAITING_FOREVER); |
| 1187 | return 0; |
| 1188 | } |
| 1189 | |
| 1190 | /** |
| 1191 | * @brief Unlock an address space after thread-safe operations |
no test coverage detected