函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_compat_msqid_to_user

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

返回类型:int

参数:

类型参数名称
void __user *buf
struct msqid64_ds *in
intversion
673  如果version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
675  memset( & v, 0, v的长度)
676  to_compat_ipc64_perm( & msg_perm, & msg_perm)
677  msg_stime等于lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last msgsnd time )
678  msg_stime_high等于upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.(last msgsnd time )
679  msg_rtime等于lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last msgrcv time )
680  msg_rtime_high等于upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.(last msgrcv time )
681  msg_ctime等于lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last change time )
682  msg_ctime_high等于upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.(last change time )
683  msg_cbytes等于current number of bytes on queue
684  msg_qnum等于umber of messages in queue
685  msg_qbytes等于max number of bytes on queue
686  msg_lspid等于pid of last msgsnd
687  msg_lrpid等于last receive pid
688  返回:copy_to_user(buf, & v, v的长度)
689  否则
691  memset( & v, 0, v的长度)
692  to_compat_ipc_perm( & msg_perm, & msg_perm)
693  msg_stime等于last msgsnd time
694  msg_rtime等于last msgrcv time
695  msg_ctime等于last change time
696  msg_cbytes等于current number of bytes on queue
697  msg_qnum等于umber of messages in queue
698  msg_qbytes等于max number of bytes on queue
699  msg_lspid等于pid of last msgsnd
700  msg_lrpid等于last receive pid
701  返回:copy_to_user(buf, & v, v的长度)
调用者
名称描述
compat_ksys_msgctl