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

Function _dfs_page_remove

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

* @brief Remove a page from the AVL tree of an address space * * This function removes a page from the AVL tree of the specified address space. * It also clears the cached AVL page pointer if it points to the page being removed. * * @param[in,out] aspace Pointer to the address space containing the AVL tree * @param[in,out] page Pointer to the page structure to be removed */

Source from the content-addressed store, hash-verified

1162 * @param[in,out] page Pointer to the page structure to be removed
1163 */
1164static void _dfs_page_remove(struct dfs_aspace *aspace, struct dfs_page *page)
1165{
1166 if (aspace->avl_page && aspace->avl_page == page)
1167 {
1168 aspace->avl_page = 0;
1169 }
1170
1171 util_avl_remove(&page->avl_node, &aspace->avl_root);
1172}
1173
1174/**
1175 * @brief Lock an address space for thread-safe operations

Callers 1

dfs_page_removeFunction · 0.85

Calls 1

util_avl_removeFunction · 0.85

Tested by

no test coverage detected