函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:44:07
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This kswapd start function will be called by init and node-hot-add.* On node-hot-add, kswapd will moved to proper cpus if cpus are hot-added.

函数原型:int kswapd_run(int nid)

返回类型:int

参数:

类型参数名称
intnid
4076  pgdat等于NUMA节点数据区(nid)
4077  ret等于0
4079  如果负责该结点的交换守护进程则返回:0
4082  负责该结点的交换守护进程等于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(The background pageout daemon, started as a kernel thread* from the init process.* This basically trickles out pages so that we have _some_* free memory available even if there is no other activity* that frees anything up, pgdat, "kswapd%d", nid)
4083  如果是错误
4085  BUG_ON(system_state < SYSTEM_RUNNING)
4086  打印错误信息("Failed to start kswapd on node %d\n", nid)
4087  ret等于错误
4088  负责该结点的交换守护进程 = NULL
4090  返回:ret
调用者
名称描述
kswapd_init