函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_msqid_from_user

函数原型:static inline unsigned long copy_msqid_from_user(struct msqid64_ds *out, void __user *buf, int version)

返回类型:unsigned long

参数:

类型参数名称
struct msqid64_ds *out
void __user *buf
intversion
347  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
348  如果copy_from_user(out, buf, out的长度)则返回:负EFAULT
350  返回:0
351  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
355  如果copy_from_user( & tbuf_old, buf, tbuf_old的长度)则返回:负EFAULT
358  uid等于uid
359  gid等于gid
360  mode等于mode
362  如果max number of bytes on queue 恒等于0则max number of bytes on queue 等于ditto
364  否则max number of bytes on queue 等于max number of bytes on queue
367  返回:0
369  默认
370  返回:负EINVAL
调用者
名称描述
ksys_msgctl