函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_shminfo_to_user

函数原型:static inline unsigned long copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version)

返回类型:unsigned long

参数:

类型参数名称
void __user *buf
struct shminfo64 *in
intversion
805  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
806  返回:copy_to_user(buf, in, in的长度)
807  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
811  如果shmmax大于INT_MAXshmmax等于INT_MAX
813  否则shmmax等于shmmax
816  shmmin等于shmmin
817  shmmni等于shmmni
818  shmseg等于shmseg
819  shmall等于shmall
821  返回:copy_to_user(buf, & out, out的长度)
823  默认
824  返回:负EINVAL
调用者
名称描述
ksys_shmctl