HomeSort by relevance Sort by last modified time
    Searched full:shmaddr (Results 1 - 25 of 90) sorted by null

1 2 3 4

  /external/strace/tests/
shmxt.c 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); local
50 if (shmaddr == (void *)(-1))
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr);
57 rc = shmdt(shmaddr);
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc));
60 ++shmaddr;
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND);
64 SHMAT, id, shmaddr, errno2name());
67 SHMAT, id, shmaddr, shmaddr2);
72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC)
    [all...]
  /external/strace/tests-m32/
shmxt.c 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); local
50 if (shmaddr == (void *)(-1))
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr);
57 rc = shmdt(shmaddr);
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc));
60 ++shmaddr;
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND);
64 SHMAT, id, shmaddr, errno2name());
67 SHMAT, id, shmaddr, shmaddr2);
72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC)
    [all...]
  /external/strace/tests-mx32/
shmxt.c 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); local
50 if (shmaddr == (void *)(-1))
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr);
57 rc = shmdt(shmaddr);
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc));
60 ++shmaddr;
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND);
64 SHMAT, id, shmaddr, errno2name());
67 SHMAT, id, shmaddr, shmaddr2);
72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC)
    [all...]
  /external/linux-kselftest/tools/testing/selftests/vm/
hugepage-shm.c 59 char *shmaddr; local
68 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS);
69 if (shmaddr == (char *)-1) {
74 printf("shmaddr: %p\n", shmaddr);
78 shmaddr[i] = (char)(i);
86 if (shmaddr[i] != (char)i) {
92 if (shmdt((const void *)shmaddr) != 0) {
  /external/ltp/include/
tst_safe_sysv_ipc.h 53 const void *shmaddr, int shmflg);
54 #define SAFE_SHMAT(shmid, shmaddr, shmflg) \
55 safe_shmat(__FILE__, __LINE__, (shmid), (shmaddr), (shmflg))
57 int safe_shmdt(const char *file, const int lineno, const void *shmaddr);
58 #define SAFE_SHMDT(shmaddr) safe_shmdt(__FILE__, __LINE__, (shmaddr))
  /external/fio/os/windows/posix/include/sys/
shm.h 38 void *shmat(int shmid, const void *shmaddr, int shmflg);
39 int shmdt(const void *shmaddr);
  /external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
hugeshmat05.c 65 char *shmaddr; local
71 shmaddr = shmat(shmid, 0, 0);
72 if (shmaddr == (char *)-1) {
78 shmaddr[0] = 1;
81 if (shmdt((const void *)shmaddr) != 0) {
  /external/ltp/testcases/kernel/syscalls/ipc/shmat/
shmat01.c 22 * 1) shmat() chooses a suitable (unused) address when shmaddr is NULL.
23 * 2) shmat() attaches shm segment to the shmaddr when shmaddr is a
25 * 3) shmat() attaches shm segment to the address equal to shmaddr rounded
26 * down to the nearest multiple of SHMLBA when shmaddr is a page-unaligned
28 * 4) shmat() attaches shm segment to the shmaddr for reading when shmflg
53 void **shmaddr; member in struct:test_case_t
113 addr = shmat(shm_id, *tc->shmaddr, tc->flag);
131 if (expected_addr(*tc->shmaddr, addr) != addr) {
134 addr, expected_addr(*tc->shmaddr, addr))
    [all...]
shmat02.c 22 * 2) shmat() fails and set errno to EINVAL when shmaddr is not page
48 void **shmaddr; member in struct:test_case_t
61 addr = shmat(*tc->shmid, *tc->shmaddr, 0);
  /external/ltp/lib/
tst_safe_sysv_ipc.c 98 const void *shmaddr, int shmflg)
102 rval = shmat(shmid, shmaddr, shmflg);
105 file, lineno, shmid, shmaddr, shmflg);
111 int safe_shmdt(const char *file, const int lineno, const void *shmaddr)
115 rval = shmdt(shmaddr);
118 file, lineno, shmaddr);
  /external/ltp/testcases/kernel/sched/process_stress/
