Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_shminfo_to_user

Proto:static inline unsigned long copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version)

Type:unsigned long

Parameter:

TypeParameterName
void __user *buf
struct shminfo64 *in
intversion
805  Case version == New version (support 32-bit UIDs, biggermessage sizes, etc.
806  Return copy_to_user(buf, in, size of in )
807  Case version == Old version (no 32-bit UID support on manyarchitectures)
811  If shmmax > INT_MAX Then shmmax = INT_MAX
813  Else shmmax = shmmax
816  shmmin = shmmin
817  shmmni = shmmni
818  shmseg = shmseg
819  shmall = shmall
821  Return copy_to_user(buf, & out, size of out )
823  Default
824  Return -EINVAL
Caller
NameDescribe
ksys_shmctl