Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-28 15:42:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksm_init

Proto:static int __init ksm_init(void)

Type:int

Parameter:Nothing

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  If err Then Go to 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  If IS_ERR(ksm_thread) Then
3189  pr_err("ksm: creating kthread failed\n")
3190  err = PTR_ERR(ksm_thread)
3191  Go to out_free
3202  ksm_run = KSM_RUN_MERGE
3210  Return 0
3212  out_free :
3213  ksm_slab_free()
3214  out :
3215  Return err