函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-27 18:22:41
Last Modify:2020-03-17 22:58:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Calculate and add used RSS and swap pages of a shm.* Called with shm_ids.rwsem held as a reader

函数原型:static void shm_add_rss_swap(struct shmid_kernel *shp, unsigned long *rss_add, unsigned long *swp_add)

返回类型:void

参数:

类型参数名称
struct shmid_kernel *shp
unsigned long *rss_add
unsigned long *swp_add
837  inode等于file_inode(shm_file)
839  如果is_file_hugepages(shm_file)则
840  mapping等于i_mapping
841  h等于hstate_file(shm_file)
842  rss_add加等于pages_per_huge_page(h)乘nrpages
843  否则
852  rss_add加等于nrpages
调用者
名称描述
shm_get_statCalled with shm_ids.rwsem held as a reader
sysvipc_shm_proc_show