函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:shmctl_ipc_info

函数原型:static int shmctl_ipc_info(struct ipc_namespace *ns, struct shminfo64 *shminfo)

返回类型:int

参数:

类型参数名称
struct ipc_namespace *ns
struct shminfo64 *shminfo
944  err等于security_shm_shmctl(NULL, see ipcs )
945  如果非err
946  memset(shminfo, 0, 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  如果err小于0则err等于0
957  返回:err
调用者
名称描述
ksys_shmctl
compat_ksys_shmctl