Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:55
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:unsigned long nr_running(void)

Type:unsigned long

Parameter:Nothing

3400  sum = 0
3402  for_each_online_cpu(i)
3403  sum += ( & ( * ({
3403  ({
3403  Do
3403  const void * __vpp_verify = NULL
3403  When 0 cycle
3403  &runqueues
3403  })
3403  })))->nr_running
3405  Return sum