函数逻辑报告 |
Source Code:mm\ksm.c |
Create Date:2022-07-27 17:13:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_ksm_page: checks if the page indicated by the stable node* is still its ksm page, despite having held no reference to it.* In which case we can trust the content of the page, and it* returns the gotten page; but if the page has now been zapped,
函数原型:static struct page *get_ksm_page(struct stable_node *stable_node, enum get_ksm_page_flags flags)
返回类型:struct page
参数:
类型 | 参数 | 名称 |
---|---|---|
struct stable_node * | stable_node | |
enum get_ksm_page_flags | flags |
703 | again : |
705 | page等于pfn_to_page(kpfn) |
728 | 如果非PageSwapCache(page)则转到:stale |
730 | cpu_relax() |
735 | 转到:stale |
738 | 如果flags恒等于GET_KSM_PAGE_TRYLOCK则 |
746 | 如果flags不等于GET_KSM_PAGE_NOLOCK则 |
750 | 转到:stale |
753 | 返回:page |
755 | stale : |
762 | smp_rmb() |
766 | 返回:NULL |
名称 | 描述 |
---|---|
remove_rmap_item_from_tree | Removing rmap_item from stable or unstable tree.* This function will clean the information from the stable/unstable tree. |
stable_node_dup | |
__stable_node_chain | Like for get_ksm_page, this function can free the *_stable_node and* *_stable_node_dup if the returned tree_page is NULL |
stable_tree_search | stable_tree_search - search for page inside the stable tree* This function checks if there is a page inside the stable tree* with identical content to the page that we are scanning right now |
stable_tree_insert | stable_tree_insert - insert stable tree node pointing to new ksm page* into the stable tree.* This function returns the stable tree node just allocated on success,* NULL otherwise. |
scan_get_next_rmap_item |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |