Searched refs:sem_init (Results 1 – 12 of 12) sorted by relevance
/linux/tools/testing/selftests/powerpc/ptrace/ |
H A 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()
|
/linux/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_explicit_test.c | 65 FAIL_IF(sem_init(prev, 0, 0)); in dscr_explicit_lockstep_test() 66 FAIL_IF(sem_init(next, 0, 1)); /* other thread starts first */ in dscr_explicit_lockstep_test()
|
H A D | dscr_default_test.c | 49 FAIL_IF(sem_init(reader_sem, 0, 0)); in dscr_default_lockstep_test() 50 FAIL_IF(sem_init(writer_sem, 0, 1)); /* writer starts first */ in dscr_default_lockstep_test()
|
/linux/tools/testing/selftests/kvm/ |
H A D | kvm_page_table_test.c | 292 ret = sem_init(&test_stage_updated, 0, 0); in pre_init_before_test() 293 TEST_ASSERT(ret == 0, "Error in sem_init"); in pre_init_before_test() 295 ret = sem_init(&test_stage_completed, 0, 0); in pre_init_before_test() 296 TEST_ASSERT(ret == 0, "Error in sem_init"); in pre_init_before_test()
|
H A D | dirty_log_test.c | 840 sem_init(&sem_vcpu_stop, 0, 0); in main() 841 sem_init(&sem_vcpu_cont, 0, 0); in main()
|
/linux/ipc/ |
H A D | util.h | 51 void sem_init(void);
|
H A D | util.c | 93 sem_init(); in ipc_init()
|
H A D | sem.c | 268 void __init sem_init(void) in sem_init() function
|
/linux/tools/power/acpi/os_specific/service_layers/ |
H A D | osunixxf.c | 658 if (sem_init(sem, 0, initial_units) == -1) { in acpi_os_create_semaphore()
|
/linux/tools/perf/ |
H A D | builtin-sched.c | 425 sem_init(wakee_event->wait_sem, 0, 0); in add_sched_event_wakeup() 675 sem_init(&task->ready_for_work, 0, 0); in create_tasks() 676 sem_init(&task->work_done_sem, 0, 0); in create_tasks() 719 sem_init(&task->ready_for_work, 0, 0); in wait_for_tasks() 731 sem_init(&task->work_done_sem, 0, 0); in wait_for_tasks()
|
/linux/tools/testing/selftests/ublk/ |
H A D | kublk.c | 926 sem_init(&ready, 0, 0); in ublk_start_daemon()
|
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 2585 sem_init(&self->started, 0, 0); in FIXTURE_SETUP()
|