函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\msg.c Create Date:2022-07-27 18:17:10
Last Modify:2020-03-17 22:56:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_compat_msqid_from_user

函数原型:static int copy_compat_msqid_from_user(struct msqid64_ds *out, void __user *buf, int version)

返回类型:int

参数:

类型参数名称
struct msqid64_ds *out
void __user *buf
intversion
653  memset(out, 0, out的长度)
654  如果version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
655  __userp等于buf
656  如果get_compat_ipc64_perm( & msg_perm, & msg_perm)则返回:负EFAULT
658  如果Careful: we have to cast the result to the type of the pointer* for sign reasons(max number of bytes on queue , & msg_qbytes)则返回:负EFAULT
660  否则
661  __userp等于buf
662  如果get_compat_ipc_perm( & msg_perm, & msg_perm)则返回:负EFAULT
664  如果Careful: we have to cast the result to the type of the pointer* for sign reasons(max number of bytes on queue , & msg_qbytes)则返回:负EFAULT
667  返回:0
调用者
名称描述
compat_ksys_msgctl