Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-28 16:52:14
Last Modify:2020-03-17 23:00:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:COMPAT_SYSCALL_DEFINE3

Proto:COMPAT_SYSCALL_DEFINE3(mq_getsetattr, mqd_t, mqdes, const struct compat_mq_attr __user *, u_mqstat, struct compat_mq_attr __user *, u_omqstat)

Type:

Parameter:Nothing

1493  struct mq_attr * new = NULL, * old = NULL
1495  If u_mqstat Then
1496  new = mqstat
1497  If get_compat_mq_attr(new, u_mqstat) Then Return -EFAULT
1500  If u_omqstat Then old = omqstat
1503  ret = do_mq_getsetattr(mqdes, new, old)
1504  If ret || Not old Then Return ret
1507  If put_compat_mq_attr(old, u_omqstat) Then Return -EFAULT
1509  Return 0