* @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 */
| 1162 | * @param[in,out] page Pointer to the page structure to be removed |
| 1163 | */ |
| 1164 | static 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 |
no test coverage detected