Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_shmid_from_user

Proto:static inline unsigned long copy_shmid_from_user(struct shmid64_ds *out, void __user *buf, int version)

Type:unsigned long

Parameter:

TypeParameterName
struct shmid64_ds *out
void __user *buf
intversion
780  Case version == New version (support 32-bit UIDs, biggermessage sizes, etc.
781  If copy_from_user(out, buf, size of out ) Then Return -EFAULT
783  Return 0
784  Case version == Old version (no 32-bit UID support on manyarchitectures)
788  If copy_from_user( & tbuf_old, buf, size of tbuf_old ) Then Return -EFAULT
791  uid = uid
792  gid = gid
793  mode = mode
795  Return 0
797  Default
798  Return -EINVAL
Caller
NameDescribe
ksys_shmctl