Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_msqid_from_user

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

Type:unsigned long

Parameter:

TypeParameterName
struct msqid64_ds *out
void __user *buf
intversion
347  Case version == New version (support 32-bit UIDs, biggermessage sizes, etc.
348  If copy_from_user(out, buf, size of out ) Then Return -EFAULT
350  Return 0
351  Case version == Old version (no 32-bit UID support on manyarchitectures)
355  If copy_from_user( & tbuf_old, buf, size of tbuf_old ) Then Return -EFAULT
358  uid = uid
359  gid = gid
360  mode = mode
362  If max number of bytes on queue == 0 Then max number of bytes on queue = ditto
364  Else max number of bytes on queue = max number of bytes on queue
367  Return 0
369  Default
370  Return -EINVAL
Caller
NameDescribe
ksys_msgctl