Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\sem.c Create Date:2022-07-28 16:44:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_semid_from_user

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

Type:unsigned long

Parameter:

TypeParameterName
struct semid64_ds *out
void __user *buf
intversion
1556  Case version == New version (support 32-bit UIDs, biggermessage sizes, etc.
1557  If copy_from_user(out, buf, size of out ) Then Return -EFAULT
1559  Return 0
1560  Case version == Old version (no 32-bit UID support on manyarchitectures)
1564  If copy_from_user( & tbuf_old, buf, size of tbuf_old ) Then Return -EFAULT
1567  uid = uid
1568  gid = gid
1569  mode = mode
1571  Return 0
1573  Default
1574  Return -EINVAL
Caller
NameDescribe
ksys_semctl