Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\msgutil.c Create Date:2022-07-28 16:52:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:store_msg

Proto:int store_msg(void __user *dest, struct msg_msg *msg, size_t len)

Type:int

Parameter:

TypeParameterName
void __user *dest
struct msg_msg *msg
size_tlen
155  alen = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, DATALEN_MSG)
156  If copy_to_user(dest, msg + 1, alen) Then Return -1
159  When seg != NULL cycle
160  len -= alen
161  dest = dest + alen
162  alen = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, DATALEN_SEG)
163  If copy_to_user(dest, seg + 1, alen) Then Return -1
166  Return 0
Caller
NameDescribe
do_msg_fill
compat_do_msg_fill
do_mq_timedreceive