Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\msg.c Create Date:2022-07-28 16:41:59
Last Modify:2020-03-17 22:56:56 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_compat_msqid_to_user

Proto:static int copy_compat_msqid_to_user(void __user *buf, struct msqid64_ds *in, int version)

Type:int

Parameter:

TypeParameterName
void __user *buf
struct msqid64_ds *in
intversion
673  If version == New version (support 32-bit UIDs, biggermessage sizes, etc. Then
675  memset( & v, 0, size of 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  Return copy_to_user(buf, & v, size of v )
689  Else
691  memset( & v, 0, size of 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  Return copy_to_user(buf, & v, size of v )
Caller
NameDescribe
compat_ksys_msgctl