Function report |
Source Code:ipc\shm.c |
Create Date:2022-07-28 16:47:45 |
Last Modify:2020-03-17 22:58:32 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:shmctl_stat
Proto:static int shmctl_stat(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *tbuf)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ipc_namespace * | ns | |
int | shmid | |
int | cmd | |
struct shmid64_ds * | tbuf |
989 | If cmd == pcs ctl commands || cmd == SHM_STAT_ANY Then |
990 | shp = shm_obtain_object(ns, shmid) |
993 | Go to out_unlock |
995 | Else |
996 | shp = shm_obtain_object_check(ns, shmid) |
999 | Go to out_unlock |
1010 | If cmd == SHM_STAT_ANY Then audit_ipc_obj( & shm_perm) |
1012 | Else |
1018 | err = security_shm_shmctl( & shm_perm, cmd) |
1019 | If err Then Go to out_unlock |
1022 | ipc_lock_object( & shm_perm) |
1031 | size of segment (bytes) = shm_segsz |
1032 | last attach time = shm_atim |
1033 | last detach time = shm_dtim |
1034 | last change time = shm_ctim |
1036 | shm_atime_high = shm_atim >> 32 |
1037 | shm_dtime_high = shm_dtim >> 32 |
1038 | shm_ctime_high = shm_ctim >> 32 |
1040 | pid of creator = pid_vnr(shm_cprid) |
1041 | pid of last operator = pid_vnr(shm_lprid) |
1042 | . of current attaches = shm_nattch |
1044 | If cmd == get ipc_perm options Then |
1049 | err = 0 |
1050 | Else |
1058 | ipc_unlock_object( & shm_perm) |
1059 | out_unlock : |
1061 | Return err |
Name | Describe |
---|---|
ksys_shmctl | |
compat_ksys_shmctl |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |