Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:shmctl_shm_info

Proto:static int shmctl_shm_info(struct ipc_namespace *ns, struct shm_info *shm_info)

Type:int

Parameter:

TypeParameterName
struct ipc_namespace *ns
struct shm_info *shm_info
963  err = security_shm_shmctl(NULL, SHM_INFO)
964  If Not err Then
965  memset(shm_info, 0, size of shm_info )
966  lock for reading
967  used_ids = in_use
968  Called with shm_ids.rwsem held as a reader
969  total allocated shm = shm_tot
970  swap_attempts = 0
971  swap_successes = 0
972  err = pc_get_maxidx - get the highest assigned index*@ids: ipc identifier set* Called with ipc_ids.rwsem held for reading.
973  lease a read lock
974  If err < 0 Then err = 0
977  Return err
Caller
NameDescribe
ksys_shmctl
compat_ksys_shmctl