process.c 144 Pinfo *shmaddr; /* Start address of shared memory */ variable
194 extern Pinfo *shmaddr; /* shared memory pointer */
205 for (pinfo = shmaddr, i = 0; i < nodesum; i++, pinfo++) {
298 extern Pinfo *shmaddr; /* Global shared memory address */
386 extern Pinfo *shmaddr;
392 smp = shmaddr + tval;
405 smp->list = (int *)(Pinfo *) (shmaddr + nodesum) + (BVAL * tval);
426 extern Pinfo *shmaddr;
431 int *listp = (shmaddr + slot)->list;
444 sprintf(mtext, "%d %d %d", i, slot, (shmaddr + slot)->pid)
    [all...]
  /external/ltp/testcases/kernel/syscalls/mremap/
mremap04.c 95 char *shmaddr; /* pointer to shared memory segment */ variable
125 addr = mremap(shmaddr, memsize, newsize, 0);
207 shmaddr = shmat(shmid, NULL, 0);
208 if (shmaddr == (void *)-1) {
227 if (shmdt(shmaddr) < 0) {
  /external/webrtc/webrtc/modules/desktop_capture/x11/
x_server_pixel_buffer.cc 86 if (shm_segment_info_->shmaddr != reinterpret_cast<char*>(-1))
87 shmdt(shm_segment_info_->shmaddr);
130 shm_segment_info_->shmaddr = reinterpret_cast<char*>(-1);
140 shm_segment_info_->shmaddr = x_image_->data =
183 shm_segment_info_->shmaddr,
  /external/mesa3d/src/gallium/winsys/sw/xlib/
xlib_sw_winsys.c 127 shminfo->shmaddr = (char *) -1;
134 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0);
135 if (shminfo->shmaddr == (char *) -1) {
141 return shminfo->shmaddr;
260 shmdt(xlib_dt->shminfo.shmaddr);
264 xlib_dt->shminfo.shmaddr = (char *) -1;
  /external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
hugemmap05.c 93 void *addr = NULL, *shmaddr = NULL; local
133 shmaddr = SAFE_SHMAT(shmid, ADDR, SHMAT_FLAGS);
134 check_wr_bytes(shmaddr);
167 SAFE_SHMDT(shmaddr);
  /external/swiftshader/src/Main/
FrameBufferX11.cpp 66 shminfo.shmaddr = x_image->data = buffer = (char*)shmat(shminfo.shmid, 0, 0);
79 shmdt(shminfo.shmaddr);
110 shmdt(shminfo.shmaddr);
  /external/webrtc/webrtc/modules/video_render/linux/
video_x11_channel.cc 255 _shminfo.shmaddr = _image->data = (char*) shmat(_shminfo.shmid, 0, 0);
290 shmdt(_shminfo.shmaddr);
291 _shminfo.shmaddr = NULL;
  /external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
context_switch.c 322 void *shmaddr; local
330 shmaddr = shmat(shmid, NULL, 0);
331 if (shmaddr == (char *)-1) {
339 m1 = shmaddr;
340 m2 = shmaddr + sizeof(*m1);
  /external/stressapptest/src/
os.cc 526 void *shmaddr; local
539 shmaddr = shmat(shmid, NULL, 0);
540 if (shmaddr == reinterpret_cast<void*>(-1)) {
557 buf = shmaddr;
559 shmid, shmaddr);
566 void *shmaddr = NULL; local
594 shmaddr = mmap64(NULL, length, PROT_READ | PROT_WRITE,
597 if (shmaddr == reinterpret_cast<void*>(-1)) {
609 buf = shmaddr;
614 sprintf(location_message, "at %p", shmaddr);
    [all...]
  /external/mesa3d/src/mesa/drivers/x11/
xm_buffer.c 102 b->shminfo.shmaddr = b->backxrb->ximage->data
104 if (b->shminfo.shmaddr == (char *) -1) {
126 shmdt(b->shminfo.shmaddr);
147 shmdt(b->shminfo.shmaddr);
181 shmdt(b->shminfo.shmaddr);
400 shmdt( b->shminfo.shmaddr );
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/extensions/
XShm.h 53 char *shmaddr; /* address in client */ member in struct:__anon61850
  /prebuilts/go/darwin-x86/src/syscall/
zsysnum_openbsd_386.go 156 SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
157 SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
zsysnum_openbsd_amd64.go 156 SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
157 SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
zsysnum_openbsd_arm.go 162 SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
163 SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
  /prebuilts/go/linux-x86/src/syscall/
zsysnum_openbsd_386.go 156 SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
157 SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }

Completed in 701 milliseconds

1 2 3 4