函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:31
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:r_running and nr_context_switches:* externally visible scheduler statistics: current number of runnable* threads, total number of context switches performed since bootup.

函数原型:unsigned long nr_running(void)

返回类型:unsigned long

参数:

3400  sum等于0
3402  遍历在线CPU(i)
3403  sum += ( & ( * ({
3403  ({
3403  循环
3403  const void * __vpp_verify = NULL
3403  当0循环
3403  runqueues的地址
3403  })
3403  })))->nr_running
3405  返回:sum