Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:shmctl_ipc_info

Proto:static int shmctl_ipc_info(struct ipc_namespace *ns, struct shminfo64 *shminfo)

Type:int

Parameter:

TypeParameterName
struct ipc_namespace *ns
struct shminfo64 *shminfo
944  err = security_shm_shmctl(NULL, see ipcs )
945  If Not err Then
946  memset(shminfo, 0, size of shminfo )
947  shmmni = shmseg = shm_ctlmni
948  shmmax = shm_ctlmax
949  shmall = shm_ctlall
950  shmmin = min shared seg size (bytes)
951  lock for reading
952  err = pc_get_maxidx - get the highest assigned index*@ids: ipc identifier set* Called with ipc_ids.rwsem held for reading.
953  lease a read lock
954  If err < 0 Then err = 0
957  Return err
Caller
NameDescribe
ksys_shmctl
compat_ksys_shmctl