Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\sem.c Create Date:2022-07-28 16:45:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_compat_semid_to_user

Proto:static int copy_compat_semid_to_user(void __user *buf, struct semid64_ds *in, int version)

Type:int

Parameter:

TypeParameterName
void __user *buf
struct semid64_ds *in
intversion
1735  If version == New version (support 32-bit UIDs, biggermessage sizes, etc. Then
1737  memset( & v, 0, size of 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  Return copy_to_user(buf, & v, size of v )
1745  Else
1747  memset( & v, 0, size of 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  Return copy_to_user(buf, & v, size of v )
Caller
NameDescribe
compat_ksys_semctl