Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_compat_shminfo_to_user

Proto:static int copy_compat_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version)

Type:int

Parameter:

TypeParameterName
void __user *buf
struct shminfo64 *in
intversion
1250  If shmmax > INT_MAX Then shmmax = INT_MAX
1252  If version == New version (support 32-bit UIDs, biggermessage sizes, etc. Then
1254  memset( & info, 0, size of info )
1255  shmmax = shmmax
1256  shmmin = shmmin
1257  shmmni = shmmni
1258  shmseg = shmseg
1259  shmall = shmall
1260  Return copy_to_user(buf, & info, size of info )
1261  Else
1263  memset( & info, 0, size of info )
1264  shmmax = shmmax
1265  shmmin = shmmin
1266  shmmni = shmmni
1267  shmseg = shmseg
1268  shmall = shmall
1269  Return copy_to_user(buf, & info, size of info )
Caller
NameDescribe
compat_ksys_shmctl