rustkpi
所属分类:驱动编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2018-07-31 16:39:48
上 传 者:
sh-1993
说明: 硕士论文来源:Rust安全内核编程,
(Sources to the Master s thesis: Safe Kernel Programming with Rust,)
文件列表:
presentation.pdf (664044, 2018-07-31)
rust/ (0, 2018-07-31)
rust/Makefile (81, 2018-07-31)
rust/crates-ext/ (0, 2018-07-31)
rust/crates-ext/interpolate_idents/ (0, 2018-07-31)
rust/crates-ext/interpolate_idents/Cargo.lock (59, 2018-07-31)
rust/crates-ext/interpolate_idents/Cargo.toml (379, 2018-07-31)
rust/crates-ext/interpolate_idents/LICENSE (1081, 2018-07-31)
rust/crates-ext/interpolate_idents/src/ (0, 2018-07-31)
rust/crates-ext/interpolate_idents/src/lib.rs (3511, 2018-07-31)
rust/crates-ext/interpolate_idents/src/parser_any_macro.rs (3610, 2018-07-31)
rust/crates-ext/interpolate_idents/tests/ (0, 2018-07-31)
rust/crates-ext/interpolate_idents/tests/tests.rs (1611, 2018-07-31)
rust/crates-ext/spin-rs/ (0, 2018-07-31)
rust/crates-ext/spin-rs/.travis.yml (897, 2018-07-31)
rust/crates-ext/spin-rs/Cargo.lock (45, 2018-07-31)
rust/crates-ext/spin-rs/Cargo.toml (661, 2018-07-31)
rust/crates-ext/spin-rs/LICENSE (1084, 2018-07-31)
rust/crates-ext/spin-rs/examples/ (0, 2018-07-31)
rust/crates-ext/spin-rs/examples/debug.rs (432, 2018-07-31)
rust/crates-ext/spin-rs/script/ (0, 2018-07-31)
rust/crates-ext/spin-rs/script/doc-upload.cfg (77, 2018-07-31)
rust/crates-ext/spin-rs/src/ (0, 2018-07-31)
rust/crates-ext/spin-rs/src/lib.rs (521, 2018-07-31)
rust/crates-ext/spin-rs/src/mutex.rs (10754, 2018-07-31)
rust/crates-ext/spin-rs/src/once.rs (7475, 2018-07-31)
rust/crates-ext/spin-rs/src/rw_lock.rs (16619, 2018-07-31)
rust/crates-ext/spin-rs/src/util.rs (547, 2018-07-31)
rust/crates-own/ (0, 2018-07-31)
rust/crates-own/kernel_sys/ (0, 2018-07-31)
rust/crates-own/kernel_sys/Cargo.lock (51, 2018-07-31)
rust/crates-own/kernel_sys/Cargo.toml (131, 2018-07-31)
rust/crates-own/kernel_sys/Makefile (1125, 2018-07-31)
rust/crates-own/kernel_sys/headers-notyet/ (0, 2018-07-31)
rust/crates-own/kernel_sys/headers-notyet/headers-kernel_all.h (481, 2018-07-31)
rust/crates-own/kernel_sys/headers/ (0, 2018-07-31)
... ...
# Safe Kernel Programming with Rust
**Master Thesis Project**
Johannes Lundberg
KTH, Stockholm, Sweden
2017-2018
## Introduction
TODO: Fix compile warnings and write introduction.
## How To
*Preliminary*
1. Clone this repo (to folder we will call `$ROOT`) on a FreeBSD 12 machine
1. Install `rustup` (https://www.rust-lang.org/en-US/install.html)
1. Set toolchain
1. `rustup toolchain link rustkpi $ROOT/rust/toolchains/x86_64-unknown-freebsd-1.25-nightly`
1. `cd $ROOT`
1. `rustup override set rustkpi`
1. Build RustKPI
1. `cd $ROOT/rust/kmod-rustkpi`
1. `make`
1. Build Hello World module
1. `cd $ROOT/rust/kmod-helloworld`
1. `make`
1. Test
1. `cd $ROOT/rust/`
1. `sudo kldload kmod-rustkpi/rustkpi.ko`
1. `sudo kldload kmod-helloworld/rustkpi-hello.ko`
1. `dmesg`
For the e1000 driver in kmod-e1000 the following devices are supported
* bhyve with e1000 nic emulation
* I218 (found in Intel Broadwell laptops)
* I219-LM (found in Intel Skylake laptops)
kmod-e1000 is built the same way as described above.
近期下载者:
相关文件:
收藏者: