Home
last modified time | relevance | path

Searched refs:shmctl (Results 1 - 25 of 74) sorted by relevance

123

/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
H A Dhugeshmctl02.c15 * call shmctl() using five different invalid cases
56 return shmctl(shmid, cmd, buf); in libc_shmctl()
66 int (*shmctl)(int shmid, int cmd, void *buf); member
69 { .shmctl = libc_shmctl, .desc = "libc shmctl()"},
71 { .shmctl = sys_shmctl, .desc = "__NR_shmctl syscall"},
79 if (tcases[i].error == EFAULT && tv->shmctl == libc_shmctl) { in test_hugeshmctl()
84 TEST(tv->shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in test_hugeshmctl()
86 tst_res(TFAIL, "shmctl succeeded unexpectedly"); in test_hugeshmctl()
91 tst_res(TPASS | TTERRNO, "shmctl faile in test_hugeshmctl()
[all...]
H A Dhugeshmctl01.c10 * they are used with shmctl()
16 * call shmctl() using the TEST macro
83 if (shmctl(shm_id_1, tcases[i].cmd, &buf) == -1) { in test_hugeshmctl()
84 tst_res(TFAIL | TERRNO, "shmctl #main"); in test_hugeshmctl()
105 * stat_setup_2() - Set up for the IPC_STAT command with shmctl().
117 * stat_setup_1() - Set up for the IPC_STAT command with shmctl().
153 * func_stat() - check the functionality of the IPC_STAT command with shmctl()
230 * set_setup() - set up for the IPC_SET command with shmctl()
242 * func_set() - check the functionality of the IPC_SET command with shmctl()
247 if (shmctl(shm_id_ in func_set()
[all...]
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/
H A 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()
98 tc[i].error, "shmctl(%i, %i, %p)", *(tc[i].shm_id), tc[i].cmd, tc[i].buf); in verify_shmctl()
H A Dshmctl04.c9 * Call shmctl() with SHM_INFO flag and check that:
15 * There is a possible race between the call to the shmctl() and read from the
123 TEST(shmctl(0, SHM_INFO, (struct shmid_ds *)&info)); in verify_shminfo()
126 tst_res(TFAIL | TTERRNO, "shmctl(0, SHM_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()
H A Dshmctl07.c26 TEST(shmctl(shm_id, SHM_LOCK, NULL)); in verify_shmlock()
29 tst_res(TFAIL | TTERRNO, "shmctl(%i, SHM_LOCK, NULL)", shm_id); in verify_shmlock()
31 tst_res(TPASS, "shmctl(%i, SHM_LOCK, NULL)", shm_id); in verify_shmlock()
41 TEST(shmctl(shm_id, SHM_UNLOCK, NULL)); in verify_shmlock()
44 tst_res(TFAIL | TTERRNO, "shmctl(%i, SHM_UNLOCK, NULL)", shm_id); in verify_shmlock()
46 tst_res(TPASS, "shmctl(%i, SHM_UNLOCK, NULL)", shm_id); in verify_shmlock()
H A Dshmctl03.c9 * Call shmctl() with IPC_INFO flag and check that the data are consistent with
22 TEST(shmctl(0, IPC_INFO, (struct shmid_ds *)&info)); in verify_ipcinfo()
26 "shmctl(0, IPC_INFO, ...) returned %li", TST_RET); in verify_ipcinfo()
H A Dshmctl06.c37 TEST(shmctl(shmid, IPC_STAT, (struct shmid_ds *)&buf_ds)); in run()
39 tst_brk(TFAIL | TTERRNO, "shmctl() failed"); in run()
/third_party/musl/libc-test/src/functional/
H A 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/mem/hugetlb/hugeshmat/
H A Dhugeshmat05.c53 shmctl(shmid, IPC_RMID, NULL); in shm_test()
62 shmctl(shmid, IPC_RMID, NULL); in shm_test()
66 shmctl(shmid, IPC_RMID, NULL); in shm_test()
H A Dhugeshmat04.c66 shmctl(shmid, IPC_RMID, NULL); in shared_hugepage()
77 shmctl(shmid, IPC_RMID, NULL); in shared_hugepage()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
H A 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/mce-test/hwpoison/
H A 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/controllers/cpuset/cpuset_memory_test/
H A 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()
280 err(1, "shmctl() failed\n"); in shm()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A 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/backends/backend/
H A Dgt68xx_shm_channel.c262 shmctl (shm_id, IPC_RMID, NULL); in shm_channel_new()
267 if (shmctl (shm_id, IPC_RMID, NULL) == -1) in shm_channel_new()
272 shmctl (shm_id, IPC_RMID, NULL); in shm_channel_new()
/third_party/skia/third_party/externals/swiftshader/src/Main/
H A 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/
H A D9-1-buildonly.c11 * int shmctl(int, int, struct shmid_ds *)
22 dummyvar = shmctl; in dummyfcn()
/third_party/mesa3d/src/gallium/winsys/sw/xlib/
H A 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/toybox/toys/pending/
H A Dipcs.c123 if ((ret = shmctl(TT.id, IPC_STAT, &buf)) < 0) { in show_shm_id()
124 perror_msg("shmctl"); 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/ltp/testcases/kernel/controllers/memcg/functional/
H A Dmemcg_process.c227 shmctl(shmid, IPC_RMID, NULL); in shm()
231 if (shmctl(shmid, IPC_RMID, NULL) == -1) in shm()
232 err(1, "shmctl() failed"); in shm()
/third_party/mesa3d/src/gallium/winsys/sw/dri/
H A Ddri_sw_winsys.c108 shmctl(dri_sw_dt->shmid, IPC_RMID, NULL); in alloc_shm()
176 shmctl(dri_sw_dt->shmid, IPC_RMID, NULL); in dri_sw_displaytarget_destroy()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dshm.h62 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dshm.h56 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dshm.h62 int shmctl(int, int, struct shmid_ds *);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dshm.h62 int shmctl(int, int, struct shmid_ds *);

Completed in 11 milliseconds

123