Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_compat_msqid_from_user

Proto:static int copy_compat_msqid_from_user(struct msqid64_ds *out, void __user *buf, int version)

Type:int

Parameter:

TypeParameterName
struct msqid64_ds *out
void __user *buf
intversion
653  memset(out, 0, size of out )
654  If version == New version (support 32-bit UIDs, biggermessage sizes, etc. Then
655  __user * p = buf
656  If get_compat_ipc64_perm( & msg_perm, & msg_perm) Then Return -EFAULT
658  If Get a simple variable from user space(max number of bytes on queue , & msg_qbytes) Then Return -EFAULT
660  Else
661  __user * p = buf
662  If get_compat_ipc_perm( & msg_perm, & msg_perm) Then Return -EFAULT
664  If Get a simple variable from user space(max number of bytes on queue , & msg_qbytes) Then Return -EFAULT
667  Return 0
Caller
NameDescribe
compat_ksys_msgctl