函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_compat_shmid_to_user

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

返回类型:int

参数:

类型参数名称
void __user *buf
struct shmid64_ds *in
intversion
1291  如果version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
1293  memset( & v, 0, 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  返回:copy_to_user(buf, & v, v的长度)
1306  否则
1308  memset( & v, 0, 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  返回:copy_to_user(buf, & v, v的长度)
调用者
名称描述
compat_ksys_shmctl