HomeSort by relevance Sort by last modified time
    Searched refs:shmat (Results 26 - 50 of 119) sorted by null

12 3 4 5

  /external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
ptrace-gpr.c 28 cptr = (int *)shmat(shm_id, NULL, 0);
91 pptr = (int *)shmat(shm_id, NULL, 0);
ptrace-tar.c 24 cptr = (int *)shmat(shm_id, NULL, 0);
96 pptr = (int *)shmat(shm_id, NULL, 0);
ptrace-vsx.c 26 cptr = (int *)shmat(shm_id, NULL, 0);
86 pptr = (int *)shmat(shm_id, NULL, 0);
ptrace-tm-gpr.c 30 cptr = (unsigned long *)shmat(shm_id, NULL, 0);
130 pptr = (unsigned long *)shmat(shm_id, NULL, 0);
ptrace-tm-spd-gpr.c 37 cptr = (int *)shmat(shm_id, NULL, 0);
137 pptr = (int *)shmat(shm_id, NULL, 0);
ptrace-tm-spd-tar.c 31 cptr = (int *)shmat(shm_id, NULL, 0);
141 pptr = (int *)shmat(shm_id, NULL, 0);
ptrace-tm-spd-vsx.c 51 cptr = (int *)shmat(shm_id, NULL, 0);
156 pptr = (int *)shmat(shm_id, NULL, 0);
ptrace-tm-tar.c 25 cptr = (unsigned long *)shmat(shm_id, NULL, 0);
129 pptr = (unsigned long *)shmat(shm_id, NULL, 0);
ptrace-tm-vsx.c 38 cptr = (unsigned long *)shmat(shm_id, NULL, 0);
139 pptr = (unsigned long *)shmat(shm_id, NULL, 0);
  /external/ltp/testcases/kernel/containers/sysvipc/
shm_comm.c 70 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) {
71 perror("shmat");
103 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) {
104 perror("shmat");
  /external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
hugeshmdt01.c 76 shared = shmat(shm_id_1, 0, 0);
78 tst_brk(TBROK | TERRNO, "shmat #2: reattach");
153 shared = shmat(shm_id_1, 0, 0);
155 tst_brk(TBROK | TERRNO, "shmat #1");
  /external/ltp/testcases/kernel/mem/shmt/
shmt10.c 25 * shmt10.c - test simultaneous shmat/shmdt
28 * shmget, shmat, shmdt, shmctl
111 if ((c1 = shmat(shmid, NULL, 0)) == (char *)-1) {
113 "Error shmat: iter %d, shmid = %d\n", i,
123 tst_resm(TPASS, "shmat,shmdt");
148 if ((c1 = shmat(shmid, NULL, 0)) == (char *)-1) {
151 "Error:child proc: shmat: iter %d, shmid = %d\n",
shmt04.c 29 * shmctl(2) shmget(2) shmat(2)
97 cp = shmat(shmid, NULL, 0);
100 perror("shmat");
102 "Error: shmat: shmid = %d, errno = %d\n",
129 tst_resm(TPASS, "shmget,shmat");
161 cp = shmat(shmid, NULL, 0);
164 perror("shmat:child process");
166 "Error: shmat: errno=%d, shmid=%d, child_pid=%d\n",
shmt07.c 28 * shmctl(2) shmget(2) shmat(2)
78 cp = shmat(shmid, NULL, 0);
81 perror("shmat");
83 "Error: shmat: shmid = %d, errno = %d\n",
92 tst_resm(TPASS, "shmget,shmat");
  /external/linux-kselftest/tools/testing/selftests/vm/
hugepage-shm.c 68 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS);
  /external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
hugeshmat02.c 22 * call shmat() using three invalid test cases
74 addr = shmat(*(tc->shmid), tc->addr, 0);
76 tst_res(TFAIL, "shmat suceeded unexpectedly");
81 tst_res(TPASS | TERRNO, "shmat failed as "
84 tst_res(TFAIL | TERRNO, "shmat failed "
hugeshmat03.c 26 * call shmat() using the TEST() macro
69 addr = shmat(shm_id_1, NULL, 0);
71 tst_res(TFAIL, "shmat succeeded unexpectedly");
75 tst_res(TPASS | TERRNO, "shmat failed as expected");
77 tst_res(TFAIL | TERRNO, "shmat failed unexpectedly "
hugeshmat04.c 68 buf = shmat(shmid, (void *)BOUNDARY, SHM_RND | 0777);
71 tst_brk(TBROK | TERRNO, "shmat");
hugeshmat05.c 17 * shmget()/shmat() fails to allocate huge pages shared memory segment
71 shmaddr = shmat(shmid, 0, 0);
hugeshmat01.c 18 * hugeshmat01 - test that shmat() works correctly
23 * call shmat() with the TEST() macro using three valid conditions
79 addr = shmat(*(tc->shmid), tc->addr, tc->flags);
81 tst_brk(TFAIL | TERRNO, "shmat");
  /external/ltp/testcases/kernel/syscalls/ipc/shmat/
shmat02.c 21 * 1) shmat() fails and set errno to EINVAL when shmid is invalid.
22 * 2) shmat() fails and set errno to EINVAL when shmaddr is not page
24 * 3) shmat() fails and set errno to EACCES when the shm resource has
61 addr = shmat(*tc->shmid, *tc->shmaddr, 0);
63 tst_res(TFAIL, "shmat() succeeded unexpectedly");
68 tst_res(TPASS | TERRNO, "shmat() failed as expected");
70 tst_res(TFAIL | TERRNO, "shmat() failed unexpectedly,"
  /external/ltp/testcases/kernel/syscalls/mremap/
mremap04.c 165 * Call shmat() to attach the shared memory segment to the data segment of the
207 shmaddr = shmat(shmid, NULL, 0);
209 tst_brkm(TBROK, cleanup, "shmat() Failed to attach shared "
  /external/strace/
ipc_shm.c 82 SYS_FUNC(shmat)
  /external/ltp/testcases/kernel/syscalls/setns/
setns02.c 29 * and verify that child can't shmat it, then set namespace
30 * back to parent one and verify that child is able to do shmat
110 p = shmat(shmid, NULL, 0);
112 tst_resm(TPASS|TERRNO, CP"shmat failed as expected");
114 tst_resm(TFAIL, CP"shmat unexpectedly suceeded");
125 p = shmat(shmid, NULL, 0);
127 tst_resm(TFAIL|TERRNO, CP"shmat failed after setns");
130 tst_resm(TPASS, CP"shmat suceeded");
  /external/ltp/testcases/kernel/syscalls/ipc/libnewipc/
libnewipc.c 97 addr = shmat(shm_id, NULL, 0);
99 tst_brk(TBROK, "probe: shmat() failed at %s:%d", file, lineno);

Completed in 309 milliseconds

12 3 4 5