MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / semaphore_create

Function semaphore_create

user/src/sync.rs:15–17  ·  view source on GitHub ↗
(res_count: usize)

Source from the content-addressed store, hash-verified

13 sys_mutex_unlock(mutex_id);
14}
15pub fn semaphore_create(res_count: usize) -> isize {
16 sys_semaphore_create(res_count)
17}
18pub fn semaphore_up(sem_id: usize) {
19 sys_semaphore_up(sem_id);
20}

Callers

nothing calls this directly

Calls 1

sys_semaphore_createFunction · 0.70

Tested by

no test coverage detected