函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_shmid_from_user

函数原型:static inline unsigned long copy_shmid_from_user(struct shmid64_ds *out, void __user *buf, int version)

返回类型:unsigned long

参数:

类型参数名称
struct shmid64_ds *out
void __user *buf
intversion
780  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
781  如果copy_from_user(out, buf, out的长度)则返回:负EFAULT
783  返回:0
784  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
788  如果copy_from_user( & tbuf_old, buf, tbuf_old的长度)则返回:负EFAULT
791  uid等于uid
792  gid等于gid
793  mode等于mode
795  返回:0
797  默认
798  返回:负EINVAL
调用者
名称描述
ksys_shmctl