函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_shmid_to_user

函数原型:static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)

返回类型:unsigned long

参数:

类型参数名称
void __user *buf
struct shmid64_ds *in
intversion
753  :version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
754  返回:copy_to_user(buf, in, in的长度)
755  :version恒等于Old version (no 32-bit UID support on manyarchitectures)
759  memset( & out, 0, out的长度)
760  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.
761  size of segment (bytes) 等于size of segment (bytes)
762  last attach time 等于last attach time
763  last detach time 等于last detach time
764  last change time 等于last change time
765  pid of creator 等于pid of creator
766  pid of last operator 等于pid of last operator
767  . of current attaches 等于. of current attaches
769  返回:copy_to_user(buf, & out, out的长度)
771  默认
772  返回:负EINVAL
调用者
名称描述
ksys_shmctl