函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\sem.c Create Date:2022-07-27 18:19:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_semid_to_user

函数原型:static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in, int version)

返回类型:unsigned long

参数:

类型参数名称
void __user *buf
struct semid64_ds *in
intversion
1179  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
1180  返回:copy_to_user(buf, in, in的长度)
1181  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
1185  memset( & out, 0, 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  返回:copy_to_user(buf, & out, out的长度)
1195  默认
1196  返回:负EINVAL
调用者
名称描述
ksys_semctl