函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_compat_semid_to_user

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

返回类型:int

参数:

类型参数名称
void __user *buf
struct semid64_ds *in
intversion
1735  如果version恒等于New version (support 32-bit UIDs, biggermessage sizes, etc.
1737  memset( & v, 0, v的长度)
1738  to_compat_ipc64_perm( & sem_perm, & permissions .. see ipc.h )
1739  sem_otime等于lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last semop time )
1740  sem_otime_high等于upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.(last semop time )
1741  sem_ctime等于lower_32_bits - return bits 0-31 of a number*@n: the number we're accessing(last change time )
1742  sem_ctime_high等于upper_32_bits - return bits 32-63 of a number*@n: the number we're accessing* A basic shift-right of a 64- or 32-bit quantity. Use this to suppress* the "right shift count >= width of type" warning when that quantity is* 32-bits.(last change time )
1743  sem_nsems等于. of semaphores in array
1744  返回:copy_to_user(buf, & v, v的长度)
1745  否则
1747  memset( & v, 0, v的长度)
1748  to_compat_ipc_perm( & sem_perm, & permissions .. see ipc.h )
1749  sem_otime等于last semop time
1750  sem_ctime等于last change time
1751  sem_nsems等于. of semaphores in array
1752  返回:copy_to_user(buf, & v, v的长度)
调用者
名称描述
compat_ksys_semctl