函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:50:30
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:si_swapinfo

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

返回类型:void

参数:

类型参数名称
struct sysinfo *val
3360  nr_to_be_unused等于0
3362  加自旋锁
3363 type小于nr_swapfiles循环
3364  si等于swap_info[type]
3366  如果SWP_USED etc: see above 按位与SWP_USED且非SWP_USED etc: see above 按位与SWP_WRITEOK的值则nr_to_be_unused加等于umber of those currently in use
3369  swap space still available 等于atomic_long_read( & nr_swap_pages)加nr_to_be_unused
3370  Total swap space size 等于protected with swap_lock. reading in vm_swap_full() doesn't need lock nr_to_be_unused
3371  自旋锁解锁
调用者
名称描述
do_sysinfodo_sysinfo - fill in sysinfo struct*@info: pointer to buffer to fill