Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-28 16:47:26
Last Modify:2020-03-17 22:58:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void shm_add_rss_swap(struct shmid_kernel *shp, unsigned long *rss_add, unsigned long *swp_add)

Type:void

Parameter:

TypeParameterName
struct shmid_kernel *shp
unsigned long *rss_add
unsigned long *swp_add
837  inode = file_inode(shm_file)
839  If is_file_hugepages(shm_file) Then
840  mapping = i_mapping
841  h = hstate_file(shm_file)
842  rss_add += pages_per_huge_page(h) * nrpages
843  Else
852  rss_add += nrpages
Caller
NameDescribe
shm_get_statCalled with shm_ids.rwsem held as a reader
sysvipc_shm_proc_show