Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\sem.c Create Date:2022-07-28 16:45:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_compat_semid_from_user

Proto:static int copy_compat_semid_from_user(struct semid64_ds *out, void __user *buf, int version)

Type:int

Parameter:

TypeParameterName
struct semid64_ds *out
void __user *buf
intversion
1722  memset(out, 0, size of out )
1723  If version == New version (support 32-bit UIDs, biggermessage sizes, etc. Then
1724  __user * p = buf
1725  Return get_compat_ipc64_perm( & permissions .. see ipc.h , & sem_perm)
1726  Else
1727  __user * p = buf
1728  Return get_compat_ipc_perm( & permissions .. see ipc.h , & sem_perm)
Caller
NameDescribe
compat_ksys_semctl