Searched refs:g_shmidGlobal (Results 1 – 2 of 2) sorted by relevance
/test/xts/acts/kernel_lite/utils/ |
D | mt_utils.cpp | 113 int g_shmidGlobal; variable 116 g_shmidGlobal = shmget(IPC_PRIVATE, 1024, 0666 | IPC_CREAT); in InitGlobalVariable() 117 if (g_shmidGlobal == -1) { in InitGlobalVariable() 126 int *shared = (int *)shmat(g_shmidGlobal, nullptr, 0); in SetGlobalVariable() 142 int *shared = (int *)shmat(g_shmidGlobal, nullptr, 0); in GetGlobalVariable() 157 if (shmctl(g_shmidGlobal, IPC_RMID, nullptr) == -1) { in DeleteGlobalVariable()
|
/test/xts/hats/kernel/posix_interface/interface_gn/utils/ |
D | mt_utils.cpp | 116 int g_shmidGlobal; variable 121 g_shmidGlobal = shmget(IPC_PRIVATE, shareMemory, accessPermiss | IPC_CREAT); in InitGlobalVariable() 122 if (g_shmidGlobal == -1) { in InitGlobalVariable() 131 int *shared = (int *)shmat(g_shmidGlobal, nullptr, 0); in SetGlobalVariable() 147 int *shared = (int *)shmat(g_shmidGlobal, nullptr, 0); in GetGlobalVariable() 162 if (shmctl(g_shmidGlobal, IPC_RMID, nullptr) == -1) { in DeleteGlobalVariable()
|