Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-28 16:47:20
Last Modify:2020-03-17 22:58:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_shmid_to_user

Proto:static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)

Type:unsigned long

Parameter:

TypeParameterName
void __user *buf
struct shmid64_ds *in
intversion
753  Case version == New version (support 32-bit UIDs, biggermessage sizes, etc.
754  Return copy_to_user(buf, in, size of in )
755  Case version == Old version (no 32-bit UID support on manyarchitectures)
759  memset( & out, 0, size of 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  Return copy_to_user(buf, & out, size of out )
771  Default
772  Return -EINVAL
Caller
NameDescribe
ksys_shmctl