Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_semid_to_user

Proto:static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in, int version)

Type:unsigned long

Parameter:

TypeParameterName
void __user *buf
struct semid64_ds *in
intversion
1179  Case version == New version (support 32-bit UIDs, biggermessage sizes, etc.
1180  Return copy_to_user(buf, in, size of in )
1181  Case version == Old version (no 32-bit UID support on manyarchitectures)
1185  memset( & out, 0, size of out )
1187  pc64_perm_to_ipc_perm - convert new ipc permissions to old*@in: new style ipc permissions*@out: old style ipc permissions* Turn the new style permissions object @in into a compatibility* object and store it into the @out pointer.
1189  last semop time = last semop time
1190  create/last semctl() time = last change time
1191  . of semaphores in array = . of semaphores in array
1193  Return copy_to_user(buf, & out, size of out )
1195  Default
1196  Return -EINVAL
Caller
NameDescribe
ksys_semctl