HomeSort by relevance Sort by last modified time
    Searched refs:shm_id (Results 1 - 24 of 24) sorted by null

  /external/ltp/testcases/kernel/syscalls/ipc/shmat/
shmat03.c 56 static int shm_id; variable
61 shm_id = SAFE_SHMGET(IPC_PRIVATE, getpagesize(), 0777);
69 if (shm_id)
70 SAFE_SHMCTL(shm_id, IPC_RMID, 0);
80 shm_addr = shmat(shm_id, ((void *)1), SHM_RND | SHM_REMAP);
shmat01.c 46 static int shm_id = -1; variable
113 addr = shmat(shm_id, *tc->shmaddr, tc->flag);
119 SAFE_SHMCTL(shm_id, IPC_STAT, &buf);
160 shm_id = SAFE_SHMGET(shm_key, INT_SIZE, SHM_RW | IPC_CREAT | IPC_EXCL);
165 if (shm_id != -1)
166 SAFE_SHMCTL(shm_id, IPC_RMID, NULL);
  /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);
121 shm_id = shmget(IPC_PRIVATE, sizeof(struct shared), 0777|IPC_CREAT);
133 pptr = (struct shared *)shmat(shm_id, NULL, 0);
143 shmctl(shm_id, IPC_RMID, NULL);
151 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);
ptrace-pkey.c 298 int shm_id; local
302 shm_id = shmget(IPC_PRIVATE, sizeof(*info), 0777 | IPC_CREAT);
303 info = shmat(shm_id, NULL, 0);
322 shmctl(shm_id, IPC_RMID, NULL);
core-pkey.c 423 int shm_id; local
431 shm_id = shmget(IPC_PRIVATE, sizeof(*info), 0777 | IPC_CREAT);
432 info = shmat(shm_id, NULL, 0);
451 shmctl(shm_id, IPC_RMID, NULL);
  /external/ltp/testcases/kernel/mem/hugetlb/lib/
hugetlb.c 115 void rm_shm(int shm_id)
117 if (shm_id == -1)
123 if (shmctl(shm_id, IPC_RMID, NULL) == -1) {
126 tst_res(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/ltp/testcases/kernel/syscalls/ipc/libnewipc/
libnewipc.c 88 int shm_id = -1; local
93 shm_id = shmget(probe_key, SHMLBA * 2, SHM_RW | IPC_CREAT | IPC_EXCL);
94 if (shm_id == -1)
97 addr = shmat(shm_id, NULL, 0);
104 if (shmctl(shm_id, IPC_RMID, NULL) == -1)
  /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/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 106 int shm_id; variable
930 ret = shmctl(shm_id, IPC_RMID, &ds);
1029 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700);
1030 if (shm_id < 0) {
1035 p = shmat(shm_id, (char *)0x50000000, 0);
1054 shm_id = fd;
    [all...]

Completed in 780 milliseconds