Home
last modified time | relevance | path

Searched refs:shmctl (Results 1 – 25 of 107) sorted by relevance

12345

/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl02.c49 return shmctl(shmid, cmd, buf); in libc_shmctl()
79 int (*shmctl)(int shmid, int cmd, void *buf); member
82 { .shmctl = libc_shmctl, .desc = "libc shmctl()"},
84 { .shmctl = sys_shmctl, .desc = "__NR_shmctl syscall"},
92 if (tc[i].error == EFAULT && tv->shmctl == libc_shmctl) { in verify_shmctl()
97 TST_EXP_FAIL(tv->shmctl(*(tc[i].shm_id), tc[i].cmd, tc[i].buf), in verify_shmctl()
Dshmctl04.c123 TEST(shmctl(0, SHM_INFO, (struct shmid_ds *)&info)); in verify_shminfo()
130 shmid = shmctl(TST_RET, SHM_STAT_ANY, &ds); in verify_shminfo()
141 if (shmctl(i, SHM_STAT_ANY, &ds) != -1) in verify_shminfo()
165 TEST(shmctl(shm_id, SHM_STAT_ANY, &temp_ds)); in setup()
Dshmctl07.c26 TEST(shmctl(shm_id, SHM_LOCK, NULL)); in verify_shmlock()
41 TEST(shmctl(shm_id, SHM_UNLOCK, NULL)); in verify_shmlock()
Dshmctl03.c22 TEST(shmctl(0, IPC_INFO, (struct shmid_ds *)&info)); in verify_ipcinfo()
/third_party/ltp/testcases/kernel/containers/sysvipc/
Dshm_comm.c72 shmctl(id, IPC_RMID, NULL); in chld1_shm()
88 shmctl(id, IPC_RMID, NULL); in chld1_shm()
105 shmctl(id, IPC_RMID, NULL); in chld2_shm()
117 shmctl(id, IPC_RMID, NULL); in chld2_shm()
Dshmnstest.c60 shmctl(id, IPC_RMID, NULL); in check_shmid()
141 shmctl(id, IPC_RMID, NULL); in main()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat05.c56 shmctl(shmid, IPC_RMID, NULL); in shm_test()
65 shmctl(shmid, IPC_RMID, NULL); in shm_test()
69 shmctl(shmid, IPC_RMID, NULL); in shm_test()
Dhugeshmat04.c68 shmctl(shmid, IPC_RMID, NULL); in shared_hugepage()
79 shmctl(shmid, IPC_RMID, NULL); in shared_hugepage()
/third_party/musl/libc-test/src/functional/
Dipc_shm.c40 T(shmctl(shmid, IPC_RMID, 0)); in set()
52 T(shmctl(shmid, IPC_STAT, &shmid_ds)); in set()
72 T(shmctl(shmid, IPC_STAT, &shmid_ds)); in set()
101 T(shmctl(shmid, IPC_RMID, 0)); in get()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
Dhugepage.h114 shmctl(shmid, IPC_RMID, NULL); in alloc_shm_hugepage()
160 shmctl(key, IPC_RMID, NULL); in free_shm_hugepage()
163 shmctl(key, IPC_RMID, NULL); in free_shm_hugepage()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl01.c83 if (shmctl(shm_id_1, tcases[i].cmd, &buf) == -1) { in test_hugeshmctl()
246 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in func_set()
270 if (shmctl(shm_id_1, IPC_STAT, &buf) != -1) in func_rmid()
/third_party/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c137 shmctl(shminfo->shmid, IPC_RMID, 0); in alloc_shm()
170 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in alloc_shm_ximage()
185 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in alloc_shm_ximage()
262 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in xlib_displaytarget_destroy()
/third_party/gstreamer/gstplugins_base/sys/ximage/
Dximagepool.c302 shmctl (mem->SHMInfo.shmid, IPC_RMID, NULL); in ximage_memory_alloc()
401 shmctl (mem->SHMInfo.shmid, IPC_RMID, NULL); in ximage_memory_alloc()
407 shmctl (mem->SHMInfo.shmid, IPC_RMID, NULL); in ximage_memory_alloc()
470 shmctl (SHMInfo.shmid, IPC_RMID, NULL); in gst_x_image_sink_check_xshm_calls()
480 shmctl (SHMInfo.shmid, IPC_RMID, NULL); in gst_x_image_sink_check_xshm_calls()
490 shmctl (SHMInfo.shmid, IPC_RMID, NULL); in gst_x_image_sink_check_xshm_calls()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_test.c264 shmctl(shmid, IPC_RMID, NULL); in shm()
272 shmctl(shmid, IPC_RMID, NULL); in shm()
279 if (shmctl(shmid, IPC_RMID, NULL) == -1) in shm()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D9-1.c192 SAFE_FUNC(shmctl(shm_id, IPC_RMID, NULL)); in main()
204 SAFE_FUNC(shmctl(shm_id, IPC_RMID, NULL)); in main()
/third_party/toybox/toys/pending/
Dipcs.c123 if ((ret = shmctl(TT.id, IPC_STAT, &buf)) < 0) { in show_shm_id()
156 if ((max_nr = shmctl(0, SHM_INFO, (struct shmid_ds*)&shm_buf)) < 0) { in shm_array()
176 if ((shmctl(0, 3, (struct shmid_ds*)&ipc_buf)) < 0) return; //IPC_INFO in shm_array()
209 if ((shmid = shmctl(i, SHM_STAT, &buf)) < 0 ) continue; in shm_array()
/third_party/musl/docs/
Dstatus.md102 - shmctl
135 - shmctl 函数用于对共享内存段进行控制操作,如获取/设置共享内存的状态信息、删除共享内存段等。
/third_party/skia/third_party/externals/swiftshader/src/Main/
DFrameBufferX11.cpp83 shmctl(shminfo.shmid, IPC_RMID, 0); in FrameBufferX11()
117 shmctl(shminfo.shmid, IPC_RMID, 0); in ~FrameBufferX11()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/
D9-1-buildonly.c22 dummyvar = shmctl; in dummyfcn()
/third_party/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_process.c227 shmctl(shmid, IPC_RMID, NULL); in shm()
231 if (shmctl(shmid, IPC_RMID, NULL) == -1) in shm()
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
Dshm.h56 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/ndk_musl_include/sys/
Dshm.h62 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dshm.h62 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dshm.h62 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dshm.h62 int shmctl(int, int, struct shmid_ds *);

12345