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

Function dfs_aspace_remove

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

* @brief Remove an address space from page cache * * This function removes the given address space from both the hash table and * active/inactive lists of the page cache. * * @param[in,out] aspace Pointer to the address space to be removed */

Source from the content-addressed store, hash-verified

596 * @param[in,out] aspace Pointer to the address space to be removed
597 */
598static void dfs_aspace_remove(struct dfs_aspace *aspace)
599{
600 dfs_pcache_lock();
601 if (aspace->hash_node.next != RT_NULL)
602 {
603 rt_list_remove(&aspace->hash_node);
604 }
605 if (aspace->cache_node.next != RT_NULL)
606 {
607 rt_list_remove(&aspace->cache_node);
608 }
609 dfs_pcache_unlock();
610}
611
612/**
613 * @brief Move an address space to active list

Callers 1

dfs_aspace_releaseFunction · 0.85

Calls 3

dfs_pcache_lockFunction · 0.85
rt_list_removeFunction · 0.85
dfs_pcache_unlockFunction · 0.85

Tested by

no test coverage detected