Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-28 16:48:09
Last Modify:2020-03-17 22:58:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_compat_shmid_to_user

Proto:static int copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)

Type:int

Parameter:

TypeParameterName
void __user *buf
struct shmid64_ds *in
intversion
1291  If version == New version (support 32-bit UIDs, biggermessage sizes, etc. Then
1293  memset( & v, 0, size of v )
1294  to_compat_ipc64_perm( & shm_perm, & peration perms )
1295  shm_atime = lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last attach time )
1296  shm_atime_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 attach time )
1297  shm_dtime = lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last detach time )
1298  shm_dtime_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 detach time )
1299  shm_ctime = lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last change time )
1300  shm_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 )
1301  shm_segsz = size of segment (bytes)
1302  shm_nattch = . of current attaches
1303  shm_cpid = pid of creator
1304  shm_lpid = pid of last operator
1305  Return copy_to_user(buf, & v, size of v )
1306  Else
1308  memset( & v, 0, size of v )
1309  to_compat_ipc_perm( & shm_perm, & peration perms )
1310  key = key
1311  shm_atime = last attach time
1312  shm_dtime = last detach time
1313  shm_ctime = last change time
1314  shm_segsz = size of segment (bytes)
1315  shm_nattch = . of current attaches
1316  shm_cpid = pid of creator
1317  shm_lpid = pid of last operator
1318  Return copy_to_user(buf, & v, size of v )
Caller
NameDescribe
compat_ksys_shmctl