/kernel/liteos_m/kal/libc/newlib/porting/include/ |
D | semaphore.h | 42 #define SEM_FAILED ((sem_t *)0) 47 } sem_t; typedef 49 int sem_init(sem_t *sem, int shared, unsigned value); 50 int sem_destroy(sem_t *sem); 51 int sem_wait(sem_t *sem); 52 int sem_post(sem_t *sem); 53 int sem_timedwait(sem_t *__restrict sem, const struct timespec *__restrict timeout); 54 int sem_getvalue(sem_t *__restrict sem, int *__restrict currVal);
|
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/ |
D | semaphore_func_test.c | 107 sem_t sem; 110 TEST_ASSERT_EQUAL_INT(0, sem_init((sem_t *)&sem, 0, 0)); 114 if (sem_timedwait((sem_t *)&sem, &ts) == -1) { 126 TEST_ASSERT_EQUAL_INT(0, sem_destroy((sem_t *)&sem)); 140 sem_t sem; 143 TEST_ASSERT_EQUAL_INT(0, sem_init((sem_t *)&sem, 0, 1)); 148 int ret = sem_timedwait((sem_t *)&sem, &ts); 161 ret = sem_timedwait((sem_t *)&sem, &ts); 169 TEST_ASSERT_EQUAL_INT(0, sem_destroy((sem_t *)&sem)); 182 sem_t sem; [all …]
|
/kernel/liteos_a/compat/posix/src/ |
D | semaphore.c | 39 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init() 60 int sem_destroy(sem_t *sem) in sem_destroy() 77 int sem_wait(sem_t *sem) in sem_wait() 95 int sem_trywait(sem_t *sem) in sem_trywait() 115 int sem_timedwait(sem_t *sem, const struct timespec *timeout) in sem_timedwait() 139 int sem_post(sem_t *sem) in sem_post() 156 int sem_getvalue(sem_t *sem, int *currVal) in sem_getvalue() 173 sem_t *sem_open(const char *name, int openFlag, ...) in sem_open() 181 int sem_close(sem_t *sem) in sem_close()
|
/kernel/liteos_m/kal/posix/src/ |
D | semaphore.c | 68 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init() 91 int sem_destroy(sem_t *sem) in sem_destroy() 109 int sem_wait(sem_t *sem) in sem_wait() 127 int sem_post(sem_t *sem) in sem_post() 145 int sem_trywait(sem_t *sem) in sem_trywait() 163 int sem_timedwait(sem_t *sem, const struct timespec *timeout) in sem_timedwait() 192 int sem_getvalue(sem_t *sem, int *currVal) in sem_getvalue()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
D | It_posix_pthread_062.cpp | 36 sem_t *sem = (sem_t *)argument; in pthread_f01() 56 sem_t sem; in Testcase()
|
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/ |
D | osunixxf.c | 630 sem_t *sem; in acpi_os_create_semaphore() 653 sem = acpi_os_allocate(sizeof(sem_t)); in acpi_os_create_semaphore() 682 sem_t *sem = (sem_t *) handle; in acpi_os_delete_semaphore() 718 sem_t *sem = (sem_t *) handle; in acpi_os_wait_semaphore() 835 sem_t *sem = (sem_t *) handle; in acpi_os_signal_semaphore()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/semaphore/ |
D | sem_timedwait_fuzz.c | 54 sem_t sem; in SemTimedWaitFuzzTest() 68 (void)memset_s(&sem, sizeof(sem), 0, sizeof(sem_t)); in SemTimedWaitFuzzTest()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
D | child.h | 17 sem_t sem_parent; 23 sem_t sem_child;
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_procfd.c | 349 static struct fd_table_s *GetProcessFTable(unsigned int pid, sem_t *semId) in GetProcessFTable() 381 sem_t semId; in CopyFdToProc() 433 sem_t semId; in CloseProcFd()
|
/kernel/liteos_a/fs/include/fs/ |
D | fd_table.h | 50 sem_t ft_sem; /* manage access to the file table */
|
/kernel/liteos_a/apps/shell/include/ |
D | shell.h | 80 sem_t shellSem;
|
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/ |
D | It_posix_mutex_059.c | 46 sem_t sem; in Testcase()
|
D | It_posix_mutex_038.c | 41 static sem_t g_sem038;
|
D | It_posix_mutex_079.c | 41 static sem_t g_sem079;
|
D | It_posix_mutex_022.c | 41 static sem_t g_semA, g_semB;
|
D | It_posix_mutex_075.c | 41 static sem_t g_sem075;
|
D | It_posix_mutex_074.c | 41 static sem_t g_sem074;
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/ |
D | It_posix_pthread.h | 180 sem_t sem; 209 extern sem_t g_pthreadSem1; 210 extern sem_t g_pthreadSem2;
|
D | posix_pthread_test.cpp | 61 sem_t g_pthreadSem1; 62 sem_t g_pthreadSem2;
|
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/smoke/ |
D | It_posix_mutex_019.c | 41 static sem_t g_semA, g_semB;
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
D | set_memory_region_test.c | 41 static sem_t vcpu_ready;
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/ |
D | It_posix_pthread.h | 173 sem_t sem;
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-sched.c | 69 sem_t sleep_sem; 71 sem_t ready_for_work; 72 sem_t work_done_sem; 90 sem_t *wait_sem;
|
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 2442 sem_t *started; 2471 sem_t started; in FIXTURE()
|