函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_compat_semid_from_user

函数原型:static int copy_compat_semid_from_user(struct semid64_ds *out, void __user *buf, int version)

返回类型:int

参数:

类型参数名称
struct semid64_ds *out
void __user *buf
intversion
1722  memset(out, 0, out的长度)
1723  如果version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
1724  __userp等于buf
1725  返回:get_compat_ipc64_perm( & permissions .. see ipc.h , & sem_perm)
1726  否则
1727  __userp等于buf
1728  返回:get_compat_ipc_perm( & permissions .. see ipc.h , & sem_perm)
调用者
名称描述
compat_ksys_semctl