Skip to main contentModule os
Source pub use crate::kernel::*;
- clone⚠
- clone with its arguments in the kernel’s order
- dup2⚠
- dup2, by dup3: ARM64 has no dup2. dup3 refuses old == new, dup2 only looks whether old
is open then
- exit
- fork⚠
- fork, by clone with only the child’s exit signal (SIGCHLD): ARM64 has no fork
- pages_alloc⚠
- zeroed pages, or null
- pages_free⚠
- Safety
- poll⚠
- poll with the timeout in milliseconds (negative: none), by ppoll: ARM64 has no poll
- rename⚠
- rename, replacing new, by renameat2 (renameat before Linux 3.15): ARM64 has no rename
- syscall3⚠
- Safety
- syscall6⚠
- Safety
- write_fd
- write_stderr
- write_stdout
- yield_now
- give the rest of the time slice to another ready thread