函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_semid_from_user

函数原型:static inline unsigned long copy_semid_from_user(struct semid64_ds *out, void __user *buf, int version)

返回类型:unsigned long

参数:

类型参数名称
struct semid64_ds *out
void __user *buf
intversion
1556  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
1557  如果copy_from_user(out, buf, out的长度)则返回:负EFAULT
1559  返回:0
1560  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
1564  如果copy_from_user( & tbuf_old, buf, tbuf_old的长度)则返回:负EFAULT
1567  uid等于uid
1568  gid等于gid
1569  mode等于mode
1571  返回:0
1573  默认
1574  返回:负EINVAL
调用者
名称描述
ksys_semctl