syscalls
syscalls copied to clipboard
Raw Linux system calls for Rust.
Previous discussed in #41 but closed w/o result. https://doc.rust-lang.org/std/convert/trait.From.html says: > **Note: This trait must not fail.** The From trait is intended for perfect conversions. If the conversion can fail...
I added some useful macros to help define rust functions of syscalls
## Problem When generating the RISC-V syscall tables with `syscalls-gen` (currently pinned to Linux v6.16), the entries for `riscv_hwprobe` (258) and `riscv_flush_icache` (259) disappear from `src/arch/riscv64.rs` / `src/arch/riscv32.rs`. On crates.io...