函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:shmctl_shm_info

函数原型:static int shmctl_shm_info(struct ipc_namespace *ns, struct shm_info *shm_info)

返回类型:int

参数:

类型参数名称
struct ipc_namespace *ns
struct shm_info *shm_info
963  err等于security_shm_shmctl(NULL, SHM_INFO)
964  如果非err
965  memset(shm_info, 0, 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  如果err小于0则err等于0
977  返回:err
调用者
名称描述
ksys_shmctl
compat_ksys_shmctl