Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ semaphore_up
Function
semaphore_up
user/src/sync.rs:18–20 ·
view source on GitHub ↗
(sem_id: usize)
Source
from the content-addressed store, hash-verified
16
sys_semaphore_create(res_count)
17
}
18
pub fn semaphore_up(sem_id: usize) {
19
sys_semaphore_up(sem_id);
20
}
21
pub fn semaphore_down(sem_id: usize) {
22
sys_semaphore_down(sem_id);
23
}
Callers
3
producer
Function · 0.85
consumer
Function · 0.85
first
Function · 0.85
Calls
1
sys_semaphore_up
Function · 0.70
Tested by
no test coverage detected