Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_compat_mq_attr

Proto:static inline int get_compat_mq_attr(struct mq_attr *attr, const struct compat_mq_attr __user *uattr)

Type:int

Parameter:

TypeParameterName
struct mq_attr *attr
const struct compat_mq_attr __user *uattr
1434  If copy_from_user( & v, uattr, size of uattr ) Then Return -EFAULT
1437  memset(attr, 0, size of attr )
1438  message queue flags = message queue flags
1439  maximum number of messages = maximum number of messages
1440  maximum message size = maximum message size
1441  number of messages currently queued = number of messages currently queued
1442  Return 0
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE3