函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-27 18:23:25
Last Modify:2020-03-17 22:58:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_compat_shmid_from_user

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

返回类型:int

参数:

类型参数名称
struct shmid64_ds *out
void __user *buf
intversion
1325  memset(out, 0, out的长度)
1326  如果version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
1327  __userp等于buf
1328  返回:get_compat_ipc64_perm( & peration perms , & shm_perm)
1329  否则
1330  __userp等于buf
1331  返回:get_compat_ipc_perm( & peration perms , & shm_perm)
调用者
名称描述
compat_ksys_shmctl