函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_msqid_to_user

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

返回类型:unsigned long

参数:

类型参数名称
void __user *buf
struct msqid64_ds *in
intversion
302  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
303  返回:copy_to_user(buf, in, in的长度)
304  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
308  memset( & out, 0, out的长度)
310  pc64_perm_to_ipc_perm - convert new ipc permissions to old*@in: new style ipc permissions*@out: old style ipc permissions* Turn the new style permissions object @in into a compatibility* object and store it into the @out pointer.
312  last msgsnd time 等于last msgsnd time
313  last msgrcv time 等于last msgrcv time
314  last change time 等于last change time
316  如果current number of bytes on queue 大于USHRT_MAXcurrent number of bytes on queue 等于USHRT_MAX
318  否则current number of bytes on queue 等于current number of bytes on queue
320  Reuse junk fields for 32 bit 等于current number of bytes on queue
322  如果umber of messages in queue 大于USHRT_MAXumber of messages in queue 等于USHRT_MAX
324  否则umber of messages in queue 等于umber of messages in queue
327  如果max number of bytes on queue 大于USHRT_MAXmax number of bytes on queue 等于USHRT_MAX
329  否则max number of bytes on queue 等于max number of bytes on queue
331  ditto 等于max number of bytes on queue
333  pid of last msgsnd 等于pid of last msgsnd
334  last receive pid 等于last receive pid
336  返回:copy_to_user(buf, & out, out的长度)
338  默认
339  返回:负EINVAL
调用者
名称描述
ksys_msgctl