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

Function dfs_aspace_inactive

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

* @brief Move an address space to inactive list * * This function moves the specified address space from its current position * to the inactive list in the page cache. The inactive list contains less * frequently accessed address spaces that are candidates for eviction. * * @param[in,out] aspace Pointer to the address space to be deactivated */

Source from the content-addressed store, hash-verified

644 * @param[in,out] aspace Pointer to the address space to be deactivated
645 */
646static void dfs_aspace_inactive(struct dfs_aspace *aspace)
647{
648 dfs_pcache_lock();
649 if (aspace->cache_node.next != RT_NULL)
650 {
651 rt_list_remove(&aspace->cache_node);
652 rt_list_insert_before(&__pcache.list_active, &aspace->cache_node);
653 }
654 dfs_pcache_unlock();
655}
656
657/**
658 * @brief Internal function to create a new address space for page cache

Callers 1

dfs_aspace_destroyFunction · 0.85

Calls 4

dfs_pcache_lockFunction · 0.85
rt_list_removeFunction · 0.85
rt_list_insert_beforeFunction · 0.85
dfs_pcache_unlockFunction · 0.85

Tested by

no test coverage detected