/third_party/ltp/testcases/kernel/mem/hugetlb/hugefork/ |
H A D | hugefork02.c | 28 volatile char *shmaddr; in do_child() local 33 shmaddr = SAFE_SHMAT(shmid, 0, SHM_RND); in do_child() 36 shmaddr[k] = (char) (k); in do_child() 38 if (shmaddr[k] != (char)k) { in do_child() 43 SAFE_SHMDT((const void *)shmaddr); in do_child()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
H A D | hugeshmat05.c | 45 char *shmaddr; in shm_test() local 51 shmaddr = shmat(shmid, 0, 0); in shm_test() 52 if (shmaddr == (char *)-1) { in shm_test() 58 shmaddr[0] = 1; in shm_test() 61 if (shmdt((const void *)shmaddr) != 0) { in shm_test()
|
/third_party/ltp/include/ |
H A D | tst_safe_sysv_ipc.h | 41 const void *shmaddr, int shmflg); 42 #define SAFE_SHMAT(shmid, shmaddr, shmflg) \ 43 safe_shmat(__FILE__, __LINE__, (shmid), (shmaddr), (shmflg)) 45 int safe_shmdt(const char *file, const int lineno, const void *shmaddr); 46 #define SAFE_SHMDT(shmaddr) safe_shmdt(__FILE__, __LINE__, (shmaddr))
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
H A D | mremap04.c | 94 char *shmaddr; /* pointer to shared memory segment */ variable 124 addr = mremap(shmaddr, memsize, newsize, 0); in main() 206 shmaddr = shmat(shmid, NULL, 0); in setup() 207 if (shmaddr == (void *)-1) { in setup() 226 if (shmdt(shmaddr) < 0) { in cleanup()
|
/third_party/ltp/lib/ |
H A D | tst_safe_sysv_ipc.c | 161 const void *shmaddr, int shmflg) in safe_shmat() 165 rval = shmat(shmid, shmaddr, shmflg); in safe_shmat() 169 "shmat(%i, %p, %x) failed", shmid, shmaddr, shmflg); in safe_shmat() 175 int safe_shmdt(const char *file, const int lineno, const void *shmaddr) in safe_shmdt() argument 179 rval = shmdt(shmaddr); in safe_shmdt() 183 shmaddr); in safe_shmdt() 186 "Invalid shmdt(%p) return value %d", shmaddr, rval); in safe_shmdt() 160 safe_shmat(const char *file, const int lineno, int shmid, const void *shmaddr, int shmflg) safe_shmat() argument
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
H A D | shmat01.c | 9 * 1) shmat() chooses a suitable (unused) address when shmaddr is NULL. 10 * 2) shmat() attaches shm segment to the shmaddr when shmaddr is a 12 * 3) shmat() attaches shm segment to the address equal to shmaddr rounded 13 * down to the nearest multiple of SHMLBA when shmaddr is a page-unaligned 15 * 4) shmat() attaches shm segment to the shmaddr for reading when shmflg 40 void **shmaddr; member 90 addr = shmat(shm_id, *tc->shmaddr, tc->flag); in verify_shmat() 108 if (expected_addr(*tc->shmaddr, addr) != addr) { in verify_shmat() 111 addr, expected_addr(*tc->shmaddr, add in verify_shmat() [all...] |
H A D | shmat02.c | 10 * 2) shmat() fails and set errno to EINVAL when shmaddr is not page 36 void **shmaddr; member 49 addr = shmat(*tc->shmid, *tc->shmaddr, 0); in verify_shmat()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap05.c | 76 void *addr = NULL, *shmaddr = NULL; in test_overcommit() local 116 shmaddr = SAFE_SHMAT(shmid, ADDR, SHMAT_FLAGS); in test_overcommit() 117 check_wr_bytes(shmaddr); in test_overcommit() 150 SAFE_SHMDT(shmaddr); in test_overcommit()
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
H A D | FrameBufferX11.cpp | 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11()
|
/third_party/mesa3d/src/gallium/winsys/sw/xlib/ |
H A D | xlib_sw_winsys.c | 127 shminfo->shmaddr = (char *) -1; in alloc_shm() 135 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm() 136 if (shminfo->shmaddr == (char *) -1) { in alloc_shm() 142 return shminfo->shmaddr; in alloc_shm() 261 shmdt(xlib_dt->shminfo.shmaddr); in xlib_displaytarget_destroy() 265 xlib_dt->shminfo.shmaddr = (char *) -1; in xlib_displaytarget_destroy()
|
/third_party/mesa3d/src/glx/ |
H A D | drisw_glx.c | 217 int shmid, char *shmaddr, unsigned offset, in swrastPutImageShm() 225 pdp->shminfo.shmaddr = shmaddr; in swrastPutImageShm() 227 shmaddr + offset, loaderPrivate); in swrastPutImageShm() 234 int shmid, char *shmaddr, unsigned offset, in swrastPutImageShm2() 242 pdp->shminfo.shmaddr = shmaddr; in swrastPutImageShm2() 244 shmaddr + offset, loaderPrivate); in swrastPutImageShm2() 329 ximage->data = prp->shminfo.shmaddr; /* no offset */ in swrastGetImageShm2() 215 swrastPutImageShm(__DRIdrawable * draw, int op, int x, int y, int w, int h, int stride, int shmid, char *shmaddr, unsigned offset, void *loaderPrivate) swrastPutImageShm() argument 231 swrastPutImageShm2(__DRIdrawable * draw, int op, int x, int y, int w, int h, int stride, int shmid, char *shmaddr, unsigned offset, void *loaderPrivate) swrastPutImageShm2() argument
|
/third_party/mesa3d/src/gallium/frontends/dri/ |
H A D | drisw.c | 81 put_image_shm(__DRIdrawable *dPriv, int shmid, char *shmaddr, in put_image_shm() argument 92 shmid, shmaddr, offset, dPriv->loaderPrivate); in put_image_shm() 96 shmid, shmaddr, offset + offset_x, dPriv->loaderPrivate); in put_image_shm() 190 int shmid, char *shmaddr, unsigned offset, in drisw_put_image_shm() 197 put_image_shm(dPriv, shmid, shmaddr, offset, offset_x, x, y, width, height, stride); in drisw_put_image_shm() 189 drisw_put_image_shm(struct dri_drawable *drawable, int shmid, char *shmaddr, unsigned offset, unsigned offset_x, int x, int y, unsigned width, unsigned height, unsigned stride) drisw_put_image_shm() argument
|
/third_party/mesa3d/src/gallium/include/frontend/ |
H A D | drisw_api.h | 23 int shmid, char *shmaddr, unsigned offset, unsigned offset_x,
|
/third_party/ffmpeg/libavdevice/ |
H A D | xv.c | 204 xv->yuv_shminfo.shmaddr = (char *)shmat(xv->yuv_shminfo.shmid, 0, 0); in xv_write_header() 205 xv->yuv_image->data = xv->yuv_shminfo.shmaddr; in xv_write_header()
|
/third_party/mesa3d/include/GL/internal/ |
H A D | dri_interface.h | 581 int shmid, char *shmaddr, unsigned offset, 606 int shmid, char *shmaddr, unsigned offset,
|
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/ |
H A D | mod.rs | 736 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 737 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|
/third_party/mesa3d/src/vulkan/wsi/ |
H A D | wsi_common_x11.c | 924 uint8_t * shmaddr; member 1631 image->shmaddr = addr; in alloc_shm() 1795 if (image->shmaddr) in x11_image_finish() 1796 shmdt(image->shmaddr); in x11_image_finish()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/ |
H A D | mod.rs | 1651 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 1652 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | mod.rs | 2823 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 2827 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|
/third_party/rust/crates/libc/src/fuchsia/ |
H A D | mod.rs | 3956 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 3957 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/ |
H A D | mod.rs | 3915 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 3916 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/ |
H A D | mod.rs | 4089 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 4090 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|
/third_party/rust/crates/libc/src/unix/bsd/apple/ |
H A D | mod.rs | 5151 pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; in shmat() 5152 pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; in shmdt()
|