Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SYSCALL_DEFINE3

Proto:SYSCALL_DEFINE3(mq_getsetattr, mqd_t, mqdes, const struct mq_attr __user *, u_mqstat, struct mq_attr __user *, u_omqstat)

Type:

Parameter:Nothing

1400  struct mq_attr * new = NULL, * old = NULL
1402  If u_mqstat Then
1403  new = mqstat
1404  If copy_from_user(new, u_mqstat, sizeof(structmq_attr)) Then Return -EFAULT
1407  If u_omqstat Then old = omqstat
1410  ret = do_mq_getsetattr(mqdes, new, old)
1411  If ret || Not old Then Return ret
1414  If copy_to_user(u_omqstat, old, sizeof(structmq_attr)) Then Return -EFAULT
1416  Return 0