函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-27 17:13:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:remove_node_from_stable_tree

函数原型:static void remove_node_from_stable_tree(struct stable_node *stable_node)

返回类型:void

参数:

类型参数名称
struct stable_node *stable_node
636  BUG_ON(rmap_hlist_len < 0)
639  如果nextThe number of page slots additionally sharing those nodes 自减
641  否则The number of nodes in the stable tree 自减
643  VM_BUG_ON(rmap_hlist_len <= 0)
644  rmap_hlist_len自减
645  put_anon_vma( when stable )
646  + low bits used for flags below 与等于PAGE_MASK
647  cond_resched()
658  BUILD_BUG_ON - break compile if a condition is true(STABLE_NODE_DUP_HEAD <= & Recently migrated nodes of stable tree, pending proper placement )
659  BUILD_BUG_ON - break compile if a condition is true(STABLE_NODE_DUP_HEAD >= & Recently migrated nodes of stable tree, pending proper placement + 1)
662  如果when listed for migration 恒等于Recently migrated nodes of stable tree, pending proper placement 删除链表项
664  否则stable_node_dup_del(stable_node)
666  free_stable_node(stable_node)
调用者
名称描述
get_ksm_pageget_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,