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

Function dfs_aspace_lock

components/dfs/dfs_v2/src/dfs_pcache.c:1184–1188  ·  view source on GitHub ↗

* @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() */

Source from the content-addressed store, hash-verified

1182 * @see dfs_aspace_unlock()
1183 */
1184static 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

Callers 15

dfs_aspace_gcFunction · 0.85
dfs_pcache_threadFunction · 0.85
dfs_aspace_destroyFunction · 0.85
dfs_aspace_releaseFunction · 0.85
_dfs_aspace_dumpFunction · 0.85
dfs_page_releaseFunction · 0.85
dfs_page_insertFunction · 0.85
dfs_page_removeFunction · 0.85
dfs_page_activeFunction · 0.85
dfs_page_inactiveFunction · 0.85
dfs_page_dirtyFunction · 0.85
dfs_page_searchFunction · 0.85

Calls 1

rt_mutex_takeFunction · 0.85

Tested by

no test coverage detected