/kernel/liteos_m/testsuites/unittest/xts/ipc/semaphone/ |
D | sem_test.c | 56 ret = sem_init((sem_t *)&sem, 0, testValue[0]); 70 ret = sem_init((sem_t *)&sem, 0, 0); 92 ret = sem_init((sem_t *)&sem, 0, 3); /* 3, common data for test, no special meaning */ 132 ret = sem_init((sem_t *)&sem, 0, 0); 215 ret = sem_init((sem_t *)&sem, 0, 0); 266 ret = sem_init(&sem, 0, SEM_VALUE_MAX); 272 ret = sem_init(&sem, 0, gtSemMax); 277 ret = sem_init(&sem, 0, 1); /* 1, common data for test, no special meaning */ 290 ret = sem_init(&sem, 0, SEM_VALUE_MAX); 307 ret = sem_init(&sem, 0, 0); [all …]
|
D | sem_abn_test.c | 56 ret = sem_init(&sem, 0, SEM_VALUE_MAX); 80 ret = sem_init(&sem, 0, gtSemMax); 97 ret = sem_init(&sem, 0, 1); /* 1, common data for test, no special meaning */ 115 ret = sem_init(&sem, 0, SEM_VALUE_MAX); 140 ret = sem_init(&sem, 0, 0); 170 ret = sem_init(&sem, 0, 0);
|
D | sem_xts_test.c | 57 ret = sem_init(&sem, 0, testValue); 82 ret = sem_init(&sem, 0, testValue); 107 ret = sem_init(&sem, 0, testValue); 131 ret = sem_init(&sem, 0, 0); 169 ret = sem_init(&sem, 0, 3); /* 3, common data for test, no special meaning */ 206 ret = sem_init(&sem, 0, 0); 240 reInt = sem_init(&sem, 0, 0); 306 reInt = sem_init(&sem, 0, 0); 383 reInt = sem_init(&sem, 0, 0);
|
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/ |
D | semaphore_func_test.c | 109 ICUNIT_ASSERT_EQUAL(sem_init((sem_t *)&sem, 0, 0), 0, 0); 141 ICUNIT_ASSERT_EQUAL(sem_init((sem_t *)&sem, 0, 1), 0, 0); 188 ret = sem_init((sem_t *)&sem, 0, 0); 229 ret = sem_init(&sem, 0, 1);
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
D | child.h | 64 ret = sem_init(&sync->sem_parent, 1, 0); in init_child_sync() 70 ret = sem_init(&sync->sem_child, 1, 0); in init_child_sync()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/ |
D | It_posix_mutex_022.c | 98 if ((ret = sem_init(&g_semA, 0, 0))) { in Testcase() 101 if ((ret = sem_init(&g_semB, 0, 0))) { in Testcase()
|
D | It_posix_mutex_059.c | 55 ret = sem_init(&sem, pshared, 2); // 2, The initial number of available semaphores. in Testcase()
|
D | It_posix_mutex_038.c | 78 if ((ret = sem_init(&g_sem038, 0, 0))) { in Testcase()
|
D | It_posix_mutex_079.c | 92 ret = sem_init(&g_sem079, g_pshared084, 0); in Testcase()
|
D | It_posix_mutex_075.c | 128 ret = sem_init(&g_sem075, g_pshared075, 0); in Testcase()
|
D | It_posix_mutex_074.c | 129 ret = sem_init(&g_sem074, g_pshared074, 2); // 2, The initial number of available semaphores. in Testcase()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/smoke/ |
D | It_posix_mutex_019.c | 113 if ((ret = sem_init(&g_semA, 0, 0))) { in Testcase() 117 if ((ret = sem_init(&g_semB, 0, 0))) { in Testcase()
|
/kernel/liteos_m/kal/libc/newlib/porting/include/ |
D | semaphore.h | 49 int sem_init(sem_t *sem, int shared, unsigned value);
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/semaphore/ |
D | sem_timedwait_fuzz.c | 71 sem_init(&sem, pshared, value); in SemTimedWaitFuzzTest()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
D | It_posix_pthread_062.cpp | 60 ret = sem_init(&sem, 0, 0); in Testcase()
|
/kernel/liteos_m/testsuites/sample/posix/mutex/ |
D | It_posix_mutex_017.c | 48 ret = sem_init(&sem, pshared, 2); // 2, The initial number of available semaphores. in Testcase()
|
D | It_posix_mutex_043.c | 87 ret = sem_init(&g_sem079, g_pshared084, 0); in Testcase()
|
D | It_posix_mutex_037.c | 66 ret = sem_init(&g_sem038, 0, 0); in Testcase()
|
D | It_posix_mutex_049.c | 123 ret = sem_init(&g_sem075, g_pshared075, 0); in Testcase()
|
D | It_posix_mutex_048.c | 124 ret = sem_init(&g_sem074, g_pshared074, 2); // 2, The initial number of available semaphores. in Testcase()
|
/kernel/liteos_a/compat/posix/src/ |
D | semaphore.c | 39 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init() function
|
/kernel/liteos_a/apps/shell/src/ |
D | main.c | 170 sem_init(&shellCB->shellSem, 0, 0); in main()
|
/kernel/liteos_m/kal/posix/src/ |
D | semaphore.c | 68 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init() function
|
/kernel/linux/linux-5.10/ipc/ |
D | util.h | 50 void sem_init(void);
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/ |
D | It_posix_pthread.c | 178 ret = sem_init(&g_scenarii[i].sem, 0, 0); in ScenarInit()
|