Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called with shm_ids.rwsem held as a reader

Proto:static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss, unsigned long *swp)

Type:void

Parameter:

TypeParameterName
struct ipc_namespace *ns
unsigned long *rss
unsigned long *swp
866  rss = 0
867  swp = 0
869  in_use = in_use
871  When total < in_use cycle
875  ipc = dr_find() - Return pointer for given ID
876  If (ipc == NULL) Then Continue
878  shp = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ipc, structshmid_kernel, shm_perm)
880  Calculate and add used RSS and swap pages of a shm.* Called with shm_ids.rwsem held as a reader
882  total++
Caller
NameDescribe
shmctl_shm_info