函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksm_init

函数原型:static int __init ksm_init(void)

返回类型:int

参数:

3179  Checksum of an empty (zeroed) page 等于calc_checksum(ZERO_PAGE(0))
3181  Whether to merge empty (zeroed) pages with actual zero pages = false
3183  err等于ksm_slab_init()
3184  如果err则转到:out
3187  ksm_thread等于kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(ksm_scan_thread, NULL, "ksmd")
3188  如果是错误
3189  打印错误信息("ksm: creating kthread failed\n")
3190  err等于错误
3191  转到:out_free
3202  ksm_run等于KSM_RUN_MERGE
3210  返回:0
3212  out_free :
3213  ksm_slab_free()
3214  out :
3215  返回:err