函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_sysinfo - fill in sysinfo struct*@info: pointer to buffer to fill

函数原型:static int do_sysinfo(struct sysinfo *info)

返回类型:int

参数:

类型参数名称
struct sysinfo *info
2521  memset(info, 0, sizeof(structsysinfo))
2523  mespec64/time64_t interfaces utilizing the ktime based ones* for API completeness, these could be implemented more efficiently* if needed.
2524  Seconds since boot 等于 seconds 加如果 nanoseconds 则1否则0
2526  get_avenrun( 1, 5, and 15 minute load averages , 0, SI_LOAD_SHIFT - r of bits of precision )
2528  Number of current processes 等于活跃进程数
2530  si_meminfo(info)
2531  si_swapinfo(info)
2542  mem_total等于 Total usable main memory size Total swap space size
2543  如果mem_total小于 Total usable main memory size mem_total小于 Total swap space size 则转到:out
2545  bitcount等于0
2546  mem_unit等于 Memory unit size in bytes
2547 mem_unit大于1循环
2548  bitcount自加
2549  mem_unit右移等于1位
2550  sav_total等于mem_total
2551  mem_total左移等于1位
2552  如果mem_total小于sav_total则转到:out
2563  Memory unit size in bytes 等于1
2564  Total usable main memory size 左移等于bitcount
2565  Available memory size 左移等于bitcount
2566  Amount of shared memory 左移等于bitcount
2567  Memory used by buffers 左移等于bitcount
2568  Total swap space size 左移等于bitcount
2569  swap space still available 左移等于bitcount
2570  Total high memory size 左移等于bitcount
2571  Available high memory size 左移等于bitcount
2573  out :
2574  返回:0
调用者
名称描述
SYSCALL_DEFINE1
COMPAT_SYSCALL_DEFINE1