/external/ltp/testcases/kernel/syscalls/ipc/shmat/ |
shmat_common.h | 7 int shm_id = -1; local 15 shm_id = shmget(probe_key, SHMLBA*2, SHM_RW | IPC_CREAT | IPC_EXCL); 16 if (shm_id == -1) 20 p = shmat(shm_id, NULL, 0); 27 rm_shm(shm_id);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
ptrace-gpr.c | 16 int shm_id; variable 28 cptr = (int *)shmat(shm_id, NULL, 0); 81 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); 91 pptr = (int *)shmat(shm_id, NULL, 0); 99 shmctl(shm_id, IPC_RMID, NULL); 107 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-vsx.c | 15 int shm_id; variable 26 cptr = (int *)shmat(shm_id, NULL, 0); 68 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); 86 pptr = (int *)shmat(shm_id, NULL, 0); 94 shmctl(shm_id, IPC_RMID, NULL); 102 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tar.c | 15 int shm_id; variable 24 cptr = (int *)shmat(shm_id, NULL, 0); 85 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); 96 pptr = (int *)shmat(shm_id, NULL, 0); 120 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-spd-gpr.c | 16 int shm_id; variable 37 cptr = (int *)shmat(shm_id, NULL, 0); 126 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); 137 pptr = (int *)shmat(shm_id, NULL, 0); 147 shmctl(shm_id, IPC_RMID, NULL); 154 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-spd-tar.c | 15 int shm_id; variable 31 cptr = (int *)shmat(shm_id, NULL, 0); 136 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); 141 pptr = (int *)shmat(shm_id, NULL, 0); 152 shmctl(shm_id, IPC_RMID, NULL); 159 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-spd-vsx.c | 15 int shm_id; variable 51 cptr = (int *)shmat(shm_id, NULL, 0); 137 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); 156 pptr = (int *)shmat(shm_id, NULL, 0); 164 shmctl(shm_id, IPC_RMID, NULL); 170 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-spr.c | 21 int shm_id; variable 41 cptr = (struct shared *)shmat(shm_id, NULL, 0); 122 shm_id = shmget(IPC_PRIVATE, sizeof(struct shared), 0777|IPC_CREAT); 134 pptr = (struct shared *)shmat(shm_id, NULL, 0); 144 shmctl(shm_id, IPC_RMID, NULL); 152 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-tar.c | 15 int shm_id; variable 25 cptr = (unsigned long *)shmat(shm_id, NULL, 0); 124 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); 129 pptr = (unsigned long *)shmat(shm_id, NULL, 0); 139 shmctl(shm_id, IPC_RMID, NULL); 145 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-vsx.c | 15 int shm_id; variable 38 cptr = (unsigned long *)shmat(shm_id, NULL, 0); 121 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); 139 pptr = (unsigned long *)shmat(shm_id, NULL, 0); 147 shmctl(shm_id, IPC_RMID, NULL); 153 shmctl(shm_id, IPC_RMID, NULL);
|
ptrace-tm-gpr.c | 16 int shm_id; variable 30 cptr = (unsigned long *)shmat(shm_id, NULL, 0); 120 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); 130 pptr = (unsigned long *)shmat(shm_id, NULL, 0); 143 shmctl(shm_id, IPC_RMID, NULL);
|
/external/ltp/testcases/kernel/mem/hugetlb/lib/ |
hugetlb.c | 104 void rm_shm(int shm_id) 106 if (shm_id == -1) 112 if (shmctl(shm_id, IPC_RMID, NULL) == -1) { 115 tst_resm(TINFO, "id = %d", shm_id);
|
hugetlb.h | 54 void rm_shm(int shm_id);
|
/external/ltp/testcases/kernel/syscalls/ipc/lib/ |
ipcshm.h | 49 void rm_shm(int shm_id);
|
libipc.c | 157 void rm_shm(int shm_id) 159 if (shm_id == -1) { /* no segment to remove */ 167 if (shmctl(shm_id, IPC_RMID, NULL) == -1) { 170 tst_resm(TINFO, "id = %d", shm_id);
|
/external/ltp/testcases/kernel/mem/mtest07/ |
shm_test.c | 115 /* Input: shm_id - id of the shared memory segment to be removed */ 126 static int rm_shared_mem(key_t shm_id, /* id of shared memory segment to be removed */ 132 dprt("pid[%d]: rm_shared_mem(): shm_id = %d shm_addr = %#x cmd = %d\n", 133 getpid(), shm_id, shm_addr, cmd); 134 if (shmctl(shm_id, IPC_RMID, (struct shmid_ds *)shmbuf) == -1) { 135 dprt("pid[%d]: rm_shared_mem(): shmctl unable to remove shm_id[%d]\n", getpid(), shm_id); 174 key_t shm_id = 0; /* shared memory id */ local 189 if ((shm_id = 199 "success got segment id %d\n", getpid(), shm_id); [all...] |
/external/autotest/client/tests/synctest/src/ |
synctest.c | 31 int shm_id; local 53 shm_id = shmget(IPC_PRIVATE, 10, IPC_CREAT | IPC_EXCL | 0600); 54 if (shm_id == -1) { 60 shm_addr = shmat(shm_id, NULL, 0); 153 if (shmctl(shm_id, IPC_RMID, &shm_desc) == -1) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
9-1.c | 109 int *child_pid, oldcount, newcount, shm_id, i; local 129 shm_id = shmget(key, sizeof(int), IPC_CREAT | 0600); 130 if (shm_id < 0) { 135 shmptr = shmat(shm_id, 0, 0);
|
/external/fio/ |
memory.c | 76 td->shm_id = shmget(IPC_PRIVATE, total_mem, flags); 77 dprint(FD_MEM, "shmget %u, %d\n", total_mem, td->shm_id); 78 if (td->shm_id < 0) { 99 td->orig_buffer = shmat(td->shm_id, NULL, 0); 100 dprint(FD_MEM, "shmat %d, %p\n", td->shm_id, td->orig_buffer); 119 dprint(FD_MEM, "shmdt/ctl %d %p\n", td->shm_id, td->orig_buffer); 121 shmctl(td->shm_id, IPC_RMID, &sbuf);
|
fio.h | 234 int shm_id; member in struct:thread_data 473 extern int shm_id;
|
init.c | 285 shmctl(shm_id, IPC_RMID, &sbuf); 286 shm_id = -1; 334 shm_id = shmget(0, size, IPC_CREAT | 0600); 335 if (shm_id != -1) 351 if (shm_id == -1) 354 threads = shmat(shm_id, NULL, 0); 360 shmctl(shm_id, IPC_RMID, NULL); [all...] |
backend.c | 75 int shm_id = 0; variable [all...] |
/external/autotest/client/tests/aiostress/ |
aio-stress.c | 105 int shm_id; variable 910 ret = shmctl(shm_id, IPC_RMID, &ds); 1009 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700); 1010 if (shm_id < 0) { 1015 p = shmat(shm_id, (char *)0x50000000, 0); 1034 shm_id = fd; [all...] |
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
aio-stress.c | 102 int shm_id; variable 926 ret = shmctl(shm_id, IPC_RMID, &ds); 1025 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700); 1026 if (shm_id < 0) { 1031 p = shmat(shm_id, (char *)0x50000000, 0); 1050 shm_id = fd; [all...] |