函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Most of this code has been lifted from kernel/timer.c::sys_sysinfo().* I cannot call that code directly from kdb, it has an unconditional* cli()/sti() and calls routines that take locks which can stop the debugger.

函数原型:static void kdb_sysinfo(struct sysinfo *val)

返回类型:void

参数:

类型参数名称
struct sysinfo *val
2494  uptime等于ktime_get_mono_fast_ns()
2496  memset(val, 0, val的长度)
2497  Seconds since boot 等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
2498  1, 5, and 15 minute load averages [0]等于avenrun[0]
2499  1, 5, and 15 minute load averages [1]等于avenrun[1]
2500  1, 5, and 15 minute load averages [2]等于avenrun[2]
2501  Number of current processes 等于活跃进程数减1
2502  si_meminfo(val)
2504  返回
调用者
名称描述
kdb_summarykdb_summary - This function implements the 'summary' command